API documentation

Base URL: https://shotmint.creasework.com. Authenticate with the X-API-Key header, Authorization: Bearer KEY, or the access_key query parameter.

Get a free key   SDKs: Node.js and Python clients · Machine-readable: OpenAPI 3.1 spec · llms.txt

Keys and pricing

Get a key with no signup, no email and no card: click Get a free key, or from any script, agent or no-code tool run curl -X POST https://shotmint.creasework.com/v1/keys/free, which returns {"key":"sm_...","credits":25} (one per IP per 24 hours). Every key gets 25 free renders a month, topped up on the 1st (UTC). After that, prepaid packs with no subscription: €5 for 2,000 renders, €19 for 10,000 renders, €59 for 50,000 renders. Credits never expire and top up the same key. One successful render (screenshot, PDF, OG image or content extraction) costs 1 credit, a PDF merged from urls 1 per URL; failed renders and cache_ttl cache hits are free, and GET /v1/check costs nothing. A 402 response carries a top-up link for the key. Pricing and comparison.

GET/POST /v1/screenshot

Returns image/png, image/jpeg or image/webp. Parameters as query string (GET) or JSON body (POST; form fields work too). To render your own HTML without building JSON, POST it as the raw body with Content-Type: text/html and put the other parameters in the query string (also on /v1/pdf and /v1/content), e.g. curl --data-binary @page.html or Power Automate's HTTP action:

ParamDefaultDescription
urlPage to capture (http/https). Or pass html instead.
htmlRaw HTML to render (POST, up to 2MB).
base_urlWith html: the URL that relative links, stylesheets and images resolve against, e.g. https://yoursite.com/ (adds a <base href> unless your HTML has one). Without it, <link href="/app.css"> is silently skipped. Also on /v1/pdf and /v1/content.
width / height1280 / 800Viewport size in px.
full_pagefalseCapture the full scrollable page (up to 16,000px tall). With html and no height, the image is cropped to the content height, so small cards come back without a white band.
selectorCSS selector: capture only this element.
formatpngpng, jpeg or webp. quality 10–100 for jpeg/webp (default 80).
omit_backgroundfalseTransparent background where the page doesn't paint one (png/webp).
block_adsfalseBlock common ad, tracker and consent-manager requests and hide cookie-consent banners, including in-house consent overlays (how it works).
block_chatsfalseHide floating live-chat widgets (Intercom, Shopify Inbox, HubSpot, Zendesk, Tidio, Crisp, Drift, tawk.to and ~30 more) with CSS, so they don't sit over your capture.
device_scale_factor11–3 (2 = retina).
thumb_widthnoneScale the image down to this width (the page still lays out at width). width=1280&thumb_width=320 gives a 320×200 thumbnail: 33 KB instead of 287 KB for a Wikipedia article.
dark_modefalseEmulate prefers-color-scheme: dark.
delay0Extra wait in ms after load (max 10000). On /v1/screenshot, values from 1 to 30 are read as seconds.
wait_untilload + up to 2.5 sload, domcontentloaded or networkidle. Screenshots that don't set it wait for load, then up to 2.5 s for the network to go quiet, because JS-rendered pages are often still empty at load. Set wait_until=load for the fastest capture.
ScreenshotOne names/v1/screenshot also accepts viewport_width, viewport_height, image_quality, image_width, styles, viewport_mobile, block_cookie_banners, cache=true and networkidle0/2, so a ScreenshotOne URL works after a host and key change (full mapping). Urlbox's retina, hide_selector, hide_cookie_banners, ttl and wait_until values work too (Urlbox mapping).
hide_selectorsComma-separated CSS selectors to hide (cookie banners, chat widgets).
cssYour own CSS, injected after load (max 100,000 characters), e.g. .chat-widget{display:none} body{font-size:18px}. Also works on /v1/pdf and /v1/content, and on pages with a strict Content-Security-Policy. Send it URL-encoded, or as a JSON/form body field.
user_agentCustom User-Agent string.
mobilefalseEmulate a touch phone (honours the meta viewport). Combine with width=390&height=844&device_scale_factor=3 and a mobile user_agent.
cache_ttl0Seconds (max 2592000, i.e. 30 days; 604800 = weekly) to cache this exact request for your key. Identical repeats within the window are free and carry X-Cache: HIT. Also works on /v1/pdf.
responsefileurl returns JSON instead of bytes: {"url", "content_type", "size", "expires_at", "credits_remaining"}. The file stays at that unlisted URL for 24 hours. Handy in Zapier, Make and other tools that handle JSON better than files. Also works on /v1/pdf.
filenamescreenshot / pageDownload name without or with extension, e.g. invoice-1042: sets Content-Disposition, and with response=url the URL ends in /invoice-1042.pdf, so Drive, Gmail and Slack steps keep the name. Letters, digits, . _ - and spaces, max 100. Also works on /v1/pdf; it doesn't affect cache_ttl hits.
headersPOST JSON only. Object of extra request headers, e.g. {"Authorization": "Bearer …"}. Sent only to requests on the target URL's origin (never to third-party assets) and not re-sent after a redirect. Also on /v1/pdf.
cookiesPOST JSON only. Session cookies, as [{"name": "sid", "value": "…"}] (optional domain, path, secure, httpOnly, sameSite) or "a=1; b=2". Without domain they're scoped to the URL's host. Also on /v1/pdf. Guide.

