API Keys

Get a key's recent usage

Returns how many requests authenticated with this key over the trailing 30 days. Pair with last_used / last_used_ip from the list endpoint to audit a credential before revoking or rotating it.

Accepts either a session cookie or an existing API key as auth.

get/api/keys/{id}/usage

Request

  • Base URL: https://www.audioscrape.com
  • URL: https://www.audioscrape.com/api/keys/{id}/usage
  • Auth: HTTP bearer

Path parameters

idinteger required

API key ID (from the id field on create / list)

Response

Usage over the trailing 30-day window

key_idinteger required
requestsinteger required

Requests that authenticated with this key inside the window.

window_daysinteger required

Trailing window the count covers, in days.

Example response

{
  "requests": 1204,
  "window_days": 30
}

Changes

No recorded changes to this operation across all 1 revision of this API.