API reference · DataForSEO

dataforseo/v3/on_page/page_screenshot

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

APISynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/run
Model IDdataforseo/v3/on_page/page_screenshot
01

Input Schema

11 parameters · 1 required · 10 optional

ParameterTypeRequiredDescription
urlstringRequiredpage url required field absolute URL of the page to capture a screenshot of example: https://dataforseo.com/apis
switch_poolbooleanOptionalswitch proxy pool optional field if true, additional proxy pools will be used to obtain the requested data
browser_presetstringOptionalpreset for browser screen parameters optional field possible values: desktop, mobile, tablet desktop: 1920x1080, scale 1 mobile: 390x844, scale 3 tablet: 1024x1366, scale 2
accept_languagestringOptionallanguage header for accessing the website optional field all locale formats are supported (xx, xx-XX, xxx-XX, etc.) Note: if you do not specify this parameter, some websites may deny access
ip_pool_for_scanstringOptionalproxy pool location optional field possible values: us, de
custom_user_agentstringOptionalcustom user agent optional field custom user agent for crawling a website default value: Mozilla/5.0 (compatible; RSiteAuditor)
browser_screen_widthintegerOptionalbrowser screen width in pixels optional field minimum value: 240 maximum value: 9999 if set, browser_preset is ignored
disable_cookie_popupbooleanOptionaldisable the cookie popup optional field set to true to dismiss cookie consent dialogs default value: false
full_page_screenshotbooleanOptionaltake a screenshot of the full page optional field set to false to capture only the visible viewport default value: true
browser_screen_heightintegerOptionalbrowser screen height in pixels optional field minimum value: 240 maximum value: 9999 if set, browser_preset is ignored
browser_screen_scale_factornumberOptionalbrowser screen scale factor optional field minimum value: 0.5 maximum value: 3 if set, browser_preset is ignored
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description
03

Code Examples

Ready-to-run snippets

curl -X POST https://api.sandbase.ai/v1/run \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "model": "dataforseo/v3/on_page/page_screenshot",
  "prompt": "a beautiful sunset over mountains"
}'