ScreenshotAPI
v1.0.2Website screenshots, URL/HTML to PDF, scrolling videos, and web scraping via ScreenshotAPI.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
take_screenshot Take a website screenshot
Captures a screenshot of a web page (or of raw HTML) in a real browser and returns the hosted image URL. By default the image is also returned inline so you can see it — except for full_page captures, which are often too tall to view; set include_image=true to force it. Supports viewport or full-page capture, a single element via 'selector', a pixel region via 'clip', retina output, ad/cookie-banner blocking, CSS/JS injection, clicking elements first, dark mode, custom headers/cookies, proxies, geolocation, and timezone. Each call uses one screenshot credit unless a cached capture is served.
generate_pdf Convert a web page or HTML to PDF
Renders a URL or raw HTML in a real browser and converts it to a PDF, returning the hosted PDF URL. Choose a paper size ('format') for paginated output; without format (and without width/height) the whole page becomes one long continuous PDF page. Supports landscape, page ranges, print backgrounds, print vs screen CSS, and all page preparation options (delay, lazy_load, ad/cookie-banner blocking, CSS/JS injection). Use save_path to save the PDF locally.
| Parameter | Type | Description |
|---|---|---|
accept_languages | string | Accept-Language header for localized content, e.g. 'fr-FR,fr;q=0.9'. Default 'en-US,en;q=0.8'. |
adjust_top | integer | Scroll the viewport down this many pixels before capture. Default 0. Not supported for PDFs. |
block | array | Resources to block while rendering. For a clean capture use ['ads', 'cookie_banners', 'chat_widgets']. 'tracking' blocks analytics. 'javascript', 'stylesheets', 'xhr', and 'fetch' can break pages or h… |
block_specific_requests | string | Specific request URLs or patterns to block, separated by commas, spaces, or newlines, e.g. 'https://example.com/api/data, https://ads-domain.com'. |
blur_selector | string | CSS selector(s) of elements to blur, comma-separated — for redacting emails, account numbers, or other sensitive data. |
bucket_name | string | Bucket to use with byob when several are configured under the same service. |
byob | boolean | Save the output to your own bucket configured under Storage Integrations in the dashboard (Bring Your Own Bucket). Default false. |
click_recursion | integer | How many times to click selector_to_click in sequence. Requires selector_to_click. Default 0. |
cookies | string | Cookies to set before loading, as 'name=value; other=value;'. Use for pages behind a login. |
css | string | CSS injected before capture, e.g. '.header { display: none; }'. |
css_url | string | URL of an external stylesheet to inject before capture. |
custom_html | string | Raw HTML to render instead of loading a URL. Takes precedence over url. Inline CSS and JavaScript in the HTML are applied. Useful for pages that are not publicly reachable. |
dark_mode | boolean | Render with the dark color scheme (for sites that support it). Default false. |
delay | integer | Extra wait in milliseconds after the page loads, before capture. Default 0. Use 1000-5000 for animations, charts, or late-loading content. |
enable_caching | boolean | Store this capture in the cache for reuse. Cached captures served later (with fresh=false) do not consume credits. Default false. |
enable_incognito | boolean | Render in an isolated incognito session with no persisted cookies or storage. Default false. |
format | string | Paper size. A4 or Letter for documents and invoices. Omit for a single continuous page. |
fresh | boolean | true (default) always renders a new capture; false returns a cached capture when one exists from a request with enable_caching=true and identical parameters. |
grayscale | integer | Desaturate the output, 0 (full color, default) to 100 (fully grayscale). |
headers | string | Extra HTTP headers as 'Name: value;' pairs separated by semicolons, e.g. 'Authorization: Bearer abc; X-Test: 1;'. |
height | integer | Browser viewport height in pixels (max 4320). Default 876. |
js | string | JavaScript executed in the page before capture, e.g. "document.querySelector('.popup').remove();". |
js_url | string | URL of an external JavaScript file to execute before capture. |
landscape | boolean | Landscape orientation — good for wide tables and dashboards. Default false (portrait). |
latitude | number | Latitude reported by the browser Geolocation API. |
lazy_load | boolean | Scroll through the whole page first so lazy-loaded images and sections render. Default false. |
longitude | number | Longitude reported by the browser Geolocation API. |
media | string | CSS media type to emulate: 'print' uses the site's print stylesheet, 'screen' matches what a visitor sees. |
page_range | string | Keep only these pages, as 'start-end', e.g. '1-3' or '5-5'. Needs a paginated PDF (format or width/height). |
print_background | boolean | Include background colors and images in the PDF. |
proxy | string | Proxy to route the request through: 'address:port' or 'username:password@address:port' (an http:// prefix is accepted). Useful for geo-specific content or CAPTCHA-prone sites. |
remove_selector | string | CSS selector(s) of elements to remove from the page before capture, comma-separated, e.g. '.ad-banner, #sidebar'. Non-matching selectors are ignored. |
result_file_name | string | Custom file name for the stored output. Non-unique names can overwrite earlier files. |
save_path | string | Optional local path to also save the file to, e.g. './shots/home.png'. A directory path (ending in '/' or an existing directory) keeps the remote file name. Relative paths resolve against the MCP serv… |
scroll_delay | integer | Milliseconds to wait between scroll steps when lazy_load is true. Default 500. High values on long pages can hit the timeout. |
scroll_to_element | string | CSS selector of an element to scroll into view before a viewport capture. |
selector_to_click | string | CSS selector of an element to click before capture, e.g. to open a tab, dropdown, or accordion. |
storage_service | string | Storage service to use with byob when several are configured: 'aws', 'wasabi', or 'google_cloud'. |
template_id | string | ID of a saved cookie template from the ScreenshotAPI dashboard to apply before navigation. |
timeout | integer | Maximum milliseconds the API waits for the page to load before aborting. Default 100000. |
timezone | string | IANA timezone to emulate, e.g. 'America/New_York', 'Asia/Karachi'. Default is the server timezone. |
ttl | integer | Cache lifetime in seconds when enable_caching is true. Default 2592000 (30 days). |
url | string | Website URL to render, including the protocol, e.g. 'https://example.com'. Either url or custom_html is required. |
user_agent | string | Custom User-Agent string, e.g. a mobile Safari UA to get the mobile site. |
wait_for_event | string | Page lifecycle event to wait for before capture. 'load' (default) waits for all resources; 'domcontentloaded' is faster but may miss images; 'networkidle' waits until no network requests for 500ms —… |
width | integer | Browser viewport width in pixels (max 7680). Default 1680. Use ~390 to emulate a phone, ~768 for a tablet. |
scrape_page Scrape page content as Markdown, text, or HTML
Loads a page in a real browser (JavaScript executed) and extracts its content: clean Markdown (best for reading and summarizing), plain text, the fully rendered HTML, and/or every image URL on the page. Extracted files are fetched and returned inline, truncated to max_content_chars. Works on JavaScript-heavy sites that plain HTTP fetches can't read. A screenshot is captured as part of the same request and counts as one credit.
| Parameter | Type | Description |
|---|---|---|
accept_languages | string | Accept-Language header for localized content, e.g. 'fr-FR,fr;q=0.9'. Default 'en-US,en;q=0.8'. |
adjust_top | integer | Scroll the viewport down this many pixels before capture. Default 0. Not supported for PDFs. |
block | array | Resources to block while rendering. For a clean capture use ['ads', 'cookie_banners', 'chat_widgets']. 'tracking' blocks analytics. 'javascript', 'stylesheets', 'xhr', and 'fetch' can break pages or h… |
block_specific_requests | string | Specific request URLs or patterns to block, separated by commas, spaces, or newlines, e.g. 'https://example.com/api/data, https://ads-domain.com'. |
blur_selector | string | CSS selector(s) of elements to blur, comma-separated — for redacting emails, account numbers, or other sensitive data. |
click_recursion | integer | How many times to click selector_to_click in sequence. Requires selector_to_click. Default 0. |
cookies | string | Cookies to set before loading, as 'name=value; other=value;'. Use for pages behind a login. |
css | string | CSS injected before capture, e.g. '.header { display: none; }'. |
css_url | string | URL of an external stylesheet to inject before capture. |
custom_html | string | Raw HTML to render instead of loading a URL. Takes precedence over url. Inline CSS and JavaScript in the HTML are applied. Useful for pages that are not publicly reachable. |
dark_mode | boolean | Render with the dark color scheme (for sites that support it). Default false. |
delay | integer | Extra wait in milliseconds after the page loads, before capture. Default 0. Use 1000-5000 for animations, charts, or late-loading content. |
enable_incognito | boolean | Render in an isolated incognito session with no persisted cookies or storage. Default false. |
extract | array | What to extract. Default ['markdown']. Options: markdown, text, html, image_urls. |
grayscale | integer | Desaturate the output, 0 (full color, default) to 100 (fully grayscale). |
headers | string | Extra HTTP headers as 'Name: value;' pairs separated by semicolons, e.g. 'Authorization: Bearer abc; X-Test: 1;'. |
height | integer | Browser viewport height in pixels (max 4320). Default 876. |
include_content | boolean | Fetch the extracted files and return their contents inline. Default true. false returns only the file URLs. |
js | string | JavaScript executed in the page before capture, e.g. "document.querySelector('.popup').remove();". |
js_url | string | URL of an external JavaScript file to execute before capture. |
latitude | number | Latitude reported by the browser Geolocation API. |
lazy_load | boolean | Scroll through the whole page first so lazy-loaded images and sections render. Default false. |
longitude | number | Longitude reported by the browser Geolocation API. |
max_content_chars | integer | Truncate each extracted file to this many characters. Default 50000. |
proxy | string | Proxy to route the request through: 'address:port' or 'username:password@address:port' (an http:// prefix is accepted). Useful for geo-specific content or CAPTCHA-prone sites. |
remove_selector | string | CSS selector(s) of elements to remove from the page before capture, comma-separated, e.g. '.ad-banner, #sidebar'. Non-matching selectors are ignored. |
scroll_delay | integer | Milliseconds to wait between scroll steps when lazy_load is true. Default 500. High values on long pages can hit the timeout. |
scroll_to_element | string | CSS selector of an element to scroll into view before a viewport capture. |
selector_to_click | string | CSS selector of an element to click before capture, e.g. to open a tab, dropdown, or accordion. |
template_id | string | ID of a saved cookie template from the ScreenshotAPI dashboard to apply before navigation. |
timeout | integer | Maximum milliseconds the API waits for the page to load before aborting. Default 100000. |
timezone | string | IANA timezone to emulate, e.g. 'America/New_York', 'Asia/Karachi'. Default is the server timezone. |
url | string | Website URL to render, including the protocol, e.g. 'https://example.com'. Either url or custom_html is required. |
user_agent | string | Custom User-Agent string, e.g. a mobile Safari UA to get the mobile site. |
wait_for_event | string | Page lifecycle event to wait for before capture. 'load' (default) waits for all resources; 'domcontentloaded' is faster but may miss images; 'networkidle' waits until no network requests for 500ms —… |
width | integer | Browser viewport width in pixels (max 7680). Default 1680. Use ~390 to emulate a phone, ~768 for a tablet. |
record_scrolling_video Record a scrolling video of a web page
Records a video (mp4, webm, or gif) of the browser scrolling down a web page and returns the hosted video URL. Control scroll speed, duration, and scrolling back to the top. Set video=true to record the viewport without scrolling (for animations or live dashboards). Pass 'sizes' to record the same page at several viewport sizes in one request. Rendering takes noticeably longer than a screenshot.
| Parameter | Type | Description |
|---|---|---|
accept_languages | string | Accept-Language header for localized content, e.g. 'fr-FR,fr;q=0.9'. Default 'en-US,en;q=0.8'. |
adjust_top | integer | Scroll the viewport down this many pixels before capture. Default 0. Not supported for PDFs. |
block | array | Resources to block while rendering. For a clean capture use ['ads', 'cookie_banners', 'chat_widgets']. 'tracking' blocks analytics. 'javascript', 'stylesheets', 'xhr', and 'fetch' can break pages or h… |
block_specific_requests | string | Specific request URLs or patterns to block, separated by commas, spaces, or newlines, e.g. 'https://example.com/api/data, https://ads-domain.com'. |
blur_selector | string | CSS selector(s) of elements to blur, comma-separated — for redacting emails, account numbers, or other sensitive data. |
click_recursion | integer | How many times to click selector_to_click in sequence. Requires selector_to_click. Default 0. |
cookies | string | Cookies to set before loading, as 'name=value; other=value;'. Use for pages behind a login. |
css | string | CSS injected before capture, e.g. '.header { display: none; }'. |
css_url | string | URL of an external stylesheet to inject before capture. |
custom_html | string | Raw HTML to render instead of loading a URL. Takes precedence over url. Inline CSS and JavaScript in the HTML are applied. Useful for pages that are not publicly reachable. |
dark_mode | boolean | Render with the dark color scheme (for sites that support it). Default false. |
delay | integer | Extra wait in milliseconds after the page loads, before capture. Default 0. Use 1000-5000 for animations, charts, or late-loading content. |
duration | number | How long the scrolling (or viewport recording) lasts, in seconds, 0-60. |
enable_incognito | boolean | Render in an isolated incognito session with no persisted cookies or storage. Default false. |
file_type | string | Video format. Default mp4. gif loops and has no sound; webm is smaller. |
grayscale | integer | Desaturate the output, 0 (full color, default) to 100 (fully grayscale). |
headers | string | Extra HTTP headers as 'Name: value;' pairs separated by semicolons, e.g. 'Authorization: Bearer abc; X-Test: 1;'. |
height | integer | Browser viewport height in pixels (max 4320). Default 876. |
js | string | JavaScript executed in the page before capture, e.g. "document.querySelector('.popup').remove();". |
js_url | string | URL of an external JavaScript file to execute before capture. |
latitude | number | Latitude reported by the browser Geolocation API. |
lazy_load | boolean | Scroll through the whole page first so lazy-loaded images and sections render. Default false. |
longitude | number | Longitude reported by the browser Geolocation API. |
proxy | string | Proxy to route the request through: 'address:port' or 'username:password@address:port' (an http:// prefix is accepted). Useful for geo-specific content or CAPTCHA-prone sites. |
remove_selector | string | CSS selector(s) of elements to remove from the page before capture, comma-separated, e.g. '.ad-banner, #sidebar'. Non-matching selectors are ignored. |
save_path | string | Optional local path to save the video to (ignored when 'sizes' is used, since that returns several files). |
scroll_back | boolean | Scroll back up to the top after reaching the bottom. Default false. |
scroll_delay | integer | Milliseconds to wait between scroll steps when lazy_load is true. Default 500. High values on long pages can hit the timeout. |
scroll_speed | string | Scrolling speed. Default normal. |
scroll_to_element | string | CSS selector of an element to scroll into view before a viewport capture. |
selector_to_click | string | CSS selector of an element to click before capture, e.g. to open a tab, dropdown, or accordion. |
sizes | array | Record one video per viewport size, e.g. [{width:1920,height:1080},{width:390,height:844}]. Overrides width/height. |
start_immediately | boolean | Start recording as soon as navigation begins instead of after load, to capture the page loading. Default false. |
template_id | string | ID of a saved cookie template from the ScreenshotAPI dashboard to apply before navigation. |
timeout | integer | Maximum milliseconds the API waits for the page to load before aborting. Default 100000. |
timezone | string | IANA timezone to emulate, e.g. 'America/New_York', 'Asia/Karachi'. Default is the server timezone. |
url | string | Website URL to render, including the protocol, e.g. 'https://example.com'. Either url or custom_html is required. |
user_agent | string | Custom User-Agent string, e.g. a mobile Safari UA to get the mobile site. |
video | boolean | Record the visible viewport for 'duration' seconds without scrolling. Default false. |
wait_for_event | string | Page lifecycle event to wait for before capture. 'load' (default) waits for all resources; 'domcontentloaded' is faster but may miss images; 'networkidle' waits until no network requests for 500ms —… |
width | integer | Browser viewport width in pixels (max 7680). Default 1680. Use ~390 to emulate a phone, ~768 for a tablet. |
bulk_screenshots Capture screenshots of many URLs
Submits up to 50 URLs as one bulk screenshot job (JSON bulk API). Each entry is a URL plus any take_screenshot option using the raw API parameter names (file_type, width, height, full_page, fresh, delay, css, block_ads, no_cookie_banners, ...). 'defaults' are applied to every entry unless the entry overrides them. Returns the API's job response; if it contains a uuid, track it with get_bulk_status and fetch results with download_bulk_results. Paid plans only.
| Parameter | Type | Description |
|---|---|---|
screenshots * | array | Entries to capture, e.g. [{url:'https://a.com'},{url:'https://b.com',full_page:true}]. Max 50. |
defaults | object | Options applied to every entry, e.g. {file_type:'png', width:1440, height:900, no_cookie_banners:true}. |
bulk_screenshots_csv Start a bulk screenshot job from a CSV
Uploads a CSV to start a bulk screenshot job. The CSV must have a 'url' column with full https:// URLs; any other column is treated as a render option for that row using the API parameter names (file_type, width, height, css, delay, headers, ...). Pass either a local csv_path or the CSV text in csv_content. Returns the job response including its uuid for get_bulk_status and download_bulk_results. ScreenshotAPI also emails a download link when the job finishes. Paid plans only.
| Parameter | Type | Description |
|---|---|---|
csv_content | string | CSV text, e.g. 'url,file_type\nhttps://a.com,png\nhttps://b.com,jpg'. Used when csv_path is not given. |
csv_path | string | Path to a local CSV file. |
get_bulk_status Check a bulk screenshot job
Returns the progress of a bulk screenshot job by uuid: percent complete plus successful and failed URLs. Call download_bulk_results once it reaches 100%.
| Parameter | Type | Description |
|---|---|---|
uuid * | string | Job uuid returned when the bulk job was submitted. |
download_bulk_results Download bulk screenshot results
Downloads the results of a finished bulk screenshot job by uuid: one row per URL with its status, the hosted screenshot URL, and any error message.
| Parameter | Type | Description |
|---|---|---|
uuid * | string | Job uuid returned when the bulk job was submitted. |