API DOCUMENTATION / USAGE REPORTING ENDPOINTS
Usage reporting endpoints
Read your own request ledger and daily totals, with the time rules and limits.
Two reports
| Route | What it returns |
|---|---|
GET /v1/usage/requests | One row for each request your account made: request ID, key ID, route class, times, state, HTTP status, whether it was charged and how many records it returned. |
GET /v1/usage/analytics | Daily totals: requests, charged, pending, rate-limited and over-limit requests, counts of 2xx, 3xx, 4xx and 5xx responses, error rate and records returned (jobs and companies). |
Both are free to read. They return no jobs and are left out of their own results.
Request ledger
GET /v1/usage/requests?from=2026-10-13T00:00:00Z&to=2026-10-14T00:00:00Z&limit=100The response is {data, next_cursor, admissions_captured_at}. from and to are required UTC timestamps with from before to, at most 31 days apart. Filter with route_class. limit is 1 to 100 (default 50). Several fields in each row can be null, for example finalized_at on a request that has not completed. The cursor freezes which requests are included for one hour, while the status of those requests stays current. After an hour, start again.
Daily analytics
GET /v1/usage/analytics?from=2026-10-01T00:00:00Z&to=2026-10-14T00:00:00Z&group_by=route_classUse group_by with route_class, status_class or api_key_id to split each day. Without it you get one total for each UTC day. Request counts belong to the UTC day the request was admitted. Returned-record counts belong to the day the request finished.
error_rate is the share of requests that returned a 4xx or 5xx response, rounded to four decimal places, or null when there were none. A report that would cover more than 100,000 requests or 1,000 groups returns 422; use a shorter period.
Rules
- Times are RFC 3339 in UTC, ending with
Z. The period starts atfromand ends just beforeto. - Send each parameter once. Unknown or repeated parameters return
400. api_key_idfilters one key. All keys on an account appear together by default.
A report is not an invoice
The reports describe requests and returned records. They do not show a dollar balance or invoice. See your account page for billing, and the pricing page for the rate.
Empty result
{
"data": [],
"next_cursor": null,
"admissions_captured_at": "2026-10-14T12:00:00.000Z"
}A period with no requests returns an empty data array and a null cursor. That is a success, not an error.