Billing
API requests over time
Admin-only endpoint that returns request/charged/failed/credit counts bucketed by time across all users. Without an explicit range it defaults to the last 30 days.
get/admin/billing/stats/requests/timeseries
Request
- Base URL: https://api.crawlora.net/api/v1
- URL: https://api.crawlora.net/api/v1/admin/billing/stats/requests/timeseries
- Auth: API key in header x-api-key
Query parameters
fromstring
Lower bound in RFC3339 format
tostring
Upper bound in RFC3339 format
bucket'hour' | 'day'
Bucket granularity
endpointstring
Normalized endpoint or API path
exclude_user_idstring
Comma-separated caller user ids to drop from the series (e.g. static:kuma-monitor)
Headers
x-api-keystring required
Admin API key required unless an Admin JWT is already present
Response
Request timeseries
Example response
{
"code": 200,
"data": [
{
"charged_requests": 1100,
"credits": 1100,
"failed_requests": 40,
"non_billable_requests": 60,
"requests": 1200
}
],
"msg": "OK"
}Changes
No recorded changes to this operation across all 3 revisions of this API.