APIDataSearch & Research

DataForSEO — On Page / Instant Pages

Retrieve on Page Instant Pages with the DataForSEO API. The sample response includes URLs. Use it for search visibility research or technical SEO.

Selected price
$0.00015 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

DataForSEO — On Page / Instant Pages

Prepare your request, then continue with your agent.

Pricing

$0.00015 / call

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body*array

body

Using this function you will get page-specific data with detailed information on how well a particular page is optimized for organic search. for more info please visit 'https://docs.dataforseo.com/v3/on_page/instant_pages/?bash'

Sample response

{
  "cost": 0.000125,
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "cost": 0.000125,
      "data": {
        "api": "on_page",
        "custom_js": "meta = {}; meta.url = document.URL; meta;",
        "function": "instant_pages",
        "url": "https://dataforseo.com/blog"
      },
      "id": "02261721-0696-0275-0000-c6fbc6685a5b",
      "path": [
        "v3",
        "on_page",
        "instant_pages"
      ],
      "result": [
        {
          "crawl_progress": "finished",
          "items": [
            {
              "broken_links": false,
              "broken_resources": false,
              "cache_control": {
                "cachable": false,
                "ttl": 0
              },
              "checks": {
                "canonical": true,
                "deprecated_html_tags": false,
                "duplicate_meta_tags": true,
                "duplicate_title_tag": false,
                "flash": false,
                "frame": true,
                "has_html_doctype": true,
                "has_meta_refresh_redirect": false,
                "has_render_blocking_resources": true,
                "high_character_count": false,
                "high_content_rate": false,
                "high_loading_time": false,
                "high_waiting_time": false,
                "https_to_http_links": false,
                "irrelevant_description": false,
                "irrelevant_meta_keywords": false,
                "irrelevant_title": false,
                "is_4xx_code": false,
                "is_5xx_code": false,
                "is_broken": false,
                "is_http": false,
                "is_https": true,
                "is_redirect": false,
                "is_www": false,
                "large_page_size": false,
                "lorem_ipsum": false,
                "low_character_count": false,
                "low_content_rate": true,
                "low_readability_rate": false,
                "meta_charset_consistency": true,
                "no_content_encoding": false,
                "no_description": true,
                "no_doctype": false,
                "no_encoding_meta_tag": false,
                "no_favicon": false,
                "no_h1_tag": false,
                "no_image_alt": false,
                "no_image_title": true,
                "no_title": false,
                "redirect_chain": false,
                "seo_friendly_url": true,
                "seo_friendly_url_characters_check": true,
                "seo_friendly_url_dynamic_check": true,
                "seo_friendly_url_keywords_check": true,
                "seo_friendly_url_relative_length_check": true,
                "size_greater_than_3mb": false,
                "small_page_size": false,
                "title_too_long": false,
                "title_too_short": false
              },
              "click_depth": 0,
              "content_encoding": "gzip",
              "custom_js_response": {
                "url": "https://dataforseo.com/blog"
              },
              "duplicate_content": false,
              "duplicate_description": false,
              "duplicate_title": false,
              "encoded_size": 20446,
              "fetch_time": "2021-02-26 17:21:41 +00:00",
              "is_resource": false,
              "location": null,
              "media_type": "text/html",
              "meta": {
                "broken_html": {
                  "errors": null,
                  "warnings": [
                    {
                      "line": 0,
                      "message": "Has node with more than 60 childs."
                    },
                    {
                      "line": 0,
                      "message": "Has more that 1500 nodes."
                    }
                  ]
                },
                "canonical": "https://dataforseo.com/blog",
                "charset": 65001,
                "content": {
                  "automated_readability_index": 8.13152777777778,
                  "coleman_liau_readability_index": null,
                  "dale_chall_readability_index": 7.313126984126985,
                  "description_to_content_consistency": null,
                  "flesch_kincaid_readability_index": 55.072857142857146,
                  "meta_keywords_to_content_consistency": null,
                  "plain_text_rate": 0.012864701790585164,
                  "plain_text_size": 1646,
                  "plain_text_word_count": 280,
                  "smog_readability_index": 17.631426480028413,
                  "title_to_content_consistency": 0.5
                },
                "deprecated_tags": null,
                "description": null,
                "description_length": 0,
                "duplicate_meta_tags": [
                  "generator"
                ],
                "external_links_count": 11,
                "favicon": "https://dataforseo.com/wp-content/uploads/2016/11/cropped-Favicon_512-32x32.png",
                "follow": true,
                "generator": "Powered by Slider Revolution 5.2.6 - responsive, Mobile-Friendly Slider Plugin for WordPress with comfortable drag and drop interface.",
                "htags": {
                  "h1": [
                    "Blog"
                  ],
                  "h2": [
                    "How to Get Historical Search Volume for Predictive Keyword Research",
                    "DataForSEO January Digest: All the Updates You Don’t Want to Miss!",
                    "How To Extract Blog Metadata Using JavaScript And On-Page API",
                    "Twinword Wins 35% More Paid Customers After Switching To DataForSEO APIs",
                    "Your Powerful Alternative To Google Search Console API",
                    "How to Use Bing Search Volume to Fine-Sharpen Keyword Research",
                    "How to Measure Search Visibility if Rank Tracking Doesn’t Do the Job",
                    "Tap into the World of Local Market Opportunities with Business Data API",
                    "Who Your Potential Customers Are and What They Want From Your SEO Tool",
                    "SEO Data Collection: DIY or API?"
                  ],
                  "h4": [
                    "Products",
                    "By industry",
                    "By company type",
                    "Docs",
                    "Resources",
                    "Login",
                    "Categories",
                    "APIs",
                    "About",
                    "Legal information",
                    "Follow us on:",
                    "Payment Methods:"
                  ]
                },
                "images_count": 15,
                "images_size": 0,
                "inbound_links_count": 0,
                "internal_links_count": 84,
                "meta_keywords": null,
                "render_blocking_scripts_count": 19,
                "render_blocking_stylesheets_count": 16,
                "scripts_count": 36,
                "scripts_size": 0,
                "social_media_tags": {
                  "article:modified_time": "2018-11-29",
                  "article:published_time": "2017-05-11",
                  "fb:app_id": "979971002139459",
                  "og:site_name": "API for SEO-software companies and agencies",
                  "og:title": "Blog",
                  "og:type": "article",
                  "og:url": "https://dataforseo.com/blog",
                  "twitter:card": "summary"
                },
                "spell": null,
                "stylesheets_count": 0,
                "stylesheets_size": 0,
                "title": "Blog | API for SEO-software companies and agencies",
                "title_length": 50
              },
              "page_timing": {
                "connection_time": 6,
                "dom_complete": 259,
                "download_time": 0,
                "duration_time": 259,
                "fetch_end": 259,
                "fetch_start": 0,
                "request_sent_time": 0,
                "time_to_interactive": 259,
                "time_to_secure_connection": 33,
                "waiting_time": 220
              },
              "resource_type": "html",
              "server": "nginx/1.10.1 (Ubuntu)",
              "size": 127985,
              "status_code": 200,
              "total_dom_size": 127985,
              "total_transfer_size": 20957,
              "url": "https://dataforseo.com/blog"
            }
          ],
          "items_count": 1
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "2.3730 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "2.6282 sec.",
  "version": "0.1.20210129"
}

Response result

Response structure

Inferred from examples
  • costnumber
  • status_codeinteger
  • status_messagestring
  • tasksobject[]
    • costnumber
    • dataobject
      • apistring
      • custom_jsstring
      • functionstring
      • urlstring
    • idstring
    • pathstring[]
    • resultobject[]
      • crawl_progressstring
      • itemsobject[]
        • broken_linksboolean
        • broken_resourcesboolean
        • cache_controlobject
          • cachableboolean
          • ttlinteger
        • checksobject
          • canonicalboolean
          • deprecated_html_tagsboolean
          • duplicate_meta_tagsboolean
          • duplicate_title_tagboolean
          • flashboolean
          • frameboolean
          • has_html_doctypeboolean
          • has_meta_refresh_redirectboolean
          • has_render_blocking_resourcesboolean
          • high_character_countboolean
          • high_content_rateboolean
          • high_loading_timeboolean
          • high_waiting_timeboolean
          • https_to_http_linksboolean
          • irrelevant_descriptionboolean
          • irrelevant_meta_keywordsboolean
          • irrelevant_titleboolean
          • is_4xx_codeboolean
          • is_5xx_codeboolean
          • is_brokenboolean
          • is_httpboolean
          • is_httpsboolean
          • is_redirectboolean
          • is_wwwboolean
          • large_page_sizeboolean
          • lorem_ipsumboolean
          • low_character_countboolean
          • low_content_rateboolean
          • low_readability_rateboolean
          • meta_charset_consistencyboolean
          • no_content_encodingboolean
          • no_descriptionboolean
          • no_doctypeboolean
          • no_encoding_meta_tagboolean
          • no_faviconboolean
          • no_h1_tagboolean
          • no_image_altboolean
          • no_image_titleboolean
          • no_titleboolean
          • redirect_chainboolean
          • seo_friendly_urlboolean
          • seo_friendly_url_characters_checkboolean
          • seo_friendly_url_dynamic_checkboolean
          • seo_friendly_url_keywords_checkboolean
          • seo_friendly_url_relative_length_checkboolean
          • size_greater_than_3mbboolean
          • small_page_sizeboolean
          • title_too_longboolean
          • title_too_shortboolean
        • click_depthinteger
        • content_encodingstring
        • custom_js_responseobject
          • urlstring
        • duplicate_contentboolean
        • duplicate_descriptionboolean
        • duplicate_titleboolean
        • encoded_sizeinteger
        • fetch_timestring
        • is_resourceboolean
        • locationnull
        • media_typestring
        • metaobject
          • broken_htmlobject
            • errorsnull
            • warningsobject[]
              • lineinteger
              • messagestring
          • canonicalstring
          • charsetinteger
          • contentobject
            • automated_readability_indexnumber
            • coleman_liau_readability_indexnull
            • dale_chall_readability_indexnumber
            • description_to_content_consistencynull
            • flesch_kincaid_readability_indexnumber
            • meta_keywords_to_content_consistencynull
            • plain_text_ratenumber
            • plain_text_sizeinteger
            • plain_text_word_countinteger
            • smog_readability_indexnumber
            • title_to_content_consistencynumber
          • deprecated_tagsnull
          • descriptionnull
          • description_lengthinteger
          • duplicate_meta_tagsstring[]
          • external_links_countinteger
          • faviconstring
          • followboolean
          • generatorstring
          • htagsobject
            • h1string[]
            • h2string[]
            • h4string[]
          • images_countinteger
          • images_sizeinteger
          • inbound_links_countinteger
          • internal_links_countinteger
          • meta_keywordsnull
          • render_blocking_scripts_countinteger
          • render_blocking_stylesheets_countinteger
          • scripts_countinteger
          • scripts_sizeinteger
          • social_media_tagsobject
            • article:modified_timestring
            • article:published_timestring
            • fb:app_idstring
            • og:site_namestring
            • og:titlestring
            • og:typestring
            • og:urlstring
            • twitter:cardstring
          • spellnull
          • stylesheets_countinteger
          • stylesheets_sizeinteger
          • titlestring
          • title_lengthinteger
        • page_timingobject
          • connection_timeinteger
          • dom_completeinteger
          • download_timeinteger
          • duration_timeinteger
          • fetch_endinteger
          • fetch_startinteger
          • request_sent_timeinteger
          • time_to_interactiveinteger
          • time_to_secure_connectioninteger
          • waiting_timeinteger
        • resource_typestring
        • serverstring
        • sizeinteger
        • status_codeinteger
        • total_dom_sizeinteger
        • total_transfer_sizeinteger
        • urlstring
      • items_countinteger
    • result_countinteger
    • status_codeinteger
    • status_messagestring
    • timestring
  • tasks_countinteger
  • tasks_errorinteger
  • timestring
  • versionstring

Sellers

SellerPricingRequests · 30dPerformanceAccess
DataForSEOCurrent
DataForSEO — On Page / Instant Pages · POST · View API reference
$0.00015 / call—
—successP50—
Loading...
Selected pricing · DataForSEOUSD / call
Pricing
$0.00015

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/instant_pages
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/instant_pages' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "custom_js": "meta = {}; meta.url = document.URL; meta;",
    "url": "https://dataforseo.com/blog"
  }
]'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
bodyJSON request bodybodyarrayYesUsing this function you will get page-specific data with detailed information on how well a particular page is optimized for organic search. for more info please visit 'https://docs.dataforseo.com/v3/on_page/instant_pages/?bash'

