GET
/
v3
/
analytics
/
usage
curl --request GET \
  --url https://api.supermemory.ai/v3/analytics/usage \
  --header 'Authorization: Bearer <token>'
{
  "usage": [
    {
      "type": "add",
      "count": 123,
      "avgDuration": 123,
      "lastUsed": "<string>"
    }
  ],
  "hourly": [
    {
      "hour": "2023-11-07T05:31:56Z",
      "timestamp": 123,
      "count": 123,
      "avgDuration": 123
    }
  ],
  "byKey": [
    {
      "apiKeyId": "<string>",
      "keyName": "<string>",
      "count": 123,
      "lastUsed": "<string>",
      "avgDuration": 123
    }
  ],
  "pagination": {
    "currentPage": 1,
    "totalPages": 10,
    "limit": 10,
    "totalItems": 100
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json

Usage stats

The response is of type object.