Learn how to use the Axiom API to query data.
startTime
and endTime
. For more information, see the query data API reference.Content-Type
header to application/json
.Authorization
header to Bearer API_TOKEN
.https://AXIOM_DOMAIN/v1/datasets/_apl?format=tabular
.https://AXIOM_DOMAIN/v1/datasets/_apl?format=legacy
.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.query
function.
DATASET_NAME
with the name of the Axiom dataset where you want to send data.