Endpoints
Get a screenshot
Where a render stands, by the id of its answer: done, queued or failed. Leave a few seconds between calls: each counts toward your requests per minute.
GEThttps://api.pagepeeker.com/v3/shot/{id}
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
| Path parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | The id of a POST /v3/shot answer. |
Response
| Field | Type | In | Description |
|---|---|---|---|
| id | string | all | The render's id, 32 hex characters. The same options give the same id. |
| status | string | all | done, queued or failed. |
| url | string | done | The image, to download with GET /v3/files/{name}. Its address never changes: a new render of the same page gets a new one. |
| rendered_at | string | done | When the render was made: ISO 8601, UTC. |
| final_url | string | done | Where the page ended up after redirects. |
| status_code | integer | done | The HTTP status the page answered with. |
| title | string | done | The page's title. Empty when it has none. |
| description | string | done | The page's meta description, up to 1,000 characters. Empty when it has none. |
| icon | string | done | The full address of the icon the page names in its HTML. Empty when it names none. |
| width | integer | done | The image's width, in pixels. |
| height | integer | done | The image's height, in pixels. |
| bytes | integer | done | The image's size. |
| expires_at | string | done | When the image is deleted: ISO 8601, UTC, 31 days after rendered_at. |
| reason | string | failed | Why, as a code: see Failed renders. Treat a code you don't know as render_failed. |
| message | string | failed | What happened, in words, for people. It may change: match on reason. |
| reason_url | string | failed | The reason's explanation, as GET /v3/reasons/{code} answers it. |
| failed_at | string | failed | When the render failed: ISO 8601, UTC. |
A queued answer has id and status only. Every answer carries your limit headers. New fields may be added: ignore the ones you don't know (Versioning).
{
"id": "962d605ee1df39be70f8a3b70a197199",
"status": "done",
"url": "https://api.pagepeeker.com/v3/files/962d605ee1df39be70f8a3b70a197199-ce1edc4934302edf.jpeg",
"rendered_at": "2026-12-03T09:40:21Z",
"final_url": "https://www.python.org/",
"status_code": 200,
"title": "Welcome to Python.org",
"description": "The official home of the Python Programming Language",
"icon": "https://www.python.org/static/favicon.ico",
"width": 480,
"height": 360,
"bytes": 26762,
"expires_at": "2027-01-03T09:40:21Z"
}
{
"id": "962d605ee1df39be70f8a3b70a197199",
"status": "queued"
}
{
"id": "a961c88297a355deda57fea09df415d7",
"status": "failed",
"reason": "timeout",
"message": "The selector did not appear in 30 seconds",
"reason_url": "https://api.pagepeeker.com/v3/reasons/timeout",
"failed_at": "2026-12-03T09:41:02Z"
}
Status codes
| Status | Answer | When |
|---|---|---|
| 200 | done | The render is done. |
| 202 | queued | The render is queued. |
| 200 | failed | The page couldn't be rendered. The same request is answered as failed for an hour, then rendered again. A failure costs no render. |
| 404 | error not_found | No render with this id (never asked for, or a failure older than an hour), no such failure reason, or no such endpoint. |
| 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/shot/962d605ee1df39be70f8a3b70a197199",
headers={"Authorization": "Bearer YOUR_KEY"},
)
print(res.status_code, res.json())
<?php
$http = curl_init('https://api.pagepeeker.com/v3/shot/962d605ee1df39be70f8a3b70a197199');
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/shot/962d605ee1df39be70f8a3b70a197199", {
headers: { Authorization: "Bearer YOUR_KEY" },
});
console.log(res.status, await res.json());
curl -i https://api.pagepeeker.com/v3/shot/962d605ee1df39be70f8a3b70a197199 \
-H "Authorization: Bearer YOUR_KEY"
{
"id": "962d605ee1df39be70f8a3b70a197199",
"status": "done",
"url": "https://api.pagepeeker.com/v3/files/962d605ee1df39be70f8a3b70a197199-ce1edc4934302edf.jpeg",
"rendered_at": "2026-12-03T09:40:21Z",
"final_url": "https://www.python.org/",
"status_code": 200,
"title": "Welcome to Python.org",
"description": "The official home of the Python Programming Language",
"icon": "https://www.python.org/static/favicon.ico",
"width": 480,
"height": 360,
"bytes": 26762,
"expires_at": "2027-01-03T09:40:21Z"
}