Get API key usage
Retrieve usage analytics and billing data for a specific API key.
Get your Exa API key
Important Notes
- Lookback Limit: A
start_dateolder than 180 days returns400. - Zero Usage: If the API key has no usage in the requested period,
total_cost_usdwill be 0 andcost_breakdownmay be empty. - Team Ownership: The service API key used for authentication must belong to the same team as the requested API key. Cross-team access is not permitted.
- Date Formats: Dates can be provided in ISO 8601 format with or without time components (e.g.,
2025-01-01or2025-01-01T00:00:00Z).
Authorizations
Service API key for team authentication
Path Parameters
The key's publicId. The key's current secret is also accepted for backward compatibility.
Query Parameters
Start date for the usage period (ISO 8601 format). Defaults to 30 days ago. Must be within the last 6 months (180 days).
End date for the usage period (ISO 8601 format). Defaults to current time.
Has no effect on the response.
hour, day, month Response
Usage data retrieved successfully
The key's publicId, its stable identifier.
The API key's secret, kept for backward compatibility. Despite the field name it is not an identifier; use id to identify the key.
The name of the API key
The team ID this key belongs to
Total cost in USD for the period
45.67
Breakdown of costs by price type