minItems: 1 · maxItems: 1

Nested fields and variants

body[] · Array item · object

Nested fields and variants
body[].accept_language string · Optional

Parent object: body[]

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, pages will be returned with the "type":"broken in the response array
body[].browser_preset string · Optional

Parent object: body[]

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_factorpossible 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: to use this parameter, set enable_javascript or enable_browser_rendering to true
body[].browser_screen_height integer · Optional

Parent object: body[]

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; Note: to use this parameter, set enable_javascript or enable_browser_rendering to trueminimum value, in pixels: 240 maximum value, in pixels: 9999
body[].browser_screen_scale_factor number · Optional

Parent object: body[]

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; Note: to use this parameter, set enable_javascript or enable_browser_rendering to trueminimum value: 0.5 maximum value: 3

minimum: 0.5 · maximum: 3

body[].browser_screen_width integer · Optional

Parent object: body[]

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; Note: to use this parameter, set enable_javascript or enable_browser_rendering to trueminimum value, in pixels: 240 maximum value, in pixels: 9999

format: int64

body[].check_spell boolean · Optional

Parent object: body[]

check spelling optional field set to true to check spelling on a website using Hunspell library default value: false
body[].checks_threshold object · Optional

Parent object: body[]

custom threshold values for checks optional field you can specify custom threshold values for the parameters included in the checks array of OnPage API responses; Note: only integer threshold values can be modified;
Nested fields and variants

