api_stats
/api_statsLegacy. Use GET /runs/summary for new work.
Retrieve API usage statistics for the current account. Returns counts of API runs grouped by status.
Pass detailed=true to include run-level detail (run_key and app URL) for active runs (pending, enqueued, processing).
Query parameters
detailedbooleanSet to true to include run-level detail for active statuses
Responses
200API stats retrieved successfully
request_statusstringrequiredmessagestringrequiredRun counts grouped by status. Additional status keys use the same shape as the examples below.
Attributes
pendingobjectAttributes
countintegerdetailarray of objectAttributes
run_keystringurlstring urienqueuedobjectAttributes
countintegerprocessingobjectAttributes
countintegerdetailarray of objectAttributes
run_keystringurlstring urisuccessobjectAttributes
countintegerstoppedobjectAttributes
countintegerfailedobjectExample of another status key
Attributes
countinteger401Unauthorized - invalid or missing API key
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.
403Forbidden - API access not enabled for account
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.