GET/POST /v1/pdf

Returns application/pdf. Accepts url or html, plus wait_until, delay, hide_selectors, css, headers, cookies and:

ParamDefaultDescription
formatA4A3, A4, A5, Letter, Legal, Tabloid.
landscapefalseLandscape orientation.
margin10mme.g. 0mm, 1in, 20px.
print_backgroundtrueInclude CSS backgrounds.
scale10.1–2.
screen_mediafalseUse screen CSS instead of print CSS.
prefer_css_page_sizefalseUse the size and margins from your CSS @page rule (e.g. @page { size: A5 landscape; margin: 20mm }, or custom sizes like size: 100mm 150mm) instead of format, landscape and margin.
page_numbersfalseAdds a centered "1 / 3" footer to every page.
taggedfalseTagged (accessible) PDF: headings, lists, tables and image alt text become structure tags that screen readers and text reflow use. About 1.5-2.5x larger files (Wikipedia article: 461 KB → 1.1 MB). These are Chrome's tags, not a validated PDF/UA file.
outlinefalseBookmarks in the PDF viewer's sidebar, nested like your h1-h6 headings. Turns on tagged.
watermarkText stamped diagonally across the centre of every page, such as DRAFT, CONFIDENTIAL or Copy for ACME Ltd (max 100 characters; Latin, Greek and Cyrillic letters). It is drawn onto the finished PDF, so the page's own CSS can't hide or move it, and it is sized to fit the page diagonal. Works with password.
watermark_opacity, watermark_color0.15, #808080Watermark opacity (above 0, up to 1) and hex color, e.g. 0.3 and #cc0000.
title, author, subject, keywordspage <title>Document properties (what a PDF viewer shows under File > Properties; with title set, the viewer's title bar shows it instead of the file name). Any language, max 1000 characters each; keywords is a comma-separated string or an array of strings. Kept with password, watermark and pdf_a.
urlsMerge several pages into one PDF: instead of url, send up to 20 URLs (a JSON array, one per line, or urls= repeated in a form body or query string). Each page is printed with the same options and added in order; watermark, password, properties and pdf_a apply to the merged file. Costs 1 credit per URL, all refunded if any page fails (the error names which one). Links and text are kept; page numbers restart for each URL, and tagged/outline aren't available here. X-Page-Status is the first non-2xx/3xx status, and X-Page-Statuses lists every page's status in order.
pdf_afalseArchival PDF/A output: true or "2b" gives PDF/A-2b, and "1b" and "3b" are accepted too. Fonts are embedded and an sRGB output intent is added; links, bookmarks and the title are kept, structure tags are not (so this is level b, not a). Each level passed veraPDF on our test pages (Wikipedia, an html invoice with a watermark, example.com). Adds about 0.2-2 s. PDF/A forbids encryption, so it can't be combined with password or no_print/no_copy/no_edit (that is a 400). Walkthrough with veraPDF results: HTML to PDF/A.
passwordEncrypts the PDF with AES-256 so it only opens with this password (max 128 characters). Send it in the POST body: it is refused in the query string, because URLs end up in logs. Adds about 50 ms.
no_print, no_copy, no_editfalseEncrypt the PDF and block printing, copying text, or editing (also annotations and form filling). Works with or without password. Viewers such as Acrobat, Preview, Chrome and pdf.js honour these flags, but they are not DRM.
owner_passwordrandomPassword that lifts the no_* limits in a PDF editor. Without it, a random one is used, so nobody can lift them.
header_template, footer_templateHTML (max 5000 chars) printed in the top/bottom margin of every page. Chrome fills <span class="pageNumber">, totalPages, date, title and url. Set a font size (the default is tiny), use inline styles and data: images only, and leave room with margin (e.g. 20mm). A footer_template overrides page_numbers.

GET/POST /v1/content

Loads url (or html) in Chromium and returns its content as JSON: url, title, description, byline, site_name, published_time, lang, main_content, format, words, content (max 1,000,000 characters), truncated, and status + final_url (the page's HTTP status and URL after redirects; a 404 or a bot wall still returns 200 from us, so check status before indexing). A url that points to a PDF (e.g. an arXiv paper) returns the PDF's text layer as Markdown with headings, bold and links, the title from its metadata, plus content_type (application/pdf), pages and pages_read (the first 300 pages of files up to 30 MB). Scanned PDFs have no text layer: OCR them first with the free OCR PDF tool. Accepts the same wait_until, delay, hide_selectors, block_ads, user_agent, cache_ttl, headers and cookies as screenshots. 1 credit. Try it in the browser: website to Markdown.

ParamDefaultDescription
formatmarkdownmarkdown (GitHub tables, fenced code, absolute links), text or html.
main_contenttrueMain article only (Mozilla Readability). false returns the whole page body; the response says "main_content": false when no article was found either.
linkstrueMarkdown only. false keeps the link text but drops link URLs and images: on Wikipedia, MDN and a long blog post that cut the Markdown by 35-50% in tokens.

POST /v2/scrape (Firecrawl-compatible)

Firecrawl's single-page scrape call, also at /v1/scrape, for moving existing code by changing the base URL and key. Same price as /v1/content: 1 credit per call, none on failure. Body: url (required), formats (markdown by default, html, rawHtml, links), onlyMainContent (default true), waitFor (ms, max 10000), mobile, blockAds (default true), headers. Returns {"success":true,"data":{"markdown":"...","metadata":{"title":"...","sourceURL":"...","statusCode":200}}}. GET /v2/team/credit-usage returns the balance. Other formats and actions, includeTags, excludeTags, location or a stealth proxy are a 400; /v2/crawl, map, search, extract and batch are a 501. See Firecrawl comparison.

GET /v1/check (free)

Checks a site without rendering it, for monitors and agents: GET /v1/check?type=ssl&url=example.com with your key in X-API-Key (or POST the same fields as JSON). It costs no credits, works on a key with 0 credits, and allows 500 checks a day per key. type is one of:

typeReturns
upIs the site up: verdict (up, down, error_page for a 4xx, walled for a bot wall), status, total_ms, DNS addresses, and a plain-words summary and reason. For uptime monitors: alert on down.
sslCertificate valid_to, days_left, issuer, SANs, chain trust and hostname match, plus issues. Alert when days_left drops below 14.
redirectsEvery hop with status, location and timing, the final_url and issues such as loops or http:// hops.
headersSecurity-header grade A+ to F for the final page, with a fix for each missing header.
linksBroken links and images on one page (up to 150, internal first): counts and a links list with a verdict each (broken, timeout, blocked for bot walls, redirect, ok).
llmsThe site's llms.txt checked against format v2: verdict (valid, warnings, problems, missing, soft_404, walled, server_error), llms_url, title, summary, sections, links_checked (a sample of up to 12), crawlers (robots.txt access per AI crawler) and issues with a level each. dnsDNS records of the domain (records: A, AAAA, CNAME, MX, NS, TXT, CAA, SOA) and an email check: SPF record with its DNS lookup count (limit 10), DMARC policy, DKIM keys found under common selectors, plus an issues list with fixes. Pass a domain, URL or email address. techWhat the site is built with: a technologies list of {name, category, version, evidence} (CMS, shop platform, JavaScript framework, hosting and CDN, web server, analytics), read from the HTML, headers and cookies without running scripts.

The same checks run in the browser at /is-it-down, /llms-txt-checker, /ssl-checker, /redirect-checker, /http-header-checker, /broken-link-checker, /website-technology-checker and /dns-lookup. README status badges need no key at all: https://shotmint.creasework.com/badge/ssl/example.com.svg (certificate days left) and https://shotmint.creasework.com/badge/up/example.com.svg (up or down).

GET /v1/account

Returns {"credits": 1234, "low": false, "topup_url": "…"} for your key. topup_url opens the pricing page with your key filled in, so a top-up lands on the same key. Every render response also carries an X-Credits-Remaining header, and once 20 or fewer credits are left it adds X-Credits-Low: 1, so a job can warn you before it runs dry.

Examples

curl "https://shotmint.creasework.com/v1/screenshot?url=https://example.com&full_page=true" \
  -H "X-API-Key: YOUR_KEY" -o shot.png

curl -X POST https://shotmint.creasework.com/v1/pdf -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html":"<h1>Invoice #42</h1>","format":"A4"}' -o invoice.pdf

Node.js (18+)

// save as shot.mjs, run: SHOTMINT_KEY=... node shot.mjs
import fs from "node:fs";
const res = await fetch("https://shotmint.creasework.com/v1/screenshot?url=" + encodeURIComponent("https://example.com"), {
  headers: { "X-API-Key": process.env.SHOTMINT_KEY },
});
if (!res.ok) throw new Error(res.status + ": " + await res.text());
await fs.promises.writeFile("shot.png", Buffer.from(await res.arrayBuffer()));

Python

# run: SHOTMINT_KEY=... python3 page.py
import os, requests
r = requests.post("https://shotmint.creasework.com/v1/pdf", headers={"X-API-Key": os.environ["SHOTMINT_KEY"]},
                  json={"url": "https://example.com", "format": "Letter"}, timeout=90)
if not r.ok:
    raise SystemExit(f"{r.status_code}: {r.text}")
open("page.pdf", "wb").write(r.content)

Both write the file only on success, and print the API's error otherwise (every error body says what to change). The Python and Node quickstarts add retries and the 404-page check.

HTML embed

<img src="https://shotmint.creasework.com/v1/screenshot?url=https://example.com&access_key=YOUR_KEY">

OG images: GET /v1/og

A ready-made 1200×630 social card. Parameters: title, subtitle, site, theme (indigo, dark, light, sunset, mint). It costs 1 credit per new card. The same request repeated with the same key within 24h is served from cache for free (X-Cache: HIT). Try it.

curl "https://shotmint.creasework.com/v1/og?title=Hello%20world&theme=dark" -H "X-API-Key: YOUR_KEY" -o card.png

Signed public URLs (use directly as og:image)

Put a card URL straight into your <meta property="og:image"> without exposing your key. GET /v1/og/url takes the same parameters, is free, and returns a signed URL like https://shotmint.creasework.com/og/KEY_ID.png?title=…&sig=…. Anyone can fetch it, but changing any parameter invalidates the signature, so nobody can render other text on your credits. Billing is the same as /v1/og: 1 credit per new card, repeats are cached.

curl "https://shotmint.creasework.com/v1/og/url?title=Hello%20world&theme=dark" -H "X-API-Key: YOUR_KEY"

Signed screenshot URLs (embed live website thumbnails)

Show a screenshot of any site in an <img> tag, e.g. link previews, portfolio grids or directory listings, without exposing your key or running a backend. GET /v1/screenshot/url is free and returns a signed URL like https://shotmint.creasework.com/s/KEY_ID.png?url=…&sig=…. Signed parameters: url, width, height, full_page, mobile, device_scale_factor, block_ads, dark_mode, delay, wait_until, hide_selectors, thumb_width, cache_ttl (PNG output; use thumb_width to get display-size files). Changing any of them invalidates the signature. Each new render costs 1 credit. Repeats are served from cache for free for cache_ttl seconds: 86400 (daily) by default, from 3600 up to 2592000 (30 days), so cache_ttl=604800 refreshes a thumbnail weekly for at most ~4 credits a month. Responses carry a matching Cache-Control: public, max-age, so put a CDN in front for heavy traffic.

curl "https://shotmint.creasework.com/v1/screenshot/url?url=https://example.com&width=1280&height=800" -H "X-API-Key: YOUR_KEY"
# → {"url":"https://shotmint.creasework.com/s/KEY_ID.png?url=https%3A%2F%2Fexample.com&width=1280&height=800&sig=…"}

<img src="https://shotmint.creasework.com/s/KEY_ID.png?url=…&sig=…" alt="example.com" width="640" loading="lazy">

To sign without a request (e.g. in your page template): sig is the first 32 hex characters of HMAC-SHA256 with your API key as the secret, over title + " " + subtitle + " " + site + " " + theme (missing fields are empty strings, theme defaults to indigo). Your KEY_ID is returned by GET /v1/account.

const sig = crypto.createHmac('sha256', API_KEY)
  .update([title, subtitle, site, theme].join('\n')).digest('hex').slice(0, 32);
const ogImage = `https://shotmint.creasework.com/og/${KEY_ID}.png?title=${encodeURIComponent(title)}&subtitle=${encodeURIComponent(subtitle)}&site=${encodeURIComponent(site)}&theme=${theme}&sig=${sig}`;

Errors

400Bad parameters or unreachable URL (no credit used)
401Missing or invalid key
402Out of credits. The JSON includes topup_url, which tops up the same key so your code keeps working. Pricing
429 / 503Rate limited or busy, retry with backoff

The site itself answered with an error? A render of a URL still succeeds when the site returns a 403 bot-protection page or a 404, and its credit is given back (up to 200 a day per key; the response carries X-Credit-Refunded: 1). Screenshots and PDFs carry an X-Page-Status header with the status the site answered (and page_status in the response=url JSON), so check it before you store or send the file. We do not try to get around bot protection.

Limits: 25s render timeout; internal/private network addresses are blocked.