Run an Explore metrics query
Changed onRuns a query against a single Explore metric and returns timeseries data for it.
Pass the entity you want to query, a date range using from and to, an interval, and one or more measures. Include dimensions to break results down, filters to narrow them, and order_by to control which results are returned first.
Use the list Explore metric entities operation to see the dimensions, measures, and filters available for a metric.
Results are broken down into segments, where a segment is one combination of the dimensions you grouped by. per_page limits the number of segments returned, not the number of datapoints. A page can hold up to 10,000 datapoints, calculated as per_page multiplied by the number of time buckets in your range. Requests over this limit return too_many_datapoints.
If successful, your response includes the query results in data, with a self-describing fields block and one entry in series for each segment.
Request
- Base URLhttps://sandbox-api.paddle.com
- AuthHTTP bearer
Query parameters
Base64-encoded pagination cursor returned in meta.pagination.next. Send it back unchanged as the after query parameter, along with the same request body, to get the next page. A cursor is only valid for the query that produced it. It expires after an hour, extended each time you use it, up to a maximum of 24 hours.
Pagination cursor from the previous response's meta.pagination.next. Omit for the first page. Send the same request body with it: a cursor that doesn't match the body you send is rejected with invalid_cursor.
Request body
Example request
{
"from": "2026-01-01",
"to": "2026-04-01",
"measures": [
{
"field": "gross_revenue"
}
],
"filters": [
{
"field": "country"
}
],
"order_by": [
{
"field": "gross_revenue"
}
]
}Response
A successful Explore query response: the result set plus pagination metadata.
Example response
{
"data": {
"starts_at": "2024-10-12T07:20:50.52Z",
"ends_at": "2024-10-12T07:20:50.52Z",
"updated_at": "2024-10-12T07:20:50.52Z",
"fields": {
"dimensions": [
{
"name": "country"
}
],
"measures": [
{
"name": "sum_gross_revenue",
"field": "gross_revenue"
}
]
},
"series": [
{
"timeseries": [
{
"timestamp": "2026-02-01"
}
]
}
]
},
"meta": {
"request_id": "b15ec92e-8688-40d4-a04d-f44cbec93355",
"pagination": {
"estimated_total": 42
}
}
}Changes
- info
endpoint added
- info