API Reference
Every endpoint and every parameter on one page. Each entry gives the type, the default and a one-line summary, and links to the guide that explains it in full. For a request you can edit and run, try the Query Builder.
Endpoints
https://shot.screenshotapi.net/v3/screenshotCapture a screenshot, PDF, scrolling video, or extracted page content for one URL. Details →
https://api.screenshotapi.net/v1/bulk/jsonCapture up to 50 URLs in one request. Waits for the captures and returns the results in the same response. Details →
https://api.screenshotapi.net/v1/bulk/csvUpload a CSV of URLs as a background job. Returns a uuid; add webhook_url to be notified when it finishes. Details →
https://api.screenshotapi.net/v1/bulk/csv/statusCheck a CSV job by uuid: percent_complete, successful_urls and failed_urls. Details →
https://api.screenshotapi.net/v1/bulk/csv/downloadDownload the output CSV of a finished job by uuid. Details →
Scheduled screenshots are managed from the dashboard and have no endpoint. See Schedule screenshots.
Authentication
Send your API key as the token parameter on every request. Find it on the dashboard after you sign up. Options go in the query string for GET or in the JSON body for POST.
GET https://shot.screenshotapi.net/v3/screenshot
?token=TOKEN
&url=https%3A%2F%2Fexample.com
&file_type=png
&full_page=trueScreenshot parameters
These work on /v3/screenshot. Booleans are true or false. Leave a parameter out to use its default. A dash means it has none and is simply ignored.
Essentials
Viewport and output
| Parameter | Default | Description |
|---|---|---|
| width integer Default: 1680 | 1680 | Browser viewport width in pixels. |
| height integer Default: 876 | 876 | Browser viewport height in pixels. |
| full_page boolean Default: false | false | Capture the whole page instead of the visible viewport. |
| thumbnail_width integer | — | Also create a thumbnail this many pixels wide, keeping the aspect ratio. |
| file_type string Default: png | png | Output format: png, jpg, webp or pdf. For scrolling video use mp4, webm or gif, which need Startup and up. |
| retina boolean Default: false | false | Render at 2x pixel density. |
| image_quality integer Default: 80 | 80 | JPG compression from 0 (smallest) to 100 (best). |
| omit_background boolean Default: false | false | Remove a plain white background so the image is transparent. |
| output string Default: json | json | json returns metadata and a link to the file; image redirects (302) to the stored file. |
| result_file_name string | — | Name for the output file. A repeated name can overwrite an existing file. |
Waiting and lazy loading
| Parameter | Default | Description |
|---|---|---|
| wait_for_event string Default: load | load | When to capture: load, domcontentloaded or networkidle. |
| delay integer (ms) Default: 0 | 0 | Extra wait before capturing. Values above 30000 are cut to 30 seconds. |
| timeout integer (ms) Default: plan maximum | plan maximum | Longest the API waits for the page to load. Limits are 30 to 100 seconds by plan. |
| lazy_load boolean Default: false | false | Scroll the page first so lazy-loaded content appears. |
| scroll_delay integer (ms) Default: 500 | 500 | Pause between scroll steps when lazy_load is on. |
Elements and interaction
| Parameter | Default | Description |
|---|---|---|
| selector string | — | Capture only the element matching this CSS selector. |
| scroll_to_element string | — | Scroll this CSS selector into view before a viewport capture. |
| clip object | — | Capture a rectangle: clip[x], clip[y], clip[width] and clip[height], in pixels. |
| adjust_top integer (px) Default: 0 | 0 | Scroll down this many pixels before capturing. |
| blur_selector string | — | Blur the elements matching these CSS selectors. |
| remove_selector string | — | Remove the elements matching these CSS selectors. |
| selector_to_click string | — | Click this CSS selector before capturing. |
| click_recursion integer Default: 0 | 0 | How many times to click selector_to_click. |
Custom CSS, JavaScript and HTML
| Parameter | Default | Description |
|---|---|---|
| css string | — | Inline CSS to inject before capturing. |
| css_url string | — | URL of a stylesheet to inject. |
| js string | — | Inline JavaScript to run before capturing. |
| js_url string | — | URL of a script to load and run. |
| custom_html string | — | Render this HTML instead of loading a url. Also used for HTML to PDF. |
| markdown string | — | Render this Markdown instead of loading a url. |
Browser and visitor emulation
| Parameter | Default | Description |
|---|---|---|
| user_agent string | — | Custom User-Agent string. Left out, a recent desktop browser string is picked at random. |
| headers string | — | Extra HTTP headers as 'Name: value;' pairs. |
| accept_languages string Default: en-US,en;q=0.8 | en-US,en;q=0.8 | Accept-Language header, for localized pages. |
| cookies string | — | Cookies to send, as 'name=value;' pairs. |
| template_id string | — | Id of a saved cookie template to apply before navigating. |
| dark_mode boolean Default: false | false | Ask the page for its dark theme. |
| grayscale integer Default: 0 | 0 | Desaturate the output from 0 (colour) to 100 (grayscale). |
| enable_incognito boolean Default: false | false | Render in a clean private session with no stored data. |
| timezone string | — | IANA timezone, for example Europe/London. |
| latitude number | — | Geolocation latitude, -90 to 90. |
| longitude number | — | Geolocation longitude, -180 to 180. |
Blocking resources
Each option below is a boolean and defaults to false.
| Parameter | Default | Description |
|---|---|---|
| block_ads boolean Default: false | false | Block ads. |
| block_tracking boolean Default: false | false | Block tracking scripts and services. |
| no_cookie_banners boolean Default: false | false | Hide cookie consent banners and popups. |
| block_chat_widgets boolean Default: false | false | Block live chat widgets. |
| block_js boolean Default: false | false | Block all JavaScript. |
| block_stylesheets boolean Default: false | false | Block all CSS files. |
| block_images boolean Default: false | false | Block images. |
| block_media boolean Default: false | false | Block audio and video. |
| block_font boolean Default: false | false | Block web fonts. |
| block_text_track boolean Default: false | false | Block subtitles and captions. |
| block_xhr boolean Default: false | false | Block XMLHttpRequest calls. |
| block_fetch boolean Default: false | false | Block Fetch API requests. |
| block_event_source boolean Default: false | false | Block EventSource (server-sent events) connections. |
| block_web_socket boolean Default: false | false | Block WebSocket connections. |
| block_manifest boolean Default: false | false | Block manifest files. |
| block_specific_requests string | — | Block individual requests by URL pattern instead of a whole category. |
Caching
| Parameter | Default | Description |
|---|---|---|
| enable_caching boolean Default: false | false | Store the result so later requests for the same URL can reuse it. |
| ttl integer (s) Default: 2592000 | 2592000 | How long a cached result lives. 30 days is the maximum. |
| fresh boolean Default: true | true | true always renders again; false returns the cached result if there is one. |
| destroy_screenshot boolean Default: false | false | true deletes the stored file after 1 day. |
Content extraction
| Parameter | Default | Description |
|---|---|---|
| extract_html boolean Default: false | false | Return the rendered page's HTML.Essential and up |
| extract_text boolean Default: false | false | Return the page's plain text.Essential and up |
| extract_markdown boolean Default: false | false | Return the page content as Markdown.Essential and up |
| get_image_urls boolean Default: false | false | Return the URLs of every image on the page. |
Use with file_type=pdf. These are fields of one pdf_options object, sent as pdf_options[format]=A4 in a query string or as a nested object in a JSON body.
| Parameter | Default | Description |
|---|---|---|
| pdf_options[format] string | — | Paper size: A0 to A6, Letter, Legal, Tabloid or Ledger. |
| pdf_options[page_range] string | — | Keep only these pages, for example 1-3. |
| pdf_options[landscape] boolean Default: false | false | Rotate the page to landscape. |
| pdf_options[media] string Default: print | print | CSS media type to render with, for example print or screen. |
| pdf_options[print_background] boolean Default: false | false | Include background colours and images. |
Proxy, GPU, stealth and captcha
| Parameter | Default | Description |
|---|---|---|
| proxy string | — | Your own http or https proxy URL, such as http://user:pass@host:8000. |
| classic_proxy boolean Default: false | false | Load the page from a datacenter address.Essential and up |
| premium_proxy boolean Default: false | false | Load the page from a residential address.Startup and up · +4 credits |
| country string | — | Two-letter exit country for classic or premium, such as US. |
| gpu boolean Default: false | false | Render with a GPU, including WebGL and canvas.Growth and up · +2 credits |
| stealth boolean Default: false | false | Make the browser look like a regular visitor. |
| solve_captcha boolean Default: false | false | Solve a text-in-image captcha before capturing.Growth and up · +3 credits |
| captcha_image string | — | CSS selector of the captcha picture. Required with solve_captcha. |
| captcha_input string | — | CSS selector of the answer box. Required with solve_captcha. |
| captcha_submit string | — | CSS selector of the button to click after typing the answer. |
| captcha_error string | — | CSS selector of the wrong-answer message that triggers a retry. |
| captcha_refresh string | — | CSS selector of the control that loads a new picture. |
| captcha_retries integer Default: 3 | 3 | Number of guesses, 1 to 5. |
Scrolling video
Set scrolling_screenshot=true and a video file_type (mp4, webm or gif).
| Parameter | Default | Description |
|---|---|---|
| scrolling_screenshot boolean Default: false | false | Record a scrolling video of the page.Startup and up |
| multiple_scrolling boolean Default: false | false | Record one video per size listed in sizes.Startup and up |
| sizes JSON array | — | Objects like {id, width, height}, one per video. Needs multiple_scrolling. |
| scroll_speed string Default: normal | normal | fast, normal or slow. |
| duration integer (s) | — | How long the scroll takes. 100 seconds is the maximum. |
| scroll_back boolean Default: false | false | Scroll back to the top after reaching the bottom. |
| start_immediately boolean Default: false | false | Start recording as soon as navigation begins, without waiting for the load. |
| video boolean Default: false | false | Record the viewport only, for duration seconds.Startup and up |
Storage (bring your own bucket)
| Parameter | Default | Description |
|---|---|---|
| byob boolean Default: false | false | Save the output to a bucket you configured in the dashboard.Essential and up |
| storage_service string | — | Which configured storage service to use. Must match its name exactly.Essential and up |
| bucket_name string | — | Which configured bucket to use. Must match its name exactly.Essential and up |
Bulk parameters
The bulk endpoints take the same screenshot parameters for each URL (see above), plus these.
Bulk request fields
| Parameter | Default | Description |
|---|---|---|
| token stringrequired | — | Your API key. Sent as a query parameter on every bulk call. |
| urls arrayrequired | — | Bulk JSON body: an array of up to 50 objects, each with a url and screenshot parameters (file_type, width, height, fresh…). |
| csv filerequired | — | Bulk CSV upload: the CSV file, sent as multipart form data. Needs a url column. A column that is not a supported screenshot parameter makes the whole upload fail with a 400. |
| webhook_url string | — | Bulk CSV only. Address we notify when the job finishes, so you don't have to poll. |
| uuid stringrequired | — | Status and download only. The job id returned when you uploaded the CSV. |
Errors
Failed requests return an HTTP status and an error code, such as url_required (400), token_required (401) or timeout_error (408). The full list, with causes and fixes, is on the Errors page. Which options each plan includes, and the extra credits some cost, are on Plans and credits.
95 documented parameters across all endpoints.