Reference
Option reference
Every option for /v1/take. Options marked as lists can be repeated. Booleans accept true/false or 1/0.
Essentials
string
Your public access key. Can also be sent as the X-Access-Key header.
string
HMAC-SHA256 of the query string (without this parameter), signed with your secret key. Required when the key enforces signed requests.
string
Address of the page to capture. One of url, html or markdown is required.
one of, default jpg
Output format. Animations accept mp4, webm, mov, avi and gif.
pngjpgjpegwebpgifaviftiffheifjp2pdfhtmlmarkdownmp4webmmovavi
string
HTML to render instead of a URL.
string
Markdown to render with a clean reading layout.
one of, default by_format
by_format returns the file, json returns a JSON body with a file URL and metadata, empty returns only a status.
by_formatjsonempty
string
Sends Content-Disposition so browsers download the file with this name.
string
Your own reference. Echoed in webhooks and visible in the dashboard.
bool, default false
Include open and closed shadow roots in html output and content metadata.
Viewport
string
Device preset ID that sets size, pixel density, touch and user agent. See GET /v1/devices.
int, default 1280
Browser width in CSS pixels.
Range 100 to 7680
int, default 1024
Browser height in CSS pixels.
Range 100 to 7680
number, default 1
Pixel density. Use 2 for Retina output.
Range 1 to 5
bool, default false
Respect the page's meta viewport tag.
bool, default false
Emulate a touch screen.
bool, default false
Landscape orientation.
Full page
bool, default false
Capture the whole scrollable page.
bool
Scroll through the page first so lazy content loads. On by default with full_page.
int, default 400
Milliseconds to pause on each scroll step.
Range 0 to 5000
Pixels per scroll step. Defaults to the viewport height.
Range 50 to 10000
Cap the captured height. Useful for infinite feeds.
Range 100 to 100000
bool, default false
Split a full-page capture into vertical slices (returned via response_type=json).
int, default 4000
Maximum slice height.
Range 1 to 16000
int, default 0
Pixels each slice repeats from the previous one.
Range 0 to 15900
one of, default default
by_sections captures the page in sections and joins them. Captures taller than 8,000 pixels always do this, because Chrome can’t draw them in one piece.
defaultby_sections
Image output
int, default 80
Compression quality for lossy formats.
Range 0 to 100
int
Resize the result to fit this width, keeping aspect ratio.
Range 16 to 10000
int
Resize the result to fit this height, keeping aspect ratio.
Range 16 to 100000
bool, default false
Transparent background for pages without one. png, webp, avif, gif and tiff only.
Element and region
string
CSS selector of a single element to capture.
one of, default default
clip crops the page to the element's box instead of using the element screenshot.
defaultclip
bool, default true
Scroll the element into view first.
bool, default true
Fail when the selector matches nothing. Set false to fall back to the viewport.
Allow content outside the viewport. On by default for full page and selector captures.
int
Left edge of a region to capture.
Range 0 to …
int
Top edge of a region to capture.
Range 0 to …
int
Width of the region.
Range 1 to …
int
Height of the region.
Range 1 to …
string
Scroll to this selector before capturing.
int, default 0
Pixel offset after scrolling. Negative values scroll up.
bool, default false
Print background colours and images.
bool, default false
Put the entire page on one long PDF page.
bool, default false
Landscape orientation.
one of, default letter
Paper size.
a0a1a2a3a4a5a6legallettertabloidledger
string
Margin on all sides with units, such as 20px or 1cm.
string
Top margin. Overrides pdf_margin.
string
Right margin. Overrides pdf_margin.
string
Bottom margin. Overrides pdf_margin.
string
Left margin. Overrides pdf_margin.
Emulation
bool
Ask for dark (true) or light (false) colours via prefers-color-scheme.
bool
Send prefers-reduced-motion, so sites skip entrance animations. On by default for screenshots and PDFs, off for videos.
bool, default false
Actively stop animations, transitions and media before capturing.
one of
CSS media type.
screenprint
string, default UTC
IANA time zone for the browser.
string
Custom user agent string.
Page customisation
list of strings
Hide every element matching these selectors. Repeat the parameter for several.
string
CSS injected after load.
string
JavaScript run after load. Async code is awaited.
list of strings
If your script navigates, wait for these events afterwards.
loaddomcontentloadednetworkidle0networkidle2
string
Click this element before capturing.
bool, default true
Fail when the click target is missing.
string
Hover this element before capturing.
bool, default true
Fail when the hover target is missing.
Blocking
bool, default false
Block ad networks and hide ad slots.
bool, default false
Block analytics and tracking scripts.
bool, default true
Block chat widgets such as Intercom, Crisp, Drift and Zendesk. On by default for URL captures; send false to keep them.
list of strings
Block requests by domain or URL pattern with * wildcards. Up to 100.
list of strings
Block whole resource types.
documentstylesheetimagemediafontscripttexttrackxhrfetcheventsourcewebsocketmanifestother
Stealth and bot protection
bool
Present as a normal desktop Chrome (fingerprint, user agent, WebGL, timing) and wait out bot checks such as Cloudflare's "Just a moment" page. Left unset, a render that hits a bot check is retried with stealth automatically; true uses it from the start, false never.
int, default 15
Seconds to let a bot check clear itself when stealth is on.
Range 0 to 45
bool, default true
Fail with blocked_by_bot_protection (not billed) instead of capturing a bot-check page. Set false to capture whatever is shown.
Network and location
number
Latitude reported by the Geolocation API.
Range -90 to 90
number
Longitude reported by the Geolocation API.
Range -180 to 180
number
Accuracy in metres.
Range 0 to 100000
string
Your own proxy, e.g. http://user:pass@host:8080. Use a residential proxy for sites that block data-centre addresses. See the proxies guide.
list of strings
Hosts that skip the proxy.
list of strings
Extra request headers as Name:Value. Repeat for several.
bool, default false
Ignore the site's Content-Security-Policy so your scripts and styles apply.
Waiting and timeouts
list of strings, default load
Navigation events to wait for.
loaddomcontentloadednetworkidle0networkidle2
string
Wait until an element matching this selector exists. Comma-separate several.
one of, default at_least_one
at_least_by_count waits for every comma-separated selector.
at_least_oneat_least_by_count
number, default 0
Seconds to wait before capturing. Above 10 needs async=true.
Range 0 to 300
int, default 18
Seconds before the whole render is abandoned. Synchronous requests: up to 18 (the default). With async=true: default 60, up to 600.
Range 5 to 600
Caching
Upload to your storage
bool, default false
Upload the result to your S3-compatible bucket.
string
Object key, without extension. Required with store=true. Supports {id}, {date} and {host}.
string
Endpoint for S3-compatible storage such as R2 or Spaces.
string
Bucket region.
string
Overrides the bucket in your dashboard settings.
string
Overrides the saved access key ID.
string
Overrides the saved secret.
one of, default standard
S3 storage class.
standardreduced_redundancystandard_iaonezone_iaintelligent_tieringglacierdeep_archiveoutpostsglacier_ir
one of
Object ACL.
public-readprivate
bool, default false
Return the uploaded object's location in the X-Storage-Location header and JSON body.
Metadata
bool, default false
Return the final width and height.
bool, default false
Return the font families the page uses.
bool, default false
Return the favicon URL and type.
bool, default false
Return Open Graph and Twitter card tags.
bool, default false
Return the page title.
bool, default false
Return the rendered page content.
one of, default html
Format of metadata_content.
htmlmarkdown
bool, default false
Return the site's HTTP status code.
bool, default false
Return the site's response headers.
Async and webhooks
bool, default false
Return 202 immediately and render in the background.
string
Where to POST the result when an async render finishes.
bool, default true
Sign webhook bodies with your webhook secret in X-Shotsmith-Signature.
bool, default false
Also send a webhook when the render fails.
Failure rules
bool, default false
Capture the page even if the site answers 4xx or 5xx.
list of strings
Fail if the page contains any of these strings. Matching is case-sensitive and checks the visible text and the HTML.
list of strings
Fail unless the page contains each of these strings. Matching is case-sensitive and checks the visible text and the HTML.
list of strings
Fail if any request matching these patterns fails.
AI vision
one of, default openai
Which model reads the screenshot.
openaianthropic
string
Question to ask about the screenshot. The answer is returned in the JSON response and on the capture.
int, default 500
Maximum length of the answer.
Range 1 to 4096
string
Your OpenAI key. Used for this request only and never stored.
string
Your Anthropic key, required with vision_provider=anthropic. Never stored.
Animation
For /v1/animate, which also accepts the page, viewport, blocking, emulation and wait options above.
one of, default scroll
scroll scrolls the page; default records it still.
defaultscroll
number, default 5
Length of the recording in seconds. Above 10 needs async=true.
Range 1 to 30
int
Output video width. Height keeps the aspect ratio.
Range 100 to 3840
one of, default ease_in_out_quint
Easing curve for the scroll.
linearease_in_quadease_out_quadease_in_out_quadease_in_cubicease_out_cubicease_in_out_cubicease_in_out_quint
bool, default true
Scroll back to the top at the end.
bool, default true
Scroll to the very bottom. Set false to stop after scroll_by.
int
Pixels to scroll when scroll_complete=false.
Range 1 to …
int, default 300
Milliseconds to pause at the bottom before scrolling back.
Range 0 to 10000
bool, default false
Start scrolling as soon as the page loads.
int, default 500
Milliseconds before scrolling starts.
Range 0 to 10000