Get usage
Returns the request rate limit and download limits for the account.
/v1/usagecurl --fail-with-body -sS \ -H "Authorization: Bearer $MOVEKIT_API_KEY" \ "https://api.movekit.com/v1/usage"Authorization: Bearer $MOVEKIT_API_KEY.
Response 200
Request and download limits.
{ "data": { "rateLimit": { "limit": 120, "windowSeconds": 60 }, "downloads": { "perFileVersion": 20, "requestsPerLink": 16 } }, "meta": {dataUsagealwaysAbout 120 requests a minute per account. Each version of a file can be downloaded 20 times a month, and the count starts again at 00:00 UTC on the 1st of each month; new versions start again.
data.rateLimitobjectalwaysdata.rateLimit.limit120alwaysRequests per account per minute.
data.rateLimit.windowSeconds60alwaysRate window in seconds.
data.downloadsobjectalwaysdata.downloads.perFileVersion20alwaysDownloads per version of each file a month; the count starts again at 00:00 UTC on the 1st of each month.
data.downloads.requestsPerLink16alwaysRequests per download link, including resumes and HEAD.
metaMetaalwaysPresent on every successful response.
meta.requestIdstringalwaysQuote this id when contacting support. Also sent as the X-Request-Id header.
meta.catalogRevisionstringalwaysSHA-256 over the published catalog. Changes when the catalog is redeployed; cursors are bound to it.
meta.accountstringsample when the request carried no API key: it was answered as the sample account. On a page of GET /v1/exercises answered with a key, acct_ and 16 hexadecimal characters: an opaque id of the account the key belongs to, made at random the first time the account lists exercises and never changed, the same for every key of that account and on every request, so an importer can tell a key of another account. It is not the account's internal id and says nothing about it.
meta.sampleSampleFactsPresent with account: sample. What the sample account holds and where the rest of the catalog can be bought.
meta.sample.exercisesintegeralwaysExercises the sample account owns.
meta.sample.catalogueTotalintegeralwaysPublished exercises in the catalog.
meta.sample.packsUrlstringalwaysThe packs page. A key from any purchase answers with what that account owns.
Errors
invalid_requestInvalid request or cursor.
invalid_api_keyauthentication_requiredThe key sent is not a live API key, or this route needs one. A request with no Authorization header is answered as the sample account where the route allows it.
purchase_requiredA purchase or ownership of the requested exercise is required.
not_foundThe route or exercise was not found.
method_not_allowedUse a supported HTTP method.
rate_limit_exceededAbout 120 requests a minute per account. Wait for Retry-After before retrying.
internal_errorUnexpected failure. Contact support with requestId if it persists.
api_disabledapi_unavailableTemporarily unavailable. Retry later.
Every code with its next step is on Errors.