- Specify the
limitparameter to determine the number of results you want to retrieve. - Use the
offsetparameter to indicate the starting offset point for retrieving results, default value is 0 for the first row. - If you are fetching JSON response, check for the fields
next_offsetandnext_uriin the response body to fetch the next page, if available. If you are fetching CSV response, check the response headers forX-Dune-Next-OffsetandX-Dune-Next-Urito fetch the next page, if available. Always follow the provided offset or uri, the server is allowed to override the provided limit if it is too large (see section on Data Returned Limit)
Pagination Parameters
limit (Required)
- Type: Integer
- Description: Limits the number of rows returned per request.
offset
- Type: Integer
- Description: Specifies the starting point (inclusive) from which to return results.
- Default: 0 (i.e., the first row)
- Usage: Together with
limit, enables incremental and efficient pagination.
Example paginated request
Example paginated request
- cURL
- Python SDK
- Python
- Javascript
- PHP
- Java
Pagination in Response
The following fields in the repsonse body are related to pagination and can be utilized when doing paginated get results request. If they are available, you can use them to paginate the next page. If they are not available, that means there are no more results to be fetched.- JSON response endpoints
- CSV response endpoints
next_offset- Type: Integer
- Description: Provides the offset to use for retrieving the next page of results, if available.
next_uri- Type: String (URL)
- Description: Specifies the complete URI to retrieve the next page of results, if available.
If you pass in an invalid
offset parameter value, you will get an empty result set. For example, if there are only 25 rows of result data, and you pass in offset=30, you will not receive an error, but rather an empty result with metadata like this. Note the response field result.total_row_count, indicating this result has only 25 rows.Example empty response
Example empty response
Example paginated response
Example paginated response

