Skip to main content
GET
/
v1
/
usage
Get API usage
curl --request GET \
  --url https://api.scrip.dev/v1/usage \
  --header 'X-API-Key: <api-key>'
{}
Returns daily aggregated API usage statistics for your organization. Each day includes total request count, error count (any response with status >= 400), and average latency in milliseconds. The default window is the last 30 days. Use the from and to parameters to specify a custom date range. This endpoint is useful for monitoring traffic trends, spotting error rate spikes, and tracking latency over time.
For usage patterns and examples, see the Reporting guide.

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Query Parameters

from
string

Start date (RFC 3339, default: 30 days ago)

to
string

End date (RFC 3339, default: now)

Response

Daily usage metrics

The response is of type object.