DataForSEO — On Page / Page Screenshot
Retrieve on Page Page Screenshot with the DataForSEO API. The sample response includes URLs. Use it for search visibility research or technical SEO.
- Selected price
- $0.0048 / callPublished pricing
- Sellers / implementations
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
DataForSEOCurrent DataForSEO — On Page / Page Screenshot · POST | $0.0048 / call | — | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
costnumberstatus_codeintegerstatus_messagestringtasksobject[]costnumberdataobjectapistringfunctionstringurlstring
idstringpathstring[]resultobject[]crawl_progressstringerror_messagenullitemsobject[]imagestring
items_countinteger
result_countintegerstatus_codeintegerstatus_messagestringtimestring
tasks_countintegertasks_errorintegertimestringversionstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
cost?: number;
status_code?: number;
status_message?: string;
tasks?: Array<{
cost?: number;
data?: {
api?: string;
function?: string;
url?: string;
};
id?: string;
path?: Array<string>;
result?: Array<{
crawl_progress?: string;
error_message?: null;
items?: Array<{
image?: string;
}>;
items_count?: number;
}>;
result_count?: number;
status_code?: number;
status_message?: string;
time?: string;
}>;
tasks_count?: number;
tasks_error?: number;
time?: string;
version?: string;
};- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/page_screenshot- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
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"
}
]'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
body | JSON request bodybody | array | Yes | 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. minItems: 1 · maxItems: 1 Nested fields and variants
Nested fields and variants
|
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Configured HTTP 200; actual status is unverified. Example from the provider's documentation. Field values in your results will differ.
{
"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"
}Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.004800. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| 任务错误数必须为零 | $0.000000 / billing unit | Response · /tasks_error · Numeric value | Always | 0 billing unit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.004800.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# DataForSEO — On Page / Page Screenshot
Retrieve on Page Page Screenshot with the DataForSEO API. The sample response includes URLs. Use it for search visibility research or technical SEO.
## Available implementations
DataForSEO · DataForSEO — On Page / Page Screenshot: https://openany.si/markets/apis/capabilities/dataforseo-on-page-page-screenshot?offering=70d9398a-49ed-4b2d-8696-62918dbaea9f · $0.0048 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/dataforseo-on-page-page-screenshot
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/page_screenshot
Price: $0.0048 / call
Provider: DataForSEO
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```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"
}
]'
```
## API contract
```json
{
"resource_type": "api",
"name": "DataForSEO — On Page / Page Screenshot",
"endpoint": "https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/page_screenshot",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"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.",
"json_schema": {
"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"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "array"
}
],
"billing": {
"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": []
}
},
"examples": [
{
"http_status": 200,
"name": "Official example · 官方历史成对样例(未运行) (HTTP assumed)",
"request": {
"body": [
{
"url": "https://dataforseo.com/apis"
}
],
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"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
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Official example · 官方历史成对样例(未运行) (HTTP assumed)
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- 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.
Terminal · cURLcurl \ '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" } ]'Check the response
Sample response · Configured HTTP 200; actual status is unverified.
Sample response{ "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" }
Common questions
Do I need a separate key for every provider?
Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.
Are these providers interchangeable?
No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.
How is this API billed?
API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.
Where do the price and contract come from?
The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.
How do OpenAny Balance and x402 differ?
OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.
Does Playground send a paid request?
Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.
Use DataForSEO — On Page / Page Screenshot with your agent
Inspect endpoint contracts and confirm availability and pricing before a paid call.