API Keys
Get API key statistics
Retrieve usage statistics for a specific API key, based on audit logs, for a given timeframe
get/api/api-keys/{id}/stats
Request
- Base URL: https://api.zvid.io
- URL: https://api.zvid.io/api/api-keys/{id}/stats
- Auth: one of:
- API key in header x-api-key
- HTTP bearer
Path parameters
idinteger required
Example:789
API key ID
Query parameters
timeframe'24h' | '7d' | '30d'
Example:30d
Timeframe for statistics. Supported values: 24h, 7d, 30d (default: 30d).
Response
API key statistics retrieved successfully
Example response
{
"timeframe": "30d",
"summary": {
"totalRequests": 1500,
"successfulRequests": 1400,
"failedRequests": 100,
"avgResponseTime": 120.5
},
"dailyStats": [
{
"date": "2025-01-01",
"requests": 100,
"successful": 95,
"failed": 5
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.