API Reference
Complete API documentation and reference
Retrieve aggregated analytics data for all API keys in a realm/project
cURL
curl --request GET \ --url https://api.drip.re/api/v1/realms/{realmId}/analytics \ --header 'Authorization: Bearer <token>'
{ "data": [ { "date": "<string>", "keys": [ { "keyId": "<string>", "name": "<string>", "requests": 123, "units": 123, "errors": 123, "avgDuration": 123 } ], "totalRequests": 123, "totalUnits": 123, "totalErrors": 123, "avgDuration": 123 } ], "meta": { "summary": { "totalRequests": 123, "totalUnits": 123, "totalErrors": 123, "avgDailyRequests": 123, "avgDailyUnits": 123, "errorRate": 123, "topKey": { "keyId": "<string>", "name": "<string>", "requests": 123, "units": 123 }, "peakDay": { "date": "<string>", "requests": 123, "units": 123 } }, "timeRange": { "start": "<string>", "end": "<string>", "days": 123 } } }
API Key
Start date (ISO 8601). Defaults to 30 days ago.
End date (ISO 8601). Defaults to today.
Timezone for date calculations
Default Response
The response is of type object.
object
Was this page helpful?