Get usage
GET
/usageWhat the account has used: API requests over the last 30 days, day by day and by website (live keys only; sandbox requests are never counted, so a sandbox key gets an empty window) and, on Open Guest, this billing period's guest projects, what they come to and the budget.
guestProjects.count belongs to the period it was counted in: after a renewal it is 0
until the first guest of the new period, and spend is the base fee.
Responses
typestringrequiredAlways"usage"- Which world the key, and everything made with it, belongs to. See Live and sandbox.One of
livesandbox requestsobjectrequiredAPI requests by the account's live keys, embeds included. Sandbox requests are never counted.guestProjectsobjectOpen Guest only. This billing period's guest projects and what they come to.
Errors
A failed request answers with one of these, in an Error body.
403
insufficient_scopeThe key does not have the access this endpoint needs. Create a key with that access.403
invalid_api_keyNo key was sent in the Authorization header, or the key is unknown, revoked, or past the time it kept working after being replaced.403
invalid_subscriptionYour plan has no API access. The API is part of the Enterprise and Open Guest plans.Try it
This key is
The key stays in this tab and goes only to the API. Use a sandbox key while you try things: requests are real, and what they change is changed.
GET https://api.measuremaponline.com/api/v2/usageFill in your API key to send.
As a cURL command
curl 'https://api.measuremaponline.com/api/v2/usage' \
-H "Authorization: $MMO_API_KEY"