Docs menu
API v3

Quickstart

PagePeeker's current API: send a URL and its options as JSON, get back the address of the image.

Your API key

v3 uses its own API keys, which start with pp_. Send yours in the Authorization header, as Bearer YOUR_KEY, or in X-API-Key. Never in the URL.

With the key you get a signing secret, for signed links. Both are shown once: keep them on your server.

Take a screenshot

POST /v3/shot with the options as JSON. wait holds the request open until the render is done, up to the seconds you give. The answer has the image's address in url.

import requests

shot = requests.post("https://api.pagepeeker.com/v3/shot",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"url": "https://example.com/", "width": 480, "height": 360, "wait": 30}).json()

if shot["status"] == "done":
    with open("capture.jpg", "wb") as f:
        f.write(requests.get(shot["url"]).content)

Every call is HTTPS: on plain HTTP the API refuses the request, as your key has already gone out in clear.

What comes back

done with status 200 and the image's url, queued with status 202 if the render is not done yet, or failed with the reason. A queued render is asked about with GET /v3/shot/{id}: see Screenshots.

Done
{
  "id": "9a3f0c2e5b7d41e8a6c3f2d1e0b9a8c7",
  "status": "done",
  "url": "https://api.pagepeeker.com/v3/files/9a3f0c2e5b7d41e8a6c3f2d1e0b9a8c7-4f2a9c1e7b3d5a60.jpeg",
  "rendered_at": "2026-11-16T12:00:00Z",
  "final_url": "https://example.com/",
  "status_code": 200,
  "title": "Example Domain",
  "width": 1280,
  "height": 1024,
  "bytes": 81234
}

Next