Skip to content
shotsmith
Features Docs Guides Pricing Changelog Sign inStart free

Option reference

Every option for /v1/take. Options marked as lists can be repeated. Booleans accept true/false or 1/0.

Essentials

access_key

string

Your public access key. Can also be sent as the X-Access-Key header.

signature

string

HMAC-SHA256 of the query string (without this parameter), signed with your secret key. Required when the key enforces signed requests.

url

string

Address of the page to capture. One of url, html or markdown is required.

format

one of, default jpg

Output format. Animations accept mp4, webm, mov, avi and gif.

pngjpgjpegwebpgifaviftiffheifjp2pdfhtmlmarkdownmp4webmmovavi

html

string

HTML to render instead of a URL.

markdown

string

Markdown to render with a clean reading layout.

response_type

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

Sends Content-Disposition so browsers download the file with this name.

Your own reference. Echoed in webhooks and visible in the dashboard.

include_shadow_dom

bool, default false

Include open and closed shadow roots in html output and content metadata.

Viewport

Device preset ID that sets size, pixel density, touch and user agent. See GET /v1/devices.

viewport_width

int, default 1280

Browser width in CSS pixels.

Range 100 to 7680

viewport_height

int, default 1024

Browser height in CSS pixels.

Range 100 to 7680

device_scale_factor

number, default 1

Pixel density. Use 2 for Retina output.

Range 1 to 5

viewport_mobile

bool, default false

Respect the page's meta viewport tag.

viewport_has_touch

bool, default false

Emulate a touch screen.

viewport_landscape

bool, default false

Landscape orientation.

Full page

full_page

bool, default false

Capture the whole scrollable page.

Scroll through the page first so lazy content loads. On by default with full_page.

full_page_scroll_delay

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

full_page_slices

bool, default false

Split a full-page capture into vertical slices (returned via response_type=json).

full_page_slice_height

int, default 4000

Maximum slice height.

Range 1 to 16000

Pixels each slice repeats from the previous one.

Range 0 to 15900

full_page_algorithm

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

image_quality

int, default 80

Compression quality for lossy formats.

Range 0 to 100

Resize the result to fit this width, keeping aspect ratio.

Range 16 to 10000

Resize the result to fit this height, keeping aspect ratio.

Range 16 to 100000

omit_background

bool, default false

Transparent background for pages without one. png, webp, avif, gif and tiff only.

Element and region

selector

string

CSS selector of a single element to capture.

selector_algorithm

one of, default default

clip crops the page to the element's box instead of using the element screenshot.

defaultclip

selector_scroll_into_view

bool, default true

Scroll the element into view first.

error_on_selector_not_found

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.

clip_x

int

Left edge of a region to capture.

Range 0 to …

clip_y

int

Top edge of a region to capture.

Range 0 to …

Width of the region.

Range 1 to …

Height of the region.

Range 1 to …

Scroll to this selector before capturing.

Pixel offset after scrolling. Negative values scroll up.

PDF

pdf_print_background

bool, default false

Print background colours and images.

pdf_fit_one_page

bool, default false

Put the entire page on one long PDF page.

pdf_landscape

bool, default false

Landscape orientation.

pdf_paper_format

one of, default letter

Paper size.

a0a1a2a3a4a5a6legallettertabloidledger

pdf_margin

string

Margin on all sides with units, such as 20px or 1cm.

Top margin. Overrides pdf_margin.

Right margin. Overrides pdf_margin.

Bottom margin. Overrides pdf_margin.

Left margin. Overrides pdf_margin.

Emulation

dark_mode

bool

Ask for dark (true) or light (false) colours via prefers-color-scheme.

Send prefers-reduced-motion, so sites skip entrance animations. On by default for screenshots and PDFs, off for videos.

reduce_motion

bool, default false

Actively stop animations, transitions and media before capturing.

media_type

one of

CSS media type.

screenprint

time_zone

string, default UTC

IANA time zone for the browser.

user_agent

string

Custom user agent string.

Page customisation

hide_selectors

list of strings

Hide every element matching these selectors. Repeat the parameter for several.

styles

string

CSS injected after load.

scripts

string

JavaScript run after load. Async code is awaited.

scripts_wait_until

list of strings

If your script navigates, wait for these events afterwards.

loaddomcontentloadednetworkidle0networkidle2

click

string

Click this element before capturing.

Fail when the click target is missing.

hover

string

Hover this element before capturing.

Fail when the hover target is missing.

Blocking

block_banners_by_heuristics

bool, default false

Also hide fixed elements whose text looks like a consent prompt, for banners the lists miss. Can occasionally hide real content.

block_ads

bool, default false

Block ad networks and hide ad slots.

block_trackers

bool, default false

Block analytics and tracking scripts.

block_chats

bool, default true

Block chat widgets such as Intercom, Crisp, Drift and Zendesk. On by default for URL captures; send false to keep them.

block_requests

list of strings

Block requests by domain or URL pattern with * wildcards. Up to 100.

block_resources

