ShotAPI

Screenshot & PDF API

A URL or HTML snippet in. PNG, JPEG, or PDF out.

把公开 URL 或 HTML 渲染成 PNG、JPEG 或 PDF。

ShotAPI is an HTTP API. Send a public URL or a piece of HTML and get an image or a PDF back. Authorize with an API key. ShotAPI Pro is $19/month.

Quick start
curl -sS -X POST https://shot-api.com/api/v1/render \
  -H "authorization: Bearer sk_demo_local_dev_only" \
  -H "content-type: application/json" \
  -o shot.png \
  -d '{"html":"<h1>Hello</h1>","format":"png","viewport":{"width":1280,"height":720}}'

01

Send HTML or a URL

POST JSON to /api/v1/render. Set format to png, jpeg, or pdf.

02

Authorize with a key

Send Authorization: Bearer or X-API-Key. The server stores a hash of the secret.

03

Usage is recorded

Each success increments that key's UTC month. Response headers show usage, limit, and plan.

Pricing

Two monthly quotas. Upgrade the key that calls the API by starting checkout.

DEMO

Free

$0/ month
  • 100 renders / month
  • PNG, JPEG, and PDF
  • No card required
Try a snippet

PRO

ShotAPI Pro

$19/ month
  • 10,000 renders / month
  • Same render API, higher quota
  • Checkout through Creem
Start checkout

POST /api/v1/billing/checkout with your API key returns a Creem URL. The key moves to Pro when the webhook confirms payment. Published price: $19/month.

Render a snippet

The public preview form is off. Mint a key with SHOTAPI_ADMIN_TOKEN, then call POST https://shot-api.com/api/v1/render. The request shape is in the docs.

What this API does not do

Auth, the render fields, billing, and rate limits are in the API docs.