# DataForSEO — On Page / Page Screenshot

Get DataForSEO On Page / Page Screenshot data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DataForSEO, configure supported query parameters and filters, and retrieve structured data including returned cost field, returned status code field, returned status message field, business payload, and identifier to search interfaces and source review, and integration reference.

Documentation: https://openany.si/dataforseo/dataforseo-on-page-page-screenshot/70d9398a-49ed-4b2d-8696-62918dbaea9f/
API ID: 70d9398a-49ed-4b2d-8696-62918dbaea9f
Provider: DataForSEO
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/page_screenshot
Page update time: 2026-12-03T02:50:38.373Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.0048 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:50:37.507Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "4800",
    "max_cost_micro_usd": "4800",
    "quantities": [
      {
        "id": "task_errors",
        "label": "任务错误数必须为零",
        "max_quantity": "0",
        "measure": "value",
        "pointer": "/tasks_error",
        "price_micro_usd": "0",
        "quantity_scale": 0,
        "source": "response",
        "unit": "task_error",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## DataForSEO On Page / Page Screenshot API

Retrieve on Page Page Screenshot with the DataForSEO API. Provide JSON payload in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Search interfaces and source review**: Keep returned sources and query context together.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `cost` | Returned cost field |
| `status_code` | Returned status code field |
| `status_message` | Returned status message field |
| `tasks[].data` | Business payload |
| `tasks[].id` | Identifier |
| `tasks[].result` | Returned result |
| `tasks[].cost` | Returned cost field |
| `tasks[].path` | Returned path field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DataForSEO — On Page / Page Screenshot request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "example": [
        {
          "url": "https://dataforseo.com/apis"
        }
      ],
      "items": {
        "example": [
          {
            "url": "https://dataforseo.com/apis"
          }
        ],
        "nullable": true,
        "properties": {
          "accept_language": {
            "description": "language 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; in this case, you will obtain \"error_message\":\"Screenshot is empty\" in the response array",
            "nullable": true,
            "type": "string",
            "x-required-status": "optional"
          },
          "browser_preset": {
            "description": "preset for browser screen parameters optional field if you use this field, you don't need to indicate browser_screen_width, browser_screen_height, browser_screen_scale_factor possible values: desktop, mobile, tablet desktop preset will apply the following values: browser_screen_width: 1920 browser_screen_height: 1080 browser_screen_scale_factor: 1 mobile preset will apply the following values: browser_screen_width: 390 browser_screen_height: 844 browser_screen_scale_factor: 3 tablet preset will apply the following values: browser_screen_width: 1024 browser_screen_height: 1366 browser_screen_scale_factor: 2 Note: in this endpoint, the enable_browser_rendering, enable_javascript, load_resources, and enable_xhr parameters are always enabled.",
            "nullable": true,
            "type": "string",
            "x-original-openapi-description": "preset for browser screen parameters optional field if you use this field, you don't need to indicate browser_screen_width , browser_screen_height , browser_screen_scale_factor possible values: desktop , mobile , tablet desktop preset will apply the following values: browser_screen_width: 1920 browser_screen_height: 1080 browser_screen_scale_factor: 1 mobile preset will apply the following values: browser_screen_width: 390 browser_screen_height: 844 browser_screen_scale_factor: 3 tablet preset will apply the following values: browser_screen_width: 1024 browser_screen_height: 1366 browser_screen_scale_factor: 2 Note: in this endpoint, the enable_browser_rendering , enable_javascript , load_resources , and enable_xhr parameters are always enabled.",
            "x-required-status": "optional"
          },
          "browser_screen_height": {
            "description": "browser screen height optional field you can set a custom browser screen height to perform audit for a particular device; if you use this field, you don't need to indicate browser_preset as it will be ignored; minimum value, in pixels: 240 maximum value, in pixels: 9999",
            "nullable": true,
            "type": "integer",
            "x-required-status": "optional"
          },
          "browser_screen_scale_factor": {
            "description": "browser screen scale factor optional field you can set a custom browser screen resolution ratio to perform audit for a particular device; if you use this field, you don't need to indicate browser_preset as it will be ignored; minimum value: 0.5 maximum value: 3",
            "maximum": 3,
            "minimum": 0.5,
            "nullable": true,
            "type": "number",
            "x-constraints-from-official-description": [
              "maximum",
              "minimum"
            ],
            "x-required-status": "optional"
          },
          "browser_screen_width": {
            "description": "browser screen width optional field you can set a custom browser screen width to perform audit for a particular device; if you use this field, you don't need to indicate browser_preset as it will be ignored; minimum value, in pixels: 240 maximum value, in pixels: 9999",
            "format": "int64",
            "nullable": true,
            "type": "integer",
            "x-required-status": "optional"
          },
          "custom_user_agent": {
            "description": "custom user agent optional field custom user agent for crawling a website example: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 default value: Mozilla/5.0 (compatible; RSiteAuditor)",
            "nullable": true,
            "type": "string",
            "x-required-status": "optional"
          },
          "disable_cookie_popup": {
            "default": false,
            "description": "disable the cookie popup optional field set to true if you want to disable the popup requesting cookie consent from the user; default value: false",
            "nullable": true,
            "type": "boolean",
            "x-constraints-from-official-description": [
              "default"
            ],
            "x-required-status": "optional"
          },
          "full_page_screenshot": {
            "default": true,
            "description": "take a screenshot of the full page optional field set to false if you want to capture only the part of the page displayed before scrolling default value: true",
            "nullable": true,
            "type": "boolean",
            "x-constraints-from-official-description": [
              "default"
            ],
            "x-required-status": "optional"
          },
          "ip_pool_for_scan": {
            "description": "proxy pool optional field you can choose a location of the proxy pool that will be used to obtain the requested data; the parameter can be used if page content is inaccessible in one of the locations, resulting in occasional site_unreachable errors possible values: us, de",
            "nullable": true,
            "type": "string",
            "x-original-openapi-description": "proxy pool optional field you can choose a location of the proxy pool that will be used to obtain the requested data; the parameter can be used if page content is inaccessible in one of the locations, resulting in occasional site_unreachable errors possible values: us , de",
            "x-required-status": "optional"
          },
          "switch_pool": {
            "description": "switch proxy pool optional field if true, additional proxy pools will be used to obtain the requested data; the parameter can be used if a multitude of tasks is set simultaneously, resulting in occasional rate-limit and/or site_unreachable errors",
            "nullable": true,
            "type": "boolean",
            "x-original-openapi-description": "switch proxy pool optional field if true , additional proxy pools will be used to obtain the requested data; the parameter can be used if a multitude of tasks is set simultaneously, resulting in occasional rate-limit and/or site_unreachable errors",
            "x-required-status": "optional"
          },
          "url": {
            "description": "page url required field absolute URL of the page to snap note: if the URL you indicate here returns a 404 status code or the indicated value is not a valid URL, you will obtain \"error_message\":\"Screenshot is empty\" in the response array",
            "type": "string",
            "x-required-status": "required"
          }
        },
        "required": [
          "url"
        ],
        "type": "object",
        "x-required-origin": "official_required_array_plus_explicit_unconditional_required_field_prose"
      },
      "maxItems": 1,
      "minItems": 1,
      "type": "array",
      "x-openany-retail-scope": "single_native_task_per_sale_execution",
      "x-openapi-version": "3.0.1",
      "x-schema-origin": "official_openapi_with_local_refs_rebased",
      "description": "‌‌ Using this endpoint, you can capture a full high-quality screenshot of any webpage. In this way, you can review the target page as the DataForSEO crawler and Googlebot see it."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cost": {
      "type": "number"
    },
    "status_code": {
      "type": "integer"
    },
    "status_message": {
      "type": "string"
    },
    "tasks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "cost": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "api": {
                "type": "string"
              },
              "function": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          },
          "id": {
            "type": "string"
          },
          "path": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "result": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "crawl_progress": {
                  "type": "string"
                },
                "error_message": {
                  "type": "null"
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "image": {
                        "type": "string"
                      }
                    }
                  }
                },
                "items_count": {
                  "type": "integer"
                }
              }
            }
          },
          "result_count": {
            "type": "integer"
          },
          "status_code": {
            "type": "integer"
          },
          "status_message": {
            "type": "string"
          },
          "time": {
            "type": "string"
          }
        }
      }
    },
    "tasks_count": {
      "type": "integer"
    },
    "tasks_error": {
      "type": "integer"
    },
    "time": {
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · 官方历史成对样例（未运行） (HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/page_screenshot' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "url": "https://dataforseo.com/apis"
  }
]'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Configured HTTP 200; actual status is unverified.
```json
{
  "cost": 0.004,
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "cost": 0.004,
      "data": {
        "api": "on_page",
        "function": "page_screenshot",
        "url": "https://dataforseo.com/apis"
      },
      "id": "05061850-1535-0444-0000-698f746278b6",
      "path": [
        "v3",
        "on_page",
        "page_screenshot"
      ],
      "result": [
        {
          "crawl_progress": "finished",
          "error_message": null,
          "items": [
            {
              "image": "https://api.dataforseo.com/cdn/screenshot/05061850-1535-0444-0000-698f746278b6"
            }
          ],
          "items_count": 1
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "6.3053 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "6.3639 sec.",
  "version": "0.1.20220428"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide JSON payload in body (array). Keep identifiers and URLs in the formats documented for this implementation.

### How should I structure the JSON body?
Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Can I reuse request parameters from another endpoint?
Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- DataForSEO: https://openany.si/dataforseo/dataforseo-on-page-page-screenshot/70d9398a-49ed-4b2d-8696-62918dbaea9f/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
