Pagination
Domain searches use cursor pagination. Technology searches use page numbers.
The Domains API uses the search_after parameter to continue from the last result of the previous page. Keep the same filters, sort order, and index across requests. Results can change when the underlying dataset is updated.
How it works
When you make a domain search request, the response includes a search_after array that acts as a cursor for the next page. Pass the entire array back unchanged in your next request. Stop when results is empty or no cursor is returned.
Response fields
- Name
results- Type
- array
- Description
Array of matching records for the current page.
- Name
search_after- Type
- array
- Description
Cursor value to pass in the next request. A nonempty page can include a cursor even when it is the last page; stop if the following request returns no results.
- Name
total- Type
- integer
- Description
Total number of matching records across all pages.
Request parameters
- Name
pageSize- Type
- integer
- Description
Number of results per page. Defaults to 50, with a maximum of 100 or your plan's lower API limit.
- Name
search_after- Type
- array
- Description
Cursor from a previous response to fetch the next page. Use this exact spelling in the JSON request body.
First page
curl -s -X POST https://websitedata.app/json/api/v1/domain/search \
-H "Authorization: Bearer {your-api-key}" \
-H "Content-Type: application/json" \
-d '{"pageSize": 2}'
Response
{
"results": [
{"name": "wordpress.org", "rank": 1},
{"name": "creativecommons.org", "rank": 2}
],
"search_after": [2, 36411284],
"total": 879083
}
Next page
curl -s -X POST https://websitedata.app/json/api/v1/domain/search \
-H "Authorization: Bearer {your-api-key}" \
-H "Content-Type: application/json" \
-d '{"pageSize": 2, "search_after": [2, 36411284]}'
Technology pagination
The technology search endpoint accepts a zero-based page and a pageSize. It returns the current page, the total number of pages, and the total number of matching technologies in total. It does not return a search_after cursor.
Start with page: 0 and increment page until it reaches pages - 1, or stop sooner if results is empty. If pages is zero, there are no matches. Keep the same query, filters, sort order, and page size across requests.
Second page of technologies
curl -s -X POST https://websitedata.app/json/api/v1/technology/search \
-H "Authorization: Bearer {your-api-key}" \
-H "Content-Type: application/json" \
-d '{"pageSize": 2, "page": 1}'