Skip to main content
GET
Retrieves usage statistics and analytics for a specific API key.

Path Parameters

key_id
string
required
The unique identifier of the API key

Query Parameters

period
string
default:"30d"
The time period for statistics. Options: 24h, 7d, 30d, 90d
granularity
string
default:"day"
The granularity of the data. Options: hour, day, week

Response

key_id
string
The unique identifier of the API key
period
string
The time period of the statistics
total_requests
number
Total number of requests made with this key
successful_requests
number
Number of successful requests (2xx status codes)
failed_requests
number
Number of failed requests (4xx and 5xx status codes)
usage_by_endpoint
object
Breakdown of usage by API endpoint
daily_usage
array
Array of daily usage statistics