Docs menu
Endpoints

Download an image

The image of a done render, at the url of its answer. Use that address as it is: don't build it.

GEThttps://api.pagepeeker.com/v3/files/{name}

Authentication

None. Public, and counted toward none of your limits.

Request

No parameters: the whole address comes from the answer.

Response

The image, as image/jpeg, image/png or image/webp, with Cache-Control: public, max-age=31536000, immutable: you, a browser or a CDN can keep it for good, since a newer render gets a new address. Images are deleted 31 days after they were made (expires_at): keep your own copy if you need one longer.

Status codes

StatusAnswerWhen
200The imageUntil its expires_at.
404Not foundDeleted, or never made.

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

image = requests.get("https://api.pagepeeker.com/v3/files/962d605ee1df39be70f8a3b70a197199-ce1edc4934302edf.jpeg")
with open("python-org.jpg", "wb") as f:
    f.write(image.content)