Screenshot Options

Complete reference of all available parameters for the screenshot API.

Authentication

ParameterDescriptionDefault
access_keyYour API access key (required)
signatureHMAC signature for signed requests

Target

ParameterDescriptionDefault
urlURL of the website to screenshot
htmlHTML content to render directly
selectorCSS selector to capture specific element

Output Format

ParameterDescriptionDefault
formatOutput format: png, jpeg, webp, gif, avif, heif, pdfpng
response_typeby_format (image), json (metadata), emptyby_format
image_qualityQuality 0-100 (for jpeg, webp)80

Viewport

ParameterDescriptionDefault
viewport_widthViewport width in pixels1280
viewport_heightViewport height in pixels1024
viewport_deviceDevice preset (e.g., iphone_15_pro)
device_scale_factorDevice pixel ratio 1-51
viewport_mobileEmulate mobile devicefalse
viewport_has_touchEnable touch eventsfalse

Full Page

ParameterDescriptionDefault
full_pageCapture entire scrollable pagefalse
full_page_scrollScroll page to load lazy contentfalse
full_page_scroll_delayDelay between scrolls (ms)400
full_page_max_heightMaximum screenshot height (px)

Image Sizing

ParameterDescriptionDefault
image_widthResize output image width
image_heightResize output image height
clip_xX coordinate of clipping area
clip_yY coordinate of clipping area
clip_widthWidth of clipping area
clip_heightHeight of clipping area
omit_backgroundTransparent background (PNG only)false

Blocking

ParameterDescriptionDefault
block_adsBlock advertisementsfalse
block_cookie_bannersBlock cookie consent dialogsfalse
block_trackersBlock analytics and trackersfalse
block_chatsBlock chat widgetsfalse
block_requestsBlock requests matching URL pattern
block_resourcesBlock resource types (image, font, etc.)

Emulation

ParameterDescriptionDefault
dark_modeEnable dark mode (true, false)
reduced_motionPrefer reduced motionfalse
media_typeCSS media type: screen, printscreen
time_zoneIANA timezone (e.g., America/New_York)

Customization

ParameterDescriptionDefault
hide_selectorsCSS selectors to hide (comma-separated)
clickCSS selector to click before capture
scriptsCustom JavaScript to inject
stylesCustom CSS to inject

Request Options

ParameterDescriptionDefault
user_agentCustom User-Agent string
headersCustom HTTP headers
cookiesCookies to set
authorizationAuthorization header value
bypass_cspBypass Content Security Policyfalse

Geolocation

ParameterDescriptionDefault
ip_country_codeRender from country: us, gb, de, fr, jp, etc.us
geolocation_latitudeGPS latitude
geolocation_longitudeGPS longitude
proxyHTTP proxy URL

Timing

ParameterDescriptionDefault
delayWait seconds before capture0
timeoutRequest timeout in seconds60
wait_untilWait event: load, domcontentloaded, networkidle0, networkidle2load
wait_for_selectorWait for CSS selector to appear

PDF Options

ParameterDescriptionDefault
pdf_print_backgroundInclude background graphicsfalse
pdf_landscapeLandscape orientationfalse
pdf_paper_formatPaper size: a4, letter, legal, etc.letter
pdf_marginPage margins (e.g., 20px)

Caching

ParameterDescriptionDefault
cacheEnable response cachingfalse
cache_ttlCache duration in seconds14400
cache_keyCustom cache key

Storage

ParameterDescriptionDefault
storeUpload to S3 storagefalse
storage_pathS3 object key/path
storage_bucketS3 bucket name
storage_access_key_idAWS access key
storage_secret_access_keyAWS secret key
storage_return_locationReturn S3 URL in responsefalse

Async & Webhooks

ParameterDescriptionDefault
asyncProcess request asynchronouslyfalse
webhook_urlURL for webhook callback
webhook_signSign webhook requeststrue

Error Handling

ParameterDescriptionDefault
ignore_host_errorsIgnore HTTP errors from target sitefalse
fail_if_content_containsFail if page contains string
fail_if_content_missingFail if page missing string