Skip to content
Login Sign up

Screenshot

Set screenshot=1 to receive a base64-encoded JPEG of the fully rendered page. Use screenshot_options to control viewport dimensions and whether to capture beyond the fold.

GET https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=<TARGET_URL>&screenshot=1&render_js=1
ParameterTypeRequiredDescription
api_keystringyesYour Web Scraping API key
urlstringyesTarget URL to fetch
screenshotintegeryesSet to 1 to return a screenshot.
render_jsintegeryesMust be 1.
screenshot_optionsobjectnoJSON with full_page (boolean), width (number), height (number).
FieldTypeDescription
full_pagebooleanCapture the full page beyond the viewport.
widthnumberViewport width in pixels.
heightnumberViewport height in pixels.
Terminal window
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https%3A%2F%2Fhttpbin.org%2Fget&screenshot=1&render_js=1"
{
"screenshot": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIoSUNDX1BST0ZJTEU..."
}

The screenshot value is a base64-encoded JPEG. Decode it to bytes and save as .jpg to view.