- Handles the hard parts: JavaScript rendering, ads and cookie banners
- Captures the browser window or the full scrollable page, at any window size
- Returns a link to the image on our domain, ready to save or share
screenshot format of /scrape.
If a request fails, see Errors for the error codes and what to do about each one.
Taking a screenshot with ScreenshotRender
/scrape endpoint (with screenshot)
Ask/scrape for the screenshot format. The SDKs have a screenshot() method that does this for you.
Installation
Usage
Each screenshot costs 1 credit.
Response
SDKs return the page object directly. cURL returns the payload exactly as shown below.Response
data.screenshot is a PNG on www.screenshotrender.com, kept for 30 days. Without options, the capture is the 1920×1080 browser window.
Full page and window size
SetfullPage to capture the whole scrollable page instead of the browser window, and viewport to choose the window size in pixels. In the SDKs these are options of screenshot(). In the API, pass the format as an object: { "type": "screenshot", "fullPage": true, "viewport": { ... } }.
Response
Mobile, ads, waiting and location
Page options work with screenshots like with any other format:
See the Advanced scraping guide for every page option.
Screenshots with other formats
A screenshot is a format like any other, so you can ask for it next to other formats in the same request. The page still costs 1 credit.cURL
data.markdown and data.screenshot.
Screenshots from your agent
The MCP server has atake_screenshot tool that returns the image inline, so your agent can see the page, plus its link and the page’s title and description.