Screenshot Capture | cURL
Learn how to take a screenshot of a page when scraping with ScraperAPI in cURL. Capture page images using screenshot=true. Ideal for monitoring and documentation.
Our Java Script solution now gives you the ability to take a screenshot of the target page through the use of the parameter screenshot=true
. This parameter automatically enables JS rendering to get the full page content, before taking a screenshot.
After we serve the response, you can find the screenshot URL in the sa-screenshot
response header. The screenshot format is PNG
:

API REQUEST
curl -i "https://api.scraperapi.com/?api_key=API_KEY&screenshot=true&url=https://example.com/"
ASYNC REQUEST
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"apiKey": "API_KEY",
"url": "https://example.com/",
"apiParams": {
"screenshot": "true"
}
}' \
"https://async.scraperapi.com/jobs"
PROXY MODE - COMING SOON!
Last updated
Was this helpful?