GET
/
api
/
v1
/
realms
/
{realmId}
/
analytics
Get analytics stats for a realm/project
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
    }
  }
}

Authorizations

Authorization
string
header
required

API Key

Path Parameters

realmId
string
required

Query Parameters

startDate
string<date>

Start date (ISO 8601). Defaults to 30 days ago.

endDate
string<date>

End date (ISO 8601). Defaults to today.

timezone
string
default:UTC

Timezone for date calculations

Response

200 - application/json

Default Response

The response is of type object.