list of strings

Block whole resource types.

documentstylesheetimagemediafontscripttexttrackxhrfetcheventsourcewebsocketmanifestother

Stealth and bot protection

stealth

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.

stealth_challenge_wait

int, default 15

Seconds to let a bot check clear itself when stealth is on.

Range 0 to 45

fail_if_challenged

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

Latitude reported by the Geolocation API.

Range -90 to 90

Longitude reported by the Geolocation API.

Range -180 to 180

Accuracy in metres.

Range 0 to 100000

proxy

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.

proxy_bypass_hosts

list of strings

Hosts that skip the proxy.

authorization

string

Value for the Authorization header, e.g. Bearer abc.

headers

list of strings

Extra request headers as Name:Value. Repeat for several.

cookies

list of strings

Cookies as name=value; Domain=example.com; Path=/. Repeat for several.

bypass_csp

bool, default false

Ignore the site's Content-Security-Policy so your scripts and styles apply.

Waiting and timeouts

wait_until

list of strings, default load

Navigation events to wait for.

loaddomcontentloadednetworkidle0networkidle2

Wait until an element matching this selector exists. Comma-separate several.

wait_for_selector_algorithm

one of, default at_least_one

at_least_by_count waits for every comma-separated selector.

at_least_oneat_least_by_count

delay

number, default 0

Seconds to wait before capturing. Above 10 needs async=true.

Range 0 to 300

timeout

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

navigation_timeout

int, default 30

Seconds to wait for the site to respond.

Range 1 to 30

Caching

cache

bool, default false

Reuse an identical earlier render. Cache hits are free.

cache_ttl

int, default 14400

Seconds a cached render stays valid.

Range 14400 to 2592000

cache_key

string

Extra key so identical options can be cached separately, e.g. a date.

Upload to your storage

store

bool, default false

Upload the result to your S3-compatible bucket.

storage_path

string

Object key, without extension. Required with store=true. Supports {id}, {date} and {host}.

Endpoint for S3-compatible storage such as R2 or Spaces.

Bucket region.

Overrides the bucket in your dashboard settings.

Overrides the saved access key ID.

Overrides the saved secret.

storage_class

one of, default standard

S3 storage class.

standardreduced_redundancystandard_iaonezone_iaintelligent_tieringglacierdeep_archiveoutpostsglacier_ir

storage_acl

one of

Object ACL.

public-readprivate

storage_return_location

bool, default false

Return the uploaded object's location in the X-Storage-Location header and JSON body.

Metadata

metadata_image_size

bool, default false

Return the final width and height.

metadata_fonts

bool, default false

Return the font families the page uses.

metadata_icon

bool, default false

Return the favicon URL and type.

metadata_open_graph

bool, default false

Return Open Graph and Twitter card tags.

metadata_page_title

bool, default false

Return the page title.

metadata_content

bool, default false

Return the rendered page content.

metadata_content_format

one of, default html

Format of metadata_content.

htmlmarkdown

Return the site's HTTP status code.

metadata_http_response_headers

bool, default false

Return the site's response headers.

Async and webhooks

async

bool, default false

Return 202 immediately and render in the background.

webhook_url

string

Where to POST the result when an async render finishes.

webhook_sign

bool, default true

Sign webhook bodies with your webhook secret in X-Shotsmith-Signature.

webhook_errors

bool, default false

Also send a webhook when the render fails.

Failure rules

ignore_host_errors

bool, default false

Capture the page even if the site answers 4xx or 5xx.

fail_if_content_contains

list of strings

Fail if the page contains any of these strings. Matching is case-sensitive and checks the visible text and the HTML.

fail_if_content_missing

list of strings

Fail unless the page contains each of these strings. Matching is case-sensitive and checks the visible text and the HTML.

fail_if_request_failed

list of strings

Fail if any request matching these patterns fails.

AI vision

vision_provider

one of, default openai

Which model reads the screenshot.

openaianthropic

vision_prompt

string

Question to ask about the screenshot. The answer is returned in the JSON response and on the capture.

vision_max_tokens

int, default 500

Maximum length of the answer.

Range 1 to 4096

Your OpenAI key. Used for this request only and never stored.

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.

scenario

one of, default scroll

scroll scrolls the page; default records it still.

defaultscroll

duration

number, default 5

Length of the recording in seconds. Above 10 needs async=true.

Range 1 to 30

width

int

Output video width. Height keeps the aspect ratio.

Range 100 to 3840

scroll_easing

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

scroll_back

bool, default true

Scroll back to the top at the end.

scroll_complete

bool, default true

Scroll to the very bottom. Set false to stop after scroll_by.

scroll_by

int

Pixels to scroll when scroll_complete=false.

Range 1 to …

scroll_delay

int, default 300

Milliseconds to pause at the bottom before scrolling back.

Range 0 to 10000

scroll_start_immediately

bool, default false

Start scrolling as soon as the page loads.

scroll_start_delay

int, default 500

Milliseconds before scrolling starts.

Range 0 to 10000