Get usage
GET
https://api.vidmoat.com/v1/usageRequest 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#
daysintegerdefault30Window 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.creditsis net of refunds.appobjectThe same counts for this key's app (or this key, when it has no app), withappIdandkeyId.
Errors#
Besides the errors any request can get (authentication, rate limits):
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | days is not a positive number. |