Endpoints
Get your usage
The period your renders are counted in, the renders used and allowed, and your requests per minute.
GEThttps://api.pagepeeker.com/v3/usage
Authentication
Your API key, in Authorization: Bearer YOUR_KEY or X-API-Key: YOUR_KEY: see Authentication. The request counts toward your requests per minute.
Request
No parameters.
Response
| Field | Type | Description |
|---|---|---|
| period_start | string | When the period your renders are counted in started: ISO 8601, UTC. |
| period_end | string | When it ends, and the count starts again. |
| renders_used | integer | Renders done for you this period. Counted every few minutes, so it can be a little behind. |
| renders_limit | integer | Renders a period, on your plan. |
| requests_per_minute | integer | Requests a minute, on your plan. |
{
"period_start": "2026-12-01T00:00:00Z",
"period_end": "2027-01-01T00:00:00Z",
"renders_used": 124,
"renders_limit": 500,
"requests_per_minute": 10
}
The same numbers come in the headers of every answer about a render, so you rarely need to ask.
Status codes
| Status | Answer | When |
|---|---|---|
| 200 | Your usage | With a working key. |
| 401 | error missing_key | No key in Authorization: Bearer or X-API-Key. A key in the URL is not read. |
| 401 | error invalid_key | The key is not valid, or was revoked. |
| 403 | error account_inactive | The account is not active. |
| 429 | error rate_limited | Over your requests a minute. Retry-After says when to try again. |
Every endpoint can also answer 403 https_required, 405 method_not_allowed, 500 internal_error. What each error means and what to do about it: Errors and failures.
Example
import requests
res = requests.get(
"https://api.pagepeeker.com/v3/usage",
headers={"Authorization": "Bearer YOUR_KEY"},
)
print(res.status_code, res.json())
<?php
$http = curl_init('https://api.pagepeeker.com/v3/usage');
curl_setopt_array($http, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_KEY'],
CURLOPT_RETURNTRANSFER => true,
]);
$answer = json_decode(curl_exec($http), true);
echo curl_getinfo($http, CURLINFO_RESPONSE_CODE), "\n";
print_r($answer);
const res = await fetch("https://api.pagepeeker.com/v3/usage", {
headers: { Authorization: "Bearer YOUR_KEY" },
});
console.log(res.status, await res.json());
curl -i https://api.pagepeeker.com/v3/usage \
-H "Authorization: Bearer YOUR_KEY"