API reference
Documentation
The Shotfly API lives at https://api.shotfly.dev. Send a URL or HTML to /v1/screenshot and get back PNG, JPEG, WebP or PDF. Start with the quick start.
| Topic | What it covers |
|---|---|
| Quick start | Take your first website screenshot with the Shotfly API in curl, Node.js or Python. |
| Authentication and signed URLs | Authenticate Shotfly API requests with a secret key, or embed screenshots with signed URLs. |
| Parameters | Every Shotfly screenshot API parameter: output format, full page, viewport and devices, waiting, blocking, caching and more. |
| Responses | Shotfly API response headers, the JSON response with page metadata, and the error format. |
| Async jobs and webhooks | Queue screenshots with POST /v1/jobs and receive results through signed webhooks. |
| Monitors and archives | Scheduled screenshots compared run to run, change alerts, and archives with SHA-256 and RFC 3161 timestamps. |
| Usage and reports | Check credits used this period and report charged screenshots that are unusable. |
| MCP server | Give AI agents a take_screenshot tool: set up the Shotfly MCP server in Claude Code, Claude Desktop, Cursor and other MCP clients. |
| Error codes | Every Shotfly API error code and what to do about it. |
Language guides
| Guide | What it covers |
|---|---|
| Website screenshots with Node.js | Take website screenshots from Node.js with the built-in fetch: save images, read page metadata, queue jobs and sign embeddable URLs, with code that runs. |
| Website screenshots with Python | Take website screenshots from Python with requests: save images, retry safely, queue jobs, sign embeddable URLs and verify webhooks, with code that runs. |
| Website screenshots with PHP | Take website screenshots from PHP with the curl extension, and sign screenshot URLs you can embed in pages and og:image tags without exposing your key. |
| Dynamic Open Graph images in Next.js | Generate og:image cards in the Next.js App Router from a page you design in HTML and CSS: a signed Shotfly URL in generateMetadata, cached, secret kept server-side. |
Last updated 2026-12-01. Markdown version: /docs.md