body[].checks_threshold.{name} · Named entries · integer

body[].custom_js string · Optional

Parent object: body[]

custom javascript optional field Note that the execution time for the script you enter here should be 700 ms maximum; for example, you can use the following JS snippet to check if the website contains Google Tag Manager as a scr attribute: let meta = { haveGoogleAnalytics: false, haveTagManager: false };rnfor (var i = 0; i < document.scripts.length; i++) {rn let src = document.scripts[i].getAttribute("src");rn if (src != undefined) {rn if (src.indexOf("analytics.js") >= 0)rn meta.haveGoogleAnalytics = true;rntif (src.indexOf("gtm.js") >= 0)rn meta.haveTagManager = true;rn }rn}rnmeta;the returned value depends on what you specified in this field. For instance, if you specify the following script: meta = {}; meta.url = document.URL; meta.test = 'test'; meta; as a response you will receive the following data: "custom_js_response": { "url": "https://dataforseo.com/", "test": "test" }
body[].custom_user_agent string · Optional

Parent object: body[]

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)
body[].disable_cookie_popup boolean · Optional

Parent object: body[]

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
body[].enable_browser_rendering boolean · Optional

Parent object: body[]

emulate browser rendering to measure Core Web Vitals optional field by using this parameter you will be able to emulate a browser when loading a web page; enable_browser_rendering loads styles, images, fonts, animations, videos, and other resources on a page; default value: false set to true to obtain Core Web Vitals (FID, CLS, LCP) metrics in the response; if you use this field, parameters enable_javascript, and load_resources are enabled automatically; Note: if you use this parameter, additional charges will apply; learn more about the cost of tasks with this parameter in our help article; the cost can be calculated on the Pricing Page
body[].enable_javascript boolean · Optional

Parent object: body[]

load javascript on a page optional field set to true if you want to load the scripts available on a page default value: false Note: if you use this parameter, additional charges will apply; learn more about the cost of tasks with this parameter in our help article; the cost can be calculated on the Pricing Page
body[].enable_xhr boolean · Optional

Parent object: body[]

enable XMLHttpRequest on a page optional field set to true if you want our crawler to request data from a web server using the XMLHttpRequest object default value: falseif you use this field, enable_javascript must be set to true;
body[].ip_pool_for_scan string · Optional

Parent object: body[]

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
body[].load_resources boolean · Optional

Parent object: body[]

load resources optional field set to true if you want to load image, stylesheets, scripts, and broken resources default value: false Note: if you use this parameter, additional charges will apply; learn more about the cost of tasks with this parameter in our help article; the cost can be calculated on the Pricing Page
body[].return_despite_timeout boolean · Optional

Parent object: body[]

return data on pages despite the timeout error optional field if true, the data will be provided on pages that failed to load within 120 seconds and responded with a timeout error; default value: false
body[].store_raw_html boolean · Optional

Parent object: body[]

store HTML of a crawled page optional field set to true if you want get the HTML of the page using the OnPage Raw HTML endpoint default value: false
body[].switch_pool boolean · Optional

Parent object: body[]

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
body[].url string · Required

Parent object: body[]

target page url required field absolute URL of the target page; Note #1: results will be returned for the specified URL only; Note #2: to prevent denial-of-service events, tasks that contain a duplicate crawl host will be returned with a 40501 error; to prevent this error from occurring, avoid setting tasks with the same domain if at least one of your previous tasks with this domain (including a page URL on the domain) is still in a crawling queue
body[].validate_micromarkup boolean · Optional

Parent object: body[]

enable microdata validation optional field if set to true, you can use the OnPage API Microdata endpoint with the id of the task; default value: false

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.

