Get Hosted API Analytics
Authentication
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Path parameters
Hosted API id (prefixed external id, api_...).
Headers
Query parameters
Inclusive start of the window (RFC-3339). Defaults to 7 days ago; the window is capped at 30 days.
Exclusive end of the window (RFC-3339). Defaults to now.
Time-bucket size for the analytics series.
Response headers
Response
The time-bucket size of the series.
Window-wide rollups.
Per-bucket time series, oldest first.
The most-called route patterns in the window, busiest first.
True when a project_id filter’s pinned key set exceeded the cap this endpoint applies: the result reflects only the project’s newest keys within the cap, not its full traffic. Omitted (false) when no project filter was requested or its key set fit under the cap.
Hosted API analytics only: the first request in the last 30 days the request log attributes to this API. Requests before it cannot be attributed, so a bucket before it is missing data rather than zero traffic. Absent when no such request exists, in which case no bucket is known to be complete.