Learn how to use pagination with the Axiom API.
sort by _time asc
or sort by _time desc
in the APL query. This returns the results in ascending or descending chronological order. For more information, see sort operator.startTime
and endTime
in the body of your API request.limit
parameter to the body of your API request. The value of this parameter determines the number of events to display per page.order
parameter to the body of your API request. In the value of this parameter, order the results by time in either ascending or descending chronological order. For example, [{ "field": "_time", "desc": true }]
. For more information, see order operator.startTime
and endTime
in the body of your API request._time desc
):
endTime
parameter in the body of your API request to the timestamp of the last item (optionally, minus 1 nanosecond)._time asc
):
startTime
parameter in the body of your API request to the timestamp of the last item (optionally, plus 1 nanosecond).AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace DATASET_NAME
with the name of the Axiom dataset where you want to send data.AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace DATASET_NAME
with the name of the Axiom dataset where you want to send data.AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace DATASET_NAME
with the name of the Axiom dataset where you want to send data.AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace DATASET_NAME
with the name of the Axiom dataset where you want to send data.limit
operator in the APL query of your API request. The argument of this operator determines the number of events to display per page.sort by _time asc
or sort by _time desc
in the APL query. This returns the results in ascending or descending chronological order. For more information, see sort operator.startTime
and endTime
in the body of your API request.limit
parameter to the body of your API request. The value of this parameter determines the number of events to display per page.order
parameter to the body of your API request. In the value of this parameter, order the results by time in either ascending or descending chronological order. For example, [{ "field": "_time", "desc": true }]
. For more information, see order operator.startTime
and endTime
in the body of your API request.cursor
parameter to the body of your API request.
minCursor
and maxCursor
fields in the response are boundaries that help you page through the result set.
For queries with descending order (_time desc
), use minCursor
from the response as the cursor
in your next request to go to the next page. You reach the end when your provided cursor
matches the minCursor
in the response.
For queries with ascending order (_time asc
), use maxCursor
from the response as the cursor
in your next request to go to the next page. You reach the end when your provided cursor
matches the maxCursor
in the response.
If the query returns fewer results than the specified limit, paging can stop.
AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace DATASET_NAME
with the name of the Axiom dataset where you want to send data.AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace DATASET_NAME
with the name of the Axiom dataset where you want to send data.AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace DATASET_NAME
with the name of the Axiom dataset where you want to send data.AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace DATASET_NAME
with the name of the Axiom dataset where you want to send data.