Skip to content

Get usage

GEThttps://api.vidmoat.com/v1/usage
Bearer tokenScope account.readFreeTry it in the playground

Request counts (with the error split) and credits spent, for the whole account and for this key's app, for building your own dashboard or a spend alarm.

Query parameters#

  • daysintegerdefault 30
    Window length in days, 1 to 90.

Response#

Returns 200.

Response fields#

  • windowobject
    { days, since }.
  • accountobject
    { credits, requests, errors, successes, byAction, balance } for every credential on the account. credits is net of refunds.
  • appobject
    The same counts for this key's app (or this key, when it has no app), with appId and keyId.

Errors#

Besides the errors any request can get (authentication, rate limits):

StatusCodeWhen
400invalid_requestdays is not a positive number.