↑ ↓ to move ↵ to open

Screenshot API

A JPEG of any page: the visible window or the whole page.

At a glance

Endpoint ID
web.screenshot
Price
1 credit per call; failed calls are free
Runs for up to
120 seconds
Request
POST /screenshot or POST /execute
MCP tool when pinned
web__screenshot
Pin tools
OpenAPI
openapi.json
Download

The Screenshot API opens a page in a real browser and returns a JPEG: the visible window, or the whole page from top to bottom.

Call it

curl https://data.upscrape.com/screenshot \  -H "Authorization: Bearer $UPSCRAPE_API_KEY" \  -H "Content-Type: application/json" \  -H "Prefer: wait=30" \  -d '{"url": "https://www.wikipedia.org/", "full_page": true}'

The image is in results[0].data.image: base64 in data, with its content_type and size in bytes. It travels inside the JSON, so there is no link to expire.

Set up the shot

InputWhat it does
full_pageThe whole page, top to bottom, instead of the visible window.
viewport_width, viewport_heightThe browser window, 1440 by 900 by default; from 320 by 200 up to 3840 by 2160. Use 390 by 844 for a phone.
wait_for_selectorWait until an element matching this CSS selector appears, for pages that fill in after they load.
wait_msWait this many milliseconds before the shot, up to 10 seconds.

The image is a JPEG.

Input

FieldTypeRequiredWhat it doesExample
url string yes The page to screenshot. https://www.wikipedia.org/
format string no The image format: jpeg. jpeg
full_page boolean no Capture the whole page, not just the visible window. false
viewport_height integer no The browser window height, in pixels. 900
viewport_width integer no The browser window width, in pixels. 1440
wait_for_selector string no Wait until an element matching this CSS selector appears.
wait_ms integer no Wait this many milliseconds before the screenshot.

Response

A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.

This is results[0].data from a real run:

results[0].data
{  "captured_at": "2026-10-16T14:03:23.651658Z",  "content_type": "image/jpeg",  "final_url": "https://www.wikipedia.org/",  "height": 900,  "rendered": true,  "status_code": 200,  "width": 1440,  "image": {    "bytes": 60650,    "content_type": "image/jpeg",    "data": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUA…",    "encoding": "base64"  },  "warnings": []}

Fields

FieldTypeWhat it isExample
captured_at string When the screenshot was taken. 2026-10-16T14:03:23.651658Z
content_type string The image's format. image/jpeg
final_url string The address the browser ended on, after any redirects. https://www.wikipedia.org/
height integer The image's height in pixels. 900
image object The screenshot. 4 fields
image.bytes integer The image's size in bytes. 60,650
image.content_type string The image's format, image/jpeg. image/jpeg
image.data string The image itself, base64-encoded. Decode it and save it as a .jpg file. /9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUA…
image.encoding string How data is encoded: base64. base64
rendered boolean Whether the page was drawn in a real browser. true
status_code integer The site's HTTP status for the page, such as 200. 200
warnings array Anything that limited the screenshot; empty when all went well. empty in this sample
width integer The image's width in pixels. 1440

What to know

  • The browser window is 1440 by 900 pixels unless you set viewport_width and viewport_height.
  • full_page captures the whole page, top to bottom, in one image.
  • For a page that fills in after it loads, wait for it with wait_for_selector or wait_ms.
  • The image comes inside the JSON as base64, so there is no link to expire.

If a call fails

A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.

Something missing or unclear? Ask the team that builds the endpoints.