Sections in this article
Endpoint
GET https://api.rasterwise.com/v1/usage
This endpoint returns the current usage and the monthly allowance of an API Key. It requires both the API Key you want to query and an email parameter.
Calling this endpoint counts toward your monthly quota: each call uses one unit, the same as a screenshot.
Required Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
apikey |
string | Your secret API Key. | ?apikey=5WjESjB72Rb2JC7frBf026kBgg82DaPQIOxc -Not an actual apikey- |
email |
string | Email address for the account. The parameter must be present and not empty. | &email=john@doe.com |
Example Request
curl "https://api.rasterwise.com/v1/usage?apikey=$GETSCREENSHOT_API_KEY&email=john%40doe.com"
Response
A successful call returns HTTP 200 and a JSON response with the following structure:
{
"usedQuota": 123,
"remainingQuota": {
"limit": 6000,
"offset": 0,
"period": "MONTH"
},
"quotaRestartDate": "2026-12-01"
}
Response Fields
| Field | Type | Description |
|---|---|---|
usedQuota |
number | Requests used in the current period |
remainingQuota.limit |
number | Your monthly allowance. This is the plan limit, not the number of requests you have left |
remainingQuota.offset |
number | Offset of the quota period |
remainingQuota.period |
string | Quota period. MONTH |
quotaRestartDate |
string | Date the quota resets, in YYYY-MM-DD format |
Despite its name, remainingQuota describes the plan quota. To get the number of requests you have left, subtract:
remaining = remainingQuota.limit - usedQuota
In the example above that is 6000 - 123 = 5877.
Error Responses
| HTTP Code | Body | Meaning |
|---|---|---|
| 400 | {"message":"Email parameter is required"} |
The email parameter is missing or empty. |
| 400 | {"message":"Invalid API key"} |
The API key could not be matched to an account. |
The authentication, quota and rate limit errors listed in the /v1/get-screenshot reference apply to this endpoint as well.