Shotfly

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.

TopicWhat it covers
Quick startTake your first website screenshot with the Shotfly API in curl, Node.js or Python.
Authentication and signed URLsAuthenticate Shotfly API requests with a secret key, or embed screenshots with signed URLs.
ParametersEvery Shotfly screenshot API parameter: output format, full page, viewport and devices, waiting, blocking, caching and more.
ResponsesShotfly API response headers, the JSON response with page metadata, and the error format.
Async jobs and webhooksQueue screenshots with POST /v1/jobs and receive results through signed webhooks.
Monitors and archivesScheduled screenshots compared run to run, change alerts, and archives with SHA-256 and RFC 3161 timestamps.
Usage and reportsCheck credits used this period and report charged screenshots that are unusable.
MCP serverGive AI agents a take_screenshot tool: set up the Shotfly MCP server in Claude Code, Claude Desktop, Cursor and other MCP clients.
Error codesEvery Shotfly API error code and what to do about it.

Language guides

GuideWhat it covers
Website screenshots with Node.jsTake 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 PythonTake 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 PHPTake 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.jsGenerate 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