API Documentation

Learn how to use the Screenshot Service API.

Endpoint

The base endpoint for taking screenshots is:

GET /screenshot

Query Parameters

Example Request

Here's an example using curl:

curl "https://screenshot--api.com/screenshot?url=https://cloudflare.com&width=1920&height=1080&format=jpeg&wait=1000" -o cloudflare_screenshot.jpg

Replace https://screenshot--api.com with the actual URL of your deployed worker.

Rate Limiting

The API is currently limited to 3 free screenshots per IP address per day.

If you exceed the limit, you will receive a 429 Too Many Requests response.

(Paid plans coming soon!)