Pagination
An endpoint is paginated when its reference page lists the page and page_size query parameters. Most
search endpoints and many list endpoints do. Where pagination applies, it is always these two query
parameters:
| Parameter | Description |
|---|---|
page |
Page number, starting at 1 |
page_size |
Results per page |
On a POST …/search request, too, the two parameters go in the query string. Sent inside the JSON body,
they are ignored and the response quietly uses the defaults.
Endpoints Without Pagination
These endpoints return a plain JSON array instead, with no envelope and no paging:
- WHOIS History
- The Vulnerability Latest Added list
- The Feeds List
- Asset Tag List
- The asset history lists, such as Asset DNS History List
- Asset Discovery Rule List
- Asset Discovery Smart Discovery Rule List
- Asset Discovery Smart Monitoring Rule List
- Asset Discovery Custom Discovery Rule Search
- Issue Categories
- Email Breach Account Titles and Email Breach Data Types
- Darkweb Mention Rule List
- Fraudulent Rule List
- The timeline and statistics endpoints
Each endpoint's reference page lists the query parameters it accepts.
The Envelope
Paginated responses share the same envelope:
{
"page": 1,
"page_size": 25,
"result_count": 1342,
"results": [ ... ]
}
result_count is the total number of matches, not the number of items on the page.
Limits
Allowed values differ per endpoint, and each endpoint documents its own page and page_size limits on
its reference page. Three rules hold everywhere:
| Rule | What happens otherwise |
|---|---|
page from 1 up to the endpoint's maximum: 800 in External Attack Surface Management (EASM), Cyber Threat Intelligence (CTI), Brand Risk Protection (BRP) and Platform, 400 in Discovery and Vulnerability, 250 in Darkweb |
400 10400, for example Ensure this value is less than or equal to 800. |
page_size within the endpoint's range, often 25 to 100 |
400 10400, for example Ensure this value is greater than or equal to 25. |
page × page_size at most 10,000 |
400 10400: Only the first 10,000 results are shown. |
The last rule binds first: with page_size 100, the highest page you can read is 100, whatever the
endpoint's own page maximum. Vulnerability Search with
page=200&page_size=100:
400 Bad Request
{
"code": 10400,
"details": [
"Only the first 10,000 results are shown."
],
"solution": "https://docs.deepinfo.com/reference/"
}
To reach results beyond the 10,000th, narrow the query with filters or sort it differently instead of paging further. See Search & filters.
A page past the end of the result set is not an error: the response is the same envelope with an empty
results array.
Darkweb Search pages differently: its page_size is always 20 and cannot be
set, so with page up to 250 a search reaches at most 5,000 results.
Exports
Exports are not paginated. Many search endpoints have a matching …/search:export endpoint that returns
every match as CSV or a JSON array in one response, for example
Asset Export. A very large export can take a long time and may end in
a 502 Bad Gateway with a plain-text body (see Errors), so narrow it with
filters too.