Skip to content
Skip to content

Get usage

Returns the request rate limit and download limits for the account.

Any purchase
GET/v1/usage
curl --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": {
dataUsagealways

About 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.rateLimitobjectalways
data.rateLimit.limit120always

Requests per account per minute.

data.rateLimit.windowSeconds60always

Rate window in seconds.

data.downloadsobjectalways
data.downloads.perFileVersion20always

Downloads per version of each file a month; the count starts again at 00:00 UTC on the 1st of each month.

metaMetaalways

Present on every successful response.

meta.requestIdstringalways

Quote this id when contacting support. Also sent as the X-Request-Id header.

meta.catalogRevisionstringalways

SHA-256 over the published catalog. Changes when the catalog is redeployed; cursors are bound to it.

meta.accountstring

sample 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.sampleSampleFacts

Present with account: sample. What the sample account holds and where the rest of the catalog can be bought.

meta.sample.exercisesintegeralways

Exercises the sample account owns.

meta.sample.catalogueTotalintegeralways

Published exercises in the catalog.

meta.sample.packsUrlstringalways

The packs page. A key from any purchase answers with what that account owns.

Errors

400
invalid_request

Invalid request or cursor.

401
invalid_api_keyauthentication_required

The 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.

403
purchase_required

A purchase or ownership of the requested exercise is required.

404
not_found

The route or exercise was not found.

405
method_not_allowed

Use a supported HTTP method.

429
rate_limit_exceeded

About 120 requests a minute per account. Wait for Retry-After before retrying.

500
internal_error

Unexpected failure. Contact support with requestId if it persists.

503
api_disabledapi_unavailable

Temporarily unavailable. Retry later.

Every code with its next step is on Errors.