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

GET, POSThttps://shot.screenshotapi.net/v3/screenshot

Capture a screenshot, PDF, scrolling video, or extracted page content for one URL. Details →

POSThttps://api.screenshotapi.net/v1/bulk/json

Capture up to 50 URLs in one request. Waits for the captures and returns the results in the same response. Details →

POSThttps://api.screenshotapi.net/v1/bulk/csv

Upload a CSV of URLs as a background job. Returns a uuid; add webhook_url to be notified when it finishes. Details →

GEThttps://api.screenshotapi.net/v1/bulk/csv/status

Check a CSV job by uuid: percent_complete, successful_urls and failed_urls. Details →

GEThttps://api.screenshotapi.net/v1/bulk/csv/download

Download 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=true

Screenshot 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

ParameterDescription
token
stringrequired
Your API key, from the dashboard.
url
stringrequired
The page to capture. Not needed when you send custom_html or markdown.

Read the full guide →

Viewport and output

ParameterDescription
width
integer
Default: 1680
Browser viewport width in pixels.
height
integer
Default: 876
Browser viewport height in pixels.
full_page
boolean
Default: 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
Output format: png, jpg, webp or pdf. For scrolling video use mp4, webm or gif, which need Startup and up.
retina
boolean
Default: false
Render at 2x pixel density.
image_quality
integer
Default: 80
JPG compression from 0 (smallest) to 100 (best).
omit_background
boolean
Default: false
Remove a plain white background so the image is transparent.
output
string
Default: 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.

Read the full guide →

Waiting and lazy loading

ParameterDescription
wait_for_event
string
Default: load
When to capture: load, domcontentloaded or networkidle.
delay
integer (ms)
Default: 0
Extra wait before capturing. Values above 30000 are cut to 30 seconds.
timeout
integer (ms)
Default: plan maximum
Longest the API waits for the page to load. Limits are 30 to 100 seconds by plan.
lazy_load
boolean
Default: false
Scroll the page first so lazy-loaded content appears.
scroll_delay
integer (ms)
Default: 500
Pause between scroll steps when lazy_load is on.

Read the full guide →

Elements and interaction

ParameterDescription
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
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
How many times to click selector_to_click.

Read the full guide →

Custom CSS, JavaScript and HTML

ParameterDescription
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.

Read the full guide →

Browser and visitor emulation

ParameterDescription
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
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
Ask the page for its dark theme.
grayscale
integer
Default: 0
Desaturate the output from 0 (colour) to 100 (grayscale).
enable_incognito
boolean
Default: 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.

Read the full guide →

Blocking resources

Each option below is a boolean and defaults to false.

ParameterDescription
block_ads
boolean
Default: false
Block ads.
block_tracking
boolean
Default: false
Block tracking scripts and services.
no_cookie_banners
boolean
Default: false
Hide cookie consent banners and popups.
block_chat_widgets
boolean
Default: false
Block live chat widgets.
block_js
boolean
Default: false
Block all JavaScript.
block_stylesheets
boolean
Default: false
Block all CSS files.
block_images
boolean
Default: false
Block images.
block_media
boolean
Default: false
Block audio and video.
block_font
boolean
Default: false
Block web fonts.
block_text_track
boolean
Default: false
Block subtitles and captions.
block_xhr
boolean
Default: false
Block XMLHttpRequest calls.
block_fetch
boolean
Default: false
Block Fetch API requests.
block_event_source
boolean
Default: false
Block EventSource (server-sent events) connections.
block_web_socket
boolean
Default: false
Block WebSocket connections.
block_manifest
boolean
Default: false
Block manifest files.
block_specific_requests
string
Block individual requests by URL pattern instead of a whole category.

Read the full guide →

Caching

ParameterDescription
enable_caching
boolean
Default: false
Store the result so later requests for the same URL can reuse it.
ttl
integer (s)
Default: 2592000
How long a cached result lives. 30 days is the maximum.
fresh
boolean
Default: true
true always renders again; false returns the cached result if there is one.
destroy_screenshot
boolean
Default: false
true deletes the stored file after 1 day.

Read the full guide →

Content extraction

ParameterDescription
extract_html
boolean
Default: false
Return the rendered page's HTML.Essential and up
extract_text
boolean
Default: false
Return the page's plain text.Essential and up
extract_markdown
boolean
Default: false
Return the page content as Markdown.Essential and up
get_image_urls
boolean
Default: false
Return the URLs of every image on the page.

Read the full guide →

PDF

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.

ParameterDescription
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
Rotate the page to landscape.
pdf_options[media]
string
Default: print
CSS media type to render with, for example print or screen.
pdf_options[print_background]
boolean
Default: false
Include background colours and images.

Read the full guide →

Proxy, GPU, stealth and captcha

ParameterDescription
proxy
string
Your own http or https proxy URL, such as http://user:pass@host:8000.
classic_proxy
boolean
Default: false
Load the page from a datacenter address.Essential and up
premium_proxy
boolean
Default: 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
Render with a GPU, including WebGL and canvas.Growth and up · +2 credits
stealth
boolean
Default: false
Make the browser look like a regular visitor.
solve_captcha
boolean
Default: 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
Number of guesses, 1 to 5.

Read the full guide →

Scrolling video

Set scrolling_screenshot=true and a video file_type (mp4, webm or gif).

ParameterDescription
scrolling_screenshot
boolean
Default: false
Record a scrolling video of the page.Startup and up
multiple_scrolling
boolean
Default: 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
fast, normal or slow.
duration
integer (s)
How long the scroll takes. 100 seconds is the maximum.
scroll_back
boolean
Default: false
Scroll back to the top after reaching the bottom.
start_immediately
boolean
Default: false
Start recording as soon as navigation begins, without waiting for the load.
video
boolean
Default: false
Record the viewport only, for duration seconds.Startup and up

Read the full guide →

Storage (bring your own bucket)

ParameterDescription
byob
boolean
Default: 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

Read the full guide →

Bulk parameters

The bulk endpoints take the same screenshot parameters for each URL (see above), plus these.

Bulk request fields

ParameterDescription
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.