The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Shotanvil listing page.
Usage examples and a live-synced OpenAPI spec copy for the shotanvil
screenshot API — 1 screenshot = 1 request, a free tier that's actually free, from $9/mo.
Base URL: https://api.shotanvil.com
GET /take and POST /render-html accept three access paths, checked in this order:
X-Payment header (pay-per-call, no signup, testnet-settled).X-Api-Key: <key> or ?access_key=<key>.An invalid API key always fails with 401 and never falls through to keyless, even when keyless
is enabled — a typo'd paying key never silently downgrades to a lower tier.
Get an API key at shotanvil.com.
Take a screenshot:
Get text + metadata as JSON instead of raw bytes:
Render inline HTML:
More runnable examples: examples/curl.sh,
examples/node/screenshot.mjs.
GET /take parameters| Param | Type | Notes |
|---|---|---|
url | string, required | Target page URL, http/https only. |
format | string | png (default), jpeg, webp, or pdf. |
full_page | bool | Capture the full scrollable page height, not just the viewport. |
viewport_width / viewport_height | int | 320–3840 / 240–2160. |
cache_ttl | int | Seconds to cache this exact render, 0–86400. |
fresh | bool | Bypass the cache read for this request. |
block_ads | bool | Block ad-network requests via an EasyList-derived blocklist. |
block_cookie_banners | bool | Inject a CSS kill-list that hides common cookie-consent banners. |
dark_mode | bool | Emulate prefers-color-scheme: dark before navigation. |
response_format | string | binary (default) returns raw bytes; json wraps image (base64) + extracted text/metadata. |
Full parameter reference, request/response schemas, and every field's worked example live in
openapi.json — open it in any OpenAPI viewer (e.g.
editor.swagger.io) for the browsable version.
Each API key has a per-second rate limit and a daily call cap. GET /usage reports the current
key's usage for the day. Exceeding either returns 429 with a retry_after_s field.
openapi.json in syncopenapi.json in this repo is a point-in-time copy, fetched from the live
GET https://api.shotanvil.com/openapi.json endpoint — it is not hand-written and will drift as
the API evolves.
Before relying on it for anything beyond casual browsing, or before any future update to this repo, re-fetch and diff:
If they differ, review the diff, replace openapi.json with the fresh copy, and commit — do not
hand-edit openapi.json directly.
Examples in this repo are MIT-licensed — copy and adapt freely. openapi.json describes the
shotanvil API and is provided for reference only.