- Takes: URL
- Active: contacts the target
Returns the file bytes on success (PNG unless format says otherwise). On failure the body is JSON with error_code, error_message, documentation_url and, for invalid_options, an errors list. Only successful renders count against the quota. Many more options exist (clip, cookies, headers, blocking, PDF and video settings); see the options reference.
Query parameters
urlFull public http:// or https:// address to capture; encode it if it contains & or ?
formatOutput file type
full_pageCapture the whole page instead of the first screen
viewport_deviceEmulate a device preset (names are on the Devices page)
viewport_widthBrowser window width in px (100-3840)
viewport_heightBrowser window height in px (100-4320)
block_cookie_bannersHide cookie consent banners before capture
wait_untilPage event that counts as loaded
delayExtra seconds to wait after loading (0-30)
selectorCSS selector; capture only the first matching element
response_typeReturn the file, or JSON with a link to it
Response fields · 5ShowHide
error_code
Fixed identifier of the failure, e.g. invalid_options (error responses only)
error_message
Human-readable description (error responses only)
documentation_url
Link to the matching entry on the errors page
field
Option that failed validation (invalid_options only)
message
What is wrong with that option
curl 'https://curlshot.com/api/v1/screenshot?url=https%3A%2F%2Fexample.com&access_key=YOUR_API_KEY'{
"error_code": "invalid_options",
"error_message": "One or more options are invalid.",
"documentation_url": "https://curlshot.com/docs/errors",
"errors": [
{
"field": "format",
"message": "Unsupported value"
}
]
}