Official example · 官方历史成对样例(未运行)
{
  "cost": 0.000125,
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "cost": 0.000125,
      "data": {
        "api": "on_page",
        "custom_js": "meta = {}; meta.url = document.URL; meta;",
        "function": "instant_pages",
        "url": "https://dataforseo.com/blog"
      },
      "id": "02261721-0696-0275-0000-c6fbc6685a5b",
      "path": [
        "v3",
        "on_page",
        "instant_pages"
      ],
      "result": [
        {
          "crawl_progress": "finished",
          "items": [
            {
              "broken_links": false,
              "broken_resources": false,
              "cache_control": {
                "cachable": false,
                "ttl": 0
              },
              "checks": {
                "canonical": true,
                "deprecated_html_tags": false,
                "duplicate_meta_tags": true,
                "duplicate_title_tag": false,
                "flash": false,
                "frame": true,
                "has_html_doctype": true,
                "has_meta_refresh_redirect": false,
                "has_render_blocking_resources": true,
                "high_character_count": false,
                "high_content_rate": false,
                "high_loading_time": false,
                "high_waiting_time": false,
                "https_to_http_links": false,
                "irrelevant_description": false,
                "irrelevant_meta_keywords": false,
                "irrelevant_title": false,
                "is_4xx_code": false,
                "is_5xx_code": false,
                "is_broken": false,
                "is_http": false,
                "is_https": true,
                "is_redirect": false,
                "is_www": false,
                "large_page_size": false,
                "lorem_ipsum": false,
                "low_character_count": false,
                "low_content_rate": true,
                "low_readability_rate": false,
                "meta_charset_consistency": true,
                "no_content_encoding": false,
                "no_description": true,
                "no_doctype": false,
                "no_encoding_meta_tag": false,
                "no_favicon": false,
                "no_h1_tag": false,
                "no_image_alt": false,
                "no_image_title": true,
                "no_title": false,
                "redirect_chain": false,
                "seo_friendly_url": true,
                "seo_friendly_url_characters_check": true,
                "seo_friendly_url_dynamic_check": true,
                "seo_friendly_url_keywords_check": true,
                "seo_friendly_url_relative_length_check": true,
                "size_greater_than_3mb": false,
                "small_page_size": false,
                "title_too_long": false,
                "title_too_short": false
              },
              "click_depth": 0,
              "content_encoding": "gzip",
              "custom_js_response": {
                "url": "https://dataforseo.com/blog"
              },
              "duplicate_content": false,
              "duplicate_description": false,
              "duplicate_title": false,
              "encoded_size": 20446,
              "fetch_time": "2021-02-26 17:21:41 +00:00",
              "is_resource": false,
              "location": null,
              "media_type": "text/html",
              "meta": {
                "broken_html": {
                  "errors": null,
                  "warnings": [
                    {
                      "line": 0,
                      "message": "Has node with more than 60 childs."
                    },
                    {
                      "line": 0,
                      "message": "Has more that 1500 nodes."
                    }
                  ]
                },
                "canonical": "https://dataforseo.com/blog",
                "charset": 65001,
                "content": {
                  "automated_readability_index": 8.13152777777778,
                  "coleman_liau_readability_index": null,
                  "dale_chall_readability_index": 7.313126984126985,
                  "description_to_content_consistency": null,
                  "flesch_kincaid_readability_index": 55.072857142857146,
                  "meta_keywords_to_content_consistency": null,
                  "plain_text_rate": 0.012864701790585164,
                  "plain_text_size": 1646,
                  "plain_text_word_count": 280,
                  "smog_readability_index": 17.631426480028413,
                  "title_to_content_consistency": 0.5
                },
                "deprecated_tags": null,
                "description": null,
                "description_length": 0,
                "duplicate_meta_tags": [
                  "generator"
                ],
                "external_links_count": 11,
                "favicon": "https://dataforseo.com/wp-content/uploads/2016/11/cropped-Favicon_512-32x32.png",
                "follow": true,
                "generator": "Powered by Slider Revolution 5.2.6 - responsive, Mobile-Friendly Slider Plugin for WordPress with comfortable drag and drop interface.",
                "htags": {
                  "h1": [
                    "Blog"
                  ],
                  "h2": [
                    "How to Get Historical Search Volume for Predictive Keyword Research",
                    "DataForSEO January Digest: All the Updates You Don’t Want to Miss!",
                    "How To Extract Blog Metadata Using JavaScript And On-Page API",
                    "Twinword Wins 35% More Paid Customers After Switching To DataForSEO APIs",
                    "Your Powerful Alternative To Google Search Console API",
                    "How to Use Bing Search Volume to Fine-Sharpen Keyword Research",
                    "How to Measure Search Visibility if Rank Tracking Doesn’t Do the Job",
                    "Tap into the World of Local Market Opportunities with Business Data API",
                    "Who Your Potential Customers Are and What They Want From Your SEO Tool",
                    "SEO Data Collection: DIY or API?"
                  ],
                  "h4": [
                    "Products",
                    "By industry",
                    "By company type",
                    "Docs",
                    "Resources",
                    "Login",
                    "Categories",
                    "APIs",
                    "About",
                    "Legal information",
                    "Follow us on:",
                    "Payment Methods:"
                  ]
                },
                "images_count": 15,
                "images_size": 0,
                "inbound_links_count": 0,
                "internal_links_count": 84,
                "meta_keywords": null,
                "render_blocking_scripts_count": 19,
                "render_blocking_stylesheets_count": 16,
                "scripts_count": 36,
                "scripts_size": 0,
                "social_media_tags": {
                  "article:modified_time": "2018-11-29",
                  "article:published_time": "2017-05-11",
                  "fb:app_id": "979971002139459",
                  "og:site_name": "API for SEO-software companies and agencies",
                  "og:title": "Blog",
                  "og:type": "article",
                  "og:url": "https://dataforseo.com/blog",
                  "twitter:card": "summary"
                },
                "spell": null,
                "stylesheets_count": 0,
                "stylesheets_size": 0,
                "title": "Blog | API for SEO-software companies and agencies",
                "title_length": 50
              },
              "page_timing": {
                "connection_time": 6,
                "dom_complete": 259,
                "download_time": 0,
                "duration_time": 259,
                "fetch_end": 259,
                "fetch_start": 0,
                "request_sent_time": 0,
                "time_to_interactive": 259,
                "time_to_secure_connection": 33,
                "waiting_time": 220
              },
              "resource_type": "html",
              "server": "nginx/1.10.1 (Ubuntu)",
              "size": 127985,
              "status_code": 200,
              "total_dom_size": 127985,
              "total_transfer_size": 20957,
              "url": "https://dataforseo.com/blog"
            }
          ],
          "items_count": 1
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "2.3730 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "2.6282 sec.",
  "version": "0.1.20210129"
}

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000150. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
任务错误数必须为零$0.000000 / billing unitResponse · /tasks_error · Numeric valueAlways0 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.000150.

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
API Markdown
# DataForSEO — On Page / Instant Pages

Retrieve on Page Instant Pages with the DataForSEO API. The sample response includes URLs. Use it for search visibility research or technical SEO.
## Available implementations
DataForSEO · DataForSEO — On Page / Instant Pages: https://openany.si/markets/apis/capabilities/dataforseo-on-page-instant-pages?offering=b2bad808-d893-4cbb-9b6b-aac8d1122b21 · $0.00015 / call

## Selected API contract
Documentation: https://openany.si/apis/b2bad808-d893-4cbb-9b6b-aac8d1122b21
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/instant_pages
Price: $0.00015 / 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/instant_pages' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "custom_js": "meta = {}; meta.url = document.URL; meta;",
    "url": "https://dataforseo.com/blog"
  }
]'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "DataForSEO — On Page / Instant Pages",
  "endpoint": "https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/instant_pages",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Using this function you will get page-specific data with detailed information on how well a particular page is optimized for organic search. for more info please visit 'https://docs.dataforseo.com/v3/on_page/instant_pages/?bash'",
      "json_schema": {
        "example": [
          {
            "custom_js": "meta = {}; meta.url = document.URL; meta;",
            "enable_javascript": true,
            "url": "https://dataforseo.com/blog"
          }
        ],
        "items": {
          "example": [
            {
              "custom_js": "meta = {}; meta.url = document.URL; meta;",
              "enable_javascript": true,
              "url": "https://dataforseo.com/blog"
            }
          ],
          "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, pages will be returned with the \"type\":\"broken in the response array",
              "nullable": true,
              "type": "string",
              "x-original-openapi-description": "language header for accessing the websiteoptional fieldall 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, pages will be returned with the \"type\":\"broken in the response array",
              "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_factorpossible 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: to use this parameter, set enable_javascript or enable_browser_rendering to true",
              "nullable": true,
              "type": "string",
              "x-original-openapi-description": "preset for browser screen parametersoptional fieldif you use this field, you don't need to indicate browser_screen_width, browser_screen_height, browser_screen_scale_factorpossible values:desktop, mobile, tabletdesktop preset will apply the following values:browser_screen_width: 1920browser_screen_height: 1080browser_screen_scale_factor: 1mobile preset will apply the following values:browser_screen_width: 390browser_screen_height: 844browser_screen_scale_factor: 3tablet preset will apply the following values:browser_screen_width: 1024browser_screen_height: 1366browser_screen_scale_factor: 2Note: to use this parameter, set enable_javascript or enable_browser_rendering to true",
              "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; Note: to use this parameter, set enable_javascript or enable_browser_rendering to trueminimum value, in pixels: 240 maximum value, in pixels: 9999",
              "nullable": true,
              "type": "integer",
              "x-original-openapi-description": "browser screen heightoptional fieldyou 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;Note: to use this parameter, set enable_javascript or enable_browser_rendering to trueminimum value, in pixels: 240maximum value, in pixels: 9999",
              "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; Note: to use this parameter, set enable_javascript or enable_browser_rendering to trueminimum value: 0.5 maximum value: 3",
              "maximum": 3,
              "minimum": 0.5,
              "nullable": true,
              "type": "number",
              "x-constraints-from-official-description": [
                "maximum",
                "minimum"
              ],
              "x-original-openapi-description": "browser screen scale factoroptional fieldyou 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;Note: to use this parameter, set enable_javascript or enable_browser_rendering to trueminimum value: 0.5maximum value: 3",
              "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; Note: to use this parameter, set enable_javascript or enable_browser_rendering to trueminimum value, in pixels: 240 maximum value, in pixels: 9999",
              "format": "int64",
              "nullable": true,
              "type": "integer",
              "x-original-openapi-description": "browser screen widthoptional fieldyou 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;Note: to use this parameter, set enable_javascript or enable_browser_rendering to trueminimum value, in pixels: 240maximum value, in pixels: 9999",
              "x-required-status": "optional"
            },
            "check_spell": {
              "default": false,
              "description": "check spelling optional field set to true to check spelling on a website using Hunspell library default value: false",
              "nullable": true,
              "type": "boolean",
              "x-constraints-from-official-description": [
                "default"
              ],
              "x-original-openapi-description": "check spellingoptional fieldset to true to check spelling on a website using Hunspell librarydefault value: false",
              "x-required-status": "optional"
            },
            "checks_threshold": {
              "additionalProperties": {
                "format": "int64",
                "nullable": true,
                "type": "integer"
              },
              "description": "custom threshold values for checks optional field you can specify custom threshold values for the parameters included in the checks array of OnPage API responses; Note: only integer threshold values can be modified;",
              "nullable": true,
              "type": "object",
              "x-original-openapi-description": "custom threshold values for checksoptional fieldyou can specify custom threshold values for the parameters included in the checks array of OnPage API responses;Note: only integer threshold values can be modified;",
              "x-required-status": "optional"
            },
            "custom_js": {
              "description": "custom javascript optional field Note that the execution time for the script you enter here should be 700 ms maximum; for example, you can use the following JS snippet to check if the website contains Google Tag Manager as a scr attribute: let meta = { haveGoogleAnalytics: false, haveTagManager: false };rnfor (var i = 0; i < document.scripts.length; i++) {rn let src = document.scripts[i].getAttribute(\"src\");rn if (src != undefined) {rn if (src.indexOf(\"analytics.js\") >= 0)rn meta.haveGoogleAnalytics = true;rntif (src.indexOf(\"gtm.js\") >= 0)rn meta.haveTagManager = true;rn }rn}rnmeta;the returned value depends on what you specified in this field. For instance, if you specify the following script: meta = {}; meta.url = document.URL; meta.test = 'test'; meta; as a response you will receive the following data: \"custom_js_response\": { \"url\": \"https://dataforseo.com/\", \"test\": \"test\" }",
              "nullable": true,
              "type": "string",
              "x-original-openapi-description": "custom javascriptoptional fieldNote that the execution time for the script you enter here should be 700 ms maximum;for example, you can use the following JS snippet to check if the website contains Google Tag Manager as a scr attribute:let meta = { haveGoogleAnalytics: false, haveTagManager: false };rnfor (var i = 0; i < document.scripts.length; i++) {rn let src = document.scripts[i].getAttribute(\"src\");rn if (src != undefined) {rn if (src.indexOf(\"analytics.js\") >= 0)rn meta.haveGoogleAnalytics = true;rntif (src.indexOf(\"gtm.js\") >= 0)rn meta.haveTagManager = true;rn }rn}rnmeta;the returned value depends on what you specified in this field. For instance, if you specify the following script:meta = {}; meta.url = document.URL; meta.test = 'test'; meta;as a response you will receive the following data:\"custom_js_response\": {\"url\": \"https://dataforseo.com/\",\"test\": \"test\"}",
              "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-original-openapi-description": "custom user agentoptional fieldcustom user agent for crawling a websiteexample: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36default value: Mozilla/5.0 (compatible; RSiteAuditor)",
              "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-original-openapi-description": "disable the cookie popup optional fieldset to true if you want to disable the popup requesting cookie consent from the user;default value:false",
              "x-required-status": "optional"
            },
            "enable_browser_rendering": {
              "default": false,
              "description": "emulate browser rendering to measure Core Web Vitals optional field by using this parameter you will be able to emulate a browser when loading a web page; enable_browser_rendering loads styles, images, fonts, animations, videos, and other resources on a page; default value: false set to true to obtain Core Web Vitals (FID, CLS, LCP) metrics in the response; if you use this field, parameters enable_javascript, and load_resources are enabled automatically; Note: if you use this parameter, additional charges will apply; learn more about the cost of tasks with this parameter in our help article; the cost can be calculated on the Pricing Page",
              "nullable": true,
              "type": "boolean",
              "x-constraints-from-official-description": [
                "default"
              ],
              "x-original-openapi-description": "emulate browser rendering to measure Core Web Vitalsoptional fieldby using this parameter you will be able to emulate a browser when loading a web page;enable_browser_rendering loads styles, images, fonts, animations, videos, and other resources on a page;default value: falseset to true to obtain Core Web Vitals (FID, CLS, LCP) metrics in the response;if you use this field, parameters enable_javascript, and load_resources are enabled automatically;Note: if you use this parameter, additional charges will apply; learn more about the cost of tasks with this parameter in our help article; the cost can be calculated on the Pricing Page",
              "x-required-status": "optional"
            },
            "enable_javascript": {
              "default": false,
              "description": "load javascript on a page optional field set to true if you want to load the scripts available on a page default value: false Note: if you use this parameter, additional charges will apply; learn more about the cost of tasks with this parameter in our help article; the cost can be calculated on the Pricing Page",
              "nullable": true,
              "type": "boolean",
              "x-constraints-from-official-description": [
                "default"
              ],
              "x-original-openapi-description": "load javascript on a pageoptional fieldset to true if you want to load the scripts available on a pagedefault value: falseNote: if you use this parameter, additional charges will apply; learn more about the cost of tasks with this parameter in our help article; the cost can be calculated on the Pricing Page",
              "x-required-status": "optional"
            },
            "enable_xhr": {
              "default": false,
              "description": "enable XMLHttpRequest on a page optional field set to true if you want our crawler to request data from a web server using the XMLHttpRequest object default value: falseif you use this field, enable_javascript must be set to true;",
              "nullable": true,
              "type": "boolean",
              "x-constraints-from-official-description": [
                "default"
              ],
              "x-original-openapi-description": "enable XMLHttpRequest on a pageoptional fieldset to true if you want our crawler to request data from a web server using the XMLHttpRequest objectdefault value:falseif you use this field, enable_javascript must be set to true;",
              "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 pooloptional fieldyou 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 errorspossible values: us, de",
              "x-required-status": "optional"
            },
            "load_resources": {
              "default": false,
              "description": "load resources optional field set to true if you want to load image, stylesheets, scripts, and broken resources default value: false Note: if you use this parameter, additional charges will apply; learn more about the cost of tasks with this parameter in our help article; the cost can be calculated on the Pricing Page",
              "nullable": true,
              "type": "boolean",
              "x-constraints-from-official-description": [
                "default"
              ],
              "x-original-openapi-description": "load resourcesoptional fieldset to true if you want to load image, stylesheets, scripts, and broken resourcesdefault value: falseNote: if you use this parameter, additional charges will apply; learn more about the cost of tasks with this parameter in our help article; the cost can be calculated on the Pricing Page",
              "x-required-status": "optional"
            },
            "return_despite_timeout": {
              "default": false,
              "description": "return data on pages despite the timeout error optional field if true, the data will be provided on pages that failed to load within 120 seconds and responded with a timeout error; default value: false",
              "nullable": true,
              "type": "boolean",
              "x-constraints-from-official-description": [
                "default"
              ],
              "x-original-openapi-description": "return data on pages despite the timeout erroroptional fieldif true, the data will be provided on pages that failed to load within 120 seconds and responded with a timeout error;default value: false",
              "x-required-status": "optional"
            },
            "store_raw_html": {
              "default": false,
              "description": "store HTML of a crawled page optional field set to true if you want get the HTML of the page using the OnPage Raw HTML endpoint default value: false",
              "nullable": true,
              "type": "boolean",
              "x-constraints-from-official-description": [
                "default"
              ],
              "x-original-openapi-description": "store HTML of a crawled pageoptional fieldset to true if you want get the HTML of the page using the OnPage Raw HTML endpointdefault value: false",
              "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 pooloptional fieldif 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": "target page url required field absolute URL of the target page; Note #1: results will be returned for the specified URL only; Note #2: to prevent denial-of-service events, tasks that contain a duplicate crawl host will be returned with a 40501 error; to prevent this error from occurring, avoid setting tasks with the same domain if at least one of your previous tasks with this domain (including a page URL on the domain) is still in a crawling queue",
              "type": "string",
              "x-original-openapi-description": "target page urlrequired fieldabsolute URL of the target page;Note #1: results will be returned for the specified URL only;Note #2: to prevent denial-of-service events, tasks that contain a duplicate crawl host will be returned with a 40501 error;to prevent this error from occurring, avoid setting tasks with the same domain if at least one of your previous tasks with this domain (including a page URL on the domain) is still in a crawling queue",
              "x-required-status": "required"
            },
            "validate_micromarkup": {
              "default": false,
              "description": "enable microdata validation optional field if set to true, you can use the OnPage API Microdata endpoint with the id of the task; default value: false",
              "nullable": true,
              "type": "boolean",
              "x-constraints-from-official-description": [
                "default"
              ],
              "x-original-openapi-description": "enable microdata validationoptional fieldif set to true, you can use the OnPage API Microdata endpoint with the id of the task;default value: false",
              "x-required-status": "optional"
            }
          },
          "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": "150",
      "max_cost_micro_usd": "150",
      "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 · 官方历史成对样例(未运行)",
      "request": {
        "body": [
          {
            "custom_js": "meta = {}; meta.url = document.URL; meta;",
            "url": "https://dataforseo.com/blog"
          }
        ],
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "cost": 0.000125,
        "status_code": 20000,
        "status_message": "Ok.",
        "tasks": [
          {
            "cost": 0.000125,
            "data": {
              "api": "on_page",
              "custom_js": "meta = {}; meta.url = document.URL; meta;",
              "function": "instant_pages",
              "url": "https://dataforseo.com/blog"
            },
            "id": "02261721-0696-0275-0000-c6fbc6685a5b",
            "path": [
              "v3",
              "on_page",
              "instant_pages"
            ],
            "result": [
              {
                "crawl_progress": "finished",
                "items": [
                  {
                    "broken_links": false,
                    "broken_resources": false,
                    "cache_control": {
                      "cachable": false,
                      "ttl": 0
                    },
                    "checks": {
                      "canonical": true,
                      "deprecated_html_tags": false,
                      "duplicate_meta_tags": true,
                      "duplicate_title_tag": false,
                      "flash": false,
                      "frame": true,
                      "has_html_doctype": true,
                      "has_meta_refresh_redirect": false,
                      "has_render_blocking_resources": true,
                      "high_character_count": false,
                      "high_content_rate": false,
                      "high_loading_time": false,
                      "high_waiting_time": false,
                      "https_to_http_links": false,
                      "irrelevant_description": false,
                      "irrelevant_meta_keywords": false,
                      "irrelevant_title": false,
                      "is_4xx_code": false,
                      "is_5xx_code": false,
                      "is_broken": false,
                      "is_http": false,
                      "is_https": true,
                      "is_redirect": false,
                      "is_www": false,
                      "large_page_size": false,
                      "lorem_ipsum": false,
                      "low_character_count": false,
                      "low_content_rate": true,
                      "low_readability_rate": false,
                      "meta_charset_consistency": true,
                      "no_content_encoding": false,
                      "no_description": true,
                      "no_doctype": false,
                      "no_encoding_meta_tag": false,
                      "no_favicon": false,
                      "no_h1_tag": false,
                      "no_image_alt": false,
                      "no_image_title": true,
                      "no_title": false,
                      "redirect_chain": false,
                      "seo_friendly_url": true,
                      "seo_friendly_url_characters_check": true,
                      "seo_friendly_url_dynamic_check": true,
                      "seo_friendly_url_keywords_check": true,
                      "seo_friendly_url_relative_length_check": true,
                      "size_greater_than_3mb": false,
                      "small_page_size": false,
                      "title_too_long": false,
                      "title_too_short": false
                    },
                    "click_depth": 0,
                    "content_encoding": "gzip",
                    "custom_js_response": {
                      "url": "https://dataforseo.com/blog"
                    },
                    "duplicate_content": false,
                    "duplicate_description": false,
                    "duplicate_title": false,
                    "encoded_size": 20446,
                    "fetch_time": "2021-02-26 17:21:41 +00:00",
                    "is_resource": false,
                    "location": null,
                    "media_type": "text/html",
                    "meta": {
                      "broken_html": {
                        "errors": null,
                        "warnings": [
                          {
                            "line": 0,
                            "message": "Has node with more than 60 childs."
                          },
                          {
                            "line": 0,
                            "message": "Has more that 1500 nodes."
                          }
                        ]
                      },
                      "canonical": "https://dataforseo.com/blog",
                      "charset": 65001,
                      "content": {
                        "automated_readability_index": 8.13152777777778,
                        "coleman_liau_readability_index": null,
                        "dale_chall_readability_index": 7.313126984126985,
                        "description_to_content_consistency": null,
                        "flesch_kincaid_readability_index": 55.072857142857146,
                        "meta_keywords_to_content_consistency": null,
                        "plain_text_rate": 0.012864701790585164,
                        "plain_text_size": 1646,
                        "plain_text_word_count": 280,
                        "smog_readability_index": 17.631426480028413,
                        "title_to_content_consistency": 0.5
                      },
                      "deprecated_tags": null,
                      "description": null,
                      "description_length": 0,
                      "duplicate_meta_tags": [
                        "generator"
                      ],
                      "external_links_count": 11,
                      "favicon": "https://dataforseo.com/wp-content/uploads/2016/11/cropped-Favicon_512-32x32.png",
                      "follow": true,
                      "generator": "Powered by Slider Revolution 5.2.6 - responsive, Mobile-Friendly Slider Plugin for WordPress with comfortable drag and drop interface.",
                      "htags": {
                        "h1": [
                          "Blog"
                        ],
                        "h2": [
                          "How to Get Historical Search Volume for Predictive Keyword Research",
                          "DataForSEO January Digest: All the Updates You Don’t Want to Miss!",
                          "How To Extract Blog Metadata Using JavaScript And On-Page API",
                          "Twinword Wins 35% More Paid Customers After Switching To DataForSEO APIs",
                          "Your Powerful Alternative To Google Search Console API",
                          "How to Use Bing Search Volume to Fine-Sharpen Keyword Research",
                          "How to Measure Search Visibility if Rank Tracking Doesn’t Do the Job",
                          "Tap into the World of Local Market Opportunities with Business Data API",
                          "Who Your Potential Customers Are and What They Want From Your SEO Tool",
                          "SEO Data Collection: DIY or API?"
                        ],
                        "h4": [
                          "Products",
                          "By industry",
                          "By company type",
                          "Docs",
                          "Resources",
                          "Login",
                          "Categories",
                          "APIs",
                          "About",
                          "Legal information",
                          "Follow us on:",
                          "Payment Methods:"
                        ]
                      },
                      "images_count": 15,
                      "images_size": 0,
                      "inbound_links_count": 0,
                      "internal_links_count": 84,
                      "meta_keywords": null,
                      "render_blocking_scripts_count": 19,
                      "render_blocking_stylesheets_count": 16,
                      "scripts_count": 36,
                      "scripts_size": 0,
                      "social_media_tags": {
                        "article:modified_time": "2018-11-29",
                        "article:published_time": "2017-05-11",
                        "fb:app_id": "979971002139459",
                        "og:site_name": "API for SEO-software companies and agencies",
                        "og:title": "Blog",
                        "og:type": "article",
                        "og:url": "https://dataforseo.com/blog",
                        "twitter:card": "summary"
                      },
                      "spell": null,
                      "stylesheets_count": 0,
                      "stylesheets_size": 0,
                      "title": "Blog | API for SEO-software companies and agencies",
                      "title_length": 50
                    },
                    "page_timing": {
                      "connection_time": 6,
                      "dom_complete": 259,
                      "download_time": 0,
                      "duration_time": 259,
                      "fetch_end": 259,
                      "fetch_start": 0,
                      "request_sent_time": 0,
                      "time_to_interactive": 259,
                      "time_to_secure_connection": 33,
                      "waiting_time": 220
                    },
                    "resource_type": "html",
                    "server": "nginx/1.10.1 (Ubuntu)",
                    "size": 127985,
                    "status_code": 200,
                    "total_dom_size": 127985,
                    "total_transfer_size": 20957,
                    "url": "https://dataforseo.com/blog"
                  }
                ],
                "items_count": 1
              }
            ],
            "result_count": 1,
            "status_code": 20000,
            "status_message": "Ok.",
            "time": "2.3730 sec."
          }
        ],
        "tasks_count": 1,
        "tasks_error": 0,
        "time": "2.6282 sec.",
        "version": "0.1.20210129"
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · 官方历史成对样例(未运行)

Example from the provider's documentation. Field values in your results will differ.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 function you will get page-specific data with detailed information on how well a particular page is optimized for organic search. for more info please visit 'https://docs.dataforseo.com/v3/on_page/instant_pages/?bash'
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/instant_pages' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '[
      {
        "custom_js": "meta = {}; meta.url = document.URL; meta;",
        "url": "https://dataforseo.com/blog"
      }
    ]'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "cost": 0.000125,
      "status_code": 20000,
      "status_message": "Ok.",
      "tasks": [
        {
          "cost": 0.000125,
          "data": {
            "api": "on_page",
            "custom_js": "meta = {}; meta.url = document.URL; meta;",
            "function": "instant_pages",
            "url": "https://dataforseo.com/blog"
          },
          "id": "02261721-0696-0275-0000-c6fbc6685a5b",
          "path": [
            "v3",
            "on_page",
            "instant_pages"
          ],
          "result": [
            {
              "crawl_progress": "finished",
              "items": [
                {
                  "broken_links": false,
                  "broken_resources": false,
                  "cache_control": {
                    "cachable": false,
                    "ttl": 0
                  },
                  "checks": {
                    "canonical": true,
                    "deprecated_html_tags": false,
                    "duplicate_meta_tags": true,
                    "duplicate_title_tag": false,
                    "flash": false,
                    "frame": true,
                    "has_html_doctype": true,
                    "has_meta_refresh_redirect": false,
                    "has_render_blocking_resources": true,
                    "high_character_count": false,
                    "high_content_rate": false,
                    "high_loading_time": false,
                    "high_waiting_time": false,
                    "https_to_http_links": false,
                    "irrelevant_description": false,
                    "irrelevant_meta_keywords": false,
                    "irrelevant_title": false,
                    "is_4xx_code": false,
                    "is_5xx_code": false,
                    "is_broken": false,
                    "is_http": false,
                    "is_https": true,
                    "is_redirect": false,
                    "is_www": false,
                    "large_page_size": false,
                    "lorem_ipsum": false,
                    "low_character_count": false,
                    "low_content_rate": true,
                    "low_readability_rate": false,
                    "meta_charset_consistency": true,
                    "no_content_encoding": false,
                    "no_description": true,
                    "no_doctype": false,
                    "no_encoding_meta_tag": false,
                    "no_favicon": false,
                    "no_h1_tag": false,
                    "no_image_alt": false,
                    "no_image_title": true,
                    "no_title": false,
                    "redirect_chain": false,
                    "seo_friendly_url": true,
                    "seo_friendly_url_characters_check": true,
                    "seo_friendly_url_dynamic_check": true,
                    "seo_friendly_url_keywords_check": true,
                    "seo_friendly_url_relative_length_check": true,
                    "size_greater_than_3mb": false,
                    "small_page_size": false,
                    "title_too_long": false,
                    "title_too_short": false
                  },
                  "click_depth": 0,
                  "content_encoding": "gzip",
                  "custom_js_response": {
                    "url": "https://dataforseo.com/blog"
                  },
                  "duplicate_content": false,
                  "duplicate_description": false,
                  "duplicate_title": false,
                  "encoded_size": 20446,
                  "fetch_time": "2021-02-26 17:21:41 +00:00",
                  "is_resource": false,
                  "location": null,
                  "media_type": "text/html",
                  "meta": {
                    "broken_html": {
                      "errors": null,
                      "warnings": [
                        {
                          "line": 0,
                          "message": "Has node with more than 60 childs."
                        },
                        {
                          "line": 0,
                          "message": "Has more that 1500 nodes."
                        }
                      ]
                    },
                    "canonical": "https://dataforseo.com/blog",
                    "charset": 65001,
                    "content": {
                      "automated_readability_index": 8.13152777777778,
                      "coleman_liau_readability_index": null,
                      "dale_chall_readability_index": 7.313126984126985,
                      "description_to_content_consistency": null,
                      "flesch_kincaid_readability_index": 55.072857142857146,
                      "meta_keywords_to_content_consistency": null,
                      "plain_text_rate": 0.012864701790585164,
                      "plain_text_size": 1646,
                      "plain_text_word_count": 280,
                      "smog_readability_index": 17.631426480028413,
                      "title_to_content_consistency": 0.5
                    },
                    "deprecated_tags": null,
                    "description": null,
                    "description_length": 0,
                    "duplicate_meta_tags": [
                      "generator"
                    ],
                    "external_links_count": 11,
                    "favicon": "https://dataforseo.com/wp-content/uploads/2016/11/cropped-Favicon_512-32x32.png",
                    "follow": true,
                    "generator": "Powered by Slider Revolution 5.2.6 - responsive, Mobile-Friendly Slider Plugin for WordPress with comfortable drag and drop interface.",
                    "htags": {
                      "h1": [
                        "Blog"
                      ],
                      "h2": [
                        "How to Get Historical Search Volume for Predictive Keyword Research",
                        "DataForSEO January Digest: All the Updates You Don’t Want to Miss!",
                        "How To Extract Blog Metadata Using JavaScript And On-Page API",
                        "Twinword Wins 35% More Paid Customers After Switching To DataForSEO APIs",
                        "Your Powerful Alternative To Google Search Console API",
                        "How to Use Bing Search Volume to Fine-Sharpen Keyword Research",
                        "How to Measure Search Visibility if Rank Tracking Doesn’t Do the Job",
                        "Tap into the World of Local Market Opportunities with Business Data API",
                        "Who Your Potential Customers Are and What They Want From Your SEO Tool",
                        "SEO Data Collection: DIY or API?"
                      ],
                      "h4": [
                        "Products",
                        "By industry",
                        "By company type",
                        "Docs",
                        "Resources",
                        "Login",
                        "Categories",
                        "APIs",
                        "About",
                        "Legal information",
                        "Follow us on:",
                        "Payment Methods:"
                      ]
                    },
                    "images_count": 15,
                    "images_size": 0,
                    "inbound_links_count": 0,
                    "internal_links_count": 84,
                    "meta_keywords": null,
                    "render_blocking_scripts_count": 19,
                    "render_blocking_stylesheets_count": 16,
                    "scripts_count": 36,
                    "scripts_size": 0,
                    "social_media_tags": {
                      "article:modified_time": "2018-11-29",
                      "article:published_time": "2017-05-11",
                      "fb:app_id": "979971002139459",
                      "og:site_name": "API for SEO-software companies and agencies",
                      "og:title": "Blog",
                      "og:type": "article",
                      "og:url": "https://dataforseo.com/blog",
                      "twitter:card": "summary"
                    },
                    "spell": null,
                    "stylesheets_count": 0,
                    "stylesheets_size": 0,
                    "title": "Blog | API for SEO-software companies and agencies",
                    "title_length": 50
                  },
                  "page_timing": {
                    "connection_time": 6,
                    "dom_complete": 259,
                    "download_time": 0,
                    "duration_time": 259,
                    "fetch_end": 259,
                    "fetch_start": 0,
                    "request_sent_time": 0,
                    "time_to_interactive": 259,
                    "time_to_secure_connection": 33,
                    "waiting_time": 220
                  },
                  "resource_type": "html",
                  "server": "nginx/1.10.1 (Ubuntu)",
                  "size": 127985,
                  "status_code": 200,
                  "total_dom_size": 127985,
                  "total_transfer_size": 20957,
                  "url": "https://dataforseo.com/blog"
                }
              ],
              "items_count": 1
            }
          ],
          "result_count": 1,
          "status_code": 20000,
          "status_message": "Ok.",
          "time": "2.3730 sec."
        }
      ],
      "tasks_count": 1,
      "tasks_error": 0,
      "time": "2.6282 sec.",
      "version": "0.1.20210129"
    }

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 / Instant Pages with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.