OpenAny
Get API keyAPI Key
APIDataSearch & Research

dataforseo logo
DataForSEO Serp / Google / Organic / Live / Html API

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

Selected price
$0.002 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

DataForSEO Serp / Google / Organic / Live / Html API

Prepare your request, then continue with your agent.

Pricing

$0.002 / call

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

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
DataForSEO Serp / Google / Organic / Live / Html API

DataForSEO Serp / Google / Organic / Live / Html API

Retrieve serp Google Organic Live Html with the DataForSEO API. Provide JSON payload in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs body: body
Selected implementation dataforseo · DataForSEO — Serp / Google / Organic / Live / Html
Billing Follow the selected implementation pricing, billing unit, quantity and charge rules

What You Can Build

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

Documented Response Fields

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

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the JSON body and supported fields shown in the request template.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl \
  'https://api.openany.si/v1/agent-apis/dataforseo/v3/serp/google/organic/live/html' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "device": "mobile",
    "keyword": "rank checker",
    "language_name": "English",
    "location_name": "London,England,United Kingdom"
  }
]'

Request and Response Examples

The response illustration is a schema template, not a captured business response. Replace request placeholders and read actual returned values for your target resource.

Published DataForSEO Serp / Google / Organic / Live / Html API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

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

Request parameters
body* array
body[0]* object | null
keyword required field you can specify up to 700 characters in the keyword field all %## will be decoded (plus character '+' will be decoded to a space character) if you need to use the "%" character for your keyword, please specify it as "%25"; if you need to use the “+” character for your keyword, please specify it as “%2B”; if this field contains such parameters as 'allinanchor:', 'allintext:', 'allintitle:', 'allinurl:', ‘cache:’, 'define:', 'filetype:', 'id:', 'inanchor:', 'info:', 'intext:', 'intitle:', 'inurl:', 'link:', 'related:', 'site:', the charge per task will be multiplied by 5
Optional parameters (21)
parsing depth optional field number of results in SERP default value: 10 max value: 200 Your account will be billed per each SERP containing up to 10 results; Setting depth above 10 may result in additional charges if the search engine returns more than 10 results; The cost can be calculated on the Pricing page.
device type optional field return results for a specific device type can take the values: desktop, mobile default value: desktop
expand ai overview optional field set to true to expand the ai_overview item; default value: false
find_targets_in array | null
SERP element types to check for targets optional field to enable this parameter, stop_crawl_on_match must also be enabled specifies which SERP element types should be checked for target matches if not specified, all first-level elements with url and domain fields are checked for targets possible values: organic, paid, local_pack, featured_snippet, events, google_flights, images, jobs, knowledge_graph, local_service, map, scholarly_articles, third_party_reviews, twitter Note: cannot contain the same element types as ignore_targets_in example: "find_targets_in": ["organic", "featured_snippet"] learn more about this parameter on our Help Center
ignore_targets_in array | null
SERP element types to exclude from target search optional field to enable this parameter, stop_crawl_on_match must also be enabled specifies which SERP element types should be excluded when searching for target matches possible values: organic, paid, local_pack, featured_snippet, events, google_flights, images, jobs, knowledge_graph, local_service, map, scholarly_articles, third_party_reviews, twitter Note: cannot contain the same element types as find_targets_in example: "ignore_targets_in": ["paid", "images"] learn more about this parameter on our Help Center
search engine language code required field if you don't specify language_name if you use this field, you don't need to specify language_name you can receive the list of available languages of the search engine with their language_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages example: en
full name of search engine language required field if you don't specify language_code if you use this field, you don't need to specify language_code you can receive the list of available languages of the search engine with their language_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages example: English
load asynchronous ai overview optional field set to true to obtain ai_overview items is SERPs even if they are loaded asynchronously; if set to false, you will only obtain ai_overview items from cache; default value: false Note your account will be billed $0.002 extra for each request; if the element is absent or contains "asynchronous_ai_overview": false, all extra charges will be returned to your account balance
search engine location code required field if you don't specify location_name or location_coordinate if you use this field, you don't need to specify location_name or location_coordinate you can receive the list of available locations of the search engines with their location_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations example: 2840
GPS coordinates of a location required field if you don't specify location_name or location_code if you use this field, you don't need to specify location_name or location_code location_coordinate parameter should be specified in the "latitude,longitude,radius" format the maximum number of decimal digits for "latitude" and "longitude": 7 the minimum value for "radius": 199 (mm) the maximum value for "radius": 199999 (mm) example: 53.476225,-2.243572,200
full name of search engine location required field if you don't specify location_code or location_coordinate if you use this field, you don't need to specify location_code or location_coordinate you can receive the list of available locations of the search engine with their location_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations example: London,England,United Kingdom
target match type required field if stop_crawl_on_match is specified type of match for the match_value possible values: domain – specific domain or subdomain with_subdomains – main domain and subdomains wildcard – wildcard pattern
target domain, subdomain, or wildcard value required field if stop_crawl_on_match is specified specify a target domain, subdomain, or wildcard value; Note: domain or subdomain must be specified without a request protocol; example: "match_value": "dataforseo.com", "match_value": "/blog/post-*"
page crawl limit optional field number of search results pages to crawl max value: 100 Note: you will be charged for each page crawled (10 organic results per page); learn more about pricing on our Pricing page; Note#2: the max_crawl_pages and depth parameters complement each other; learn more at our help center
device operating system optional field if you specify desktop in the device field, choose from the following values: windows, macos default value: windows if you specify mobile in the device field, choose from the following values: android, ios default value: android
search engine domain optional field we choose the relevant search engine domain automatically according to the location and language you specify however, you can set a custom search engine domain in this field example: google.co.uk, google.com.au, google.de, etc.
additional parameters of the search query optional field get the list of available parameters and additional details here Note: the following search engine parameters are not supported and will be automatically unset if specified: lr, cr, as_qdr, as_sitesearch, as_occt, as_filetype.
stop_crawl_on_match array | null
array of targets to stop crawling optional field specified as an array of target objects each target object consists of one match_type field and one match_value field you can specify up to 10 target objects in this array if specified, the response will contain SERP results up to and including the specified match_value; example: "stop_crawl_on_match":[{"match_value":"dataforseo.com","match_type":"with_subdomains"}] learn more about this parameter on our Help Center Your account will be billed per each SERP crawled through the specified targets
user-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response
target matching mode optional field to enable this parameter, stop_crawl_on_match must also be enabled defines how the crawl should stop when multiple targets are specified in stop_crawl_on_match possible values: all, any all – the crawl stops only when all specified targets are found any – the crawl stops when any single target is found default value: any learn more about this parameter on our Help Center
direct URL of the search query optional field you can specify a direct URL and we will sort it out to the necessary fields. Note that this method is the most difficult for our API to process and also requires you to specify the exact language and location in the URL. In most cases, we wouldn’t recommend using this method. example: https://www.google.co.uk/search?q=%20rank%20tracker%20api&hl=en&gl=GB&uule=w+CAIQIFISCXXeIa8LoNhHEZkq1d1aOpZS Note: the following search engine parameters are not supported and will be automatically unset if specified in the URL: lr, cr, as_qdr, as_sitesearch, as_occt, as_filetype.
‌ Live SERP HTML provides a raw HTML page of search engine results for the specified keyword, search engine, and location.

Response template · not a real response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
DataForSEOCurrent
DataForSEO — Serp / Google / Organic / Live / Html · POST · View API reference
$0.002 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · DataForSEOUSD / call
Pricing
$0.002

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: 4. Price update time: not supplied.

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/dataforseo/v3/serp/google/organic/live/html
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

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

ParameterLocationTypeRequiredDescription
bodyJSON request bodybodyarrayYes

‌ Live SERP HTML provides a raw HTML page of search engine results for the specified keyword, search engine, and location.

minItems: 1 · maxItems: 1

Nested fields and variants

body[] · Array item · object

Nested fields and variants
body[].depth integer · Optional

Parent object: body[]

parsing depth optional field number of results in SERP default value: 10 max value: 200 Your account will be billed per each SERP containing up to 10 results; Setting depth above 10 may result in additional charges if the search engine returns more than 10 results; The cost can be calculated on the Pricing page.

maximum: 200

body[].device string · Optional

Parent object: body[]

device type optional field return results for a specific device type can take the values: desktop, mobile default value: desktop
body[].expand_ai_overview boolean · Optional

Parent object: body[]

expand ai overview optional field set to true to expand the ai_overview item; default value: false
body[].find_targets_in array · Optional

Parent object: body[]

SERP element types to check for targets optional field to enable this parameter, stop_crawl_on_match must also be enabled specifies which SERP element types should be checked for target matches if not specified, all first-level elements with url and domain fields are checked for targets possible values: organic, paid, local_pack, featured_snippet, events, google_flights, images, jobs, knowledge_graph, local_service, map, scholarly_articles, third_party_reviews, twitter Note: cannot contain the same element types as ignore_targets_in example: "find_targets_in": ["organic", "featured_snippet"] learn more about this parameter on our Help Center
Nested fields and variants

body[].find_targets_in[] · Array item · string

body[].ignore_targets_in array · Optional

Parent object: body[]

SERP element types to exclude from target search optional field to enable this parameter, stop_crawl_on_match must also be enabled specifies which SERP element types should be excluded when searching for target matches possible values: organic, paid, local_pack, featured_snippet, events, google_flights, images, jobs, knowledge_graph, local_service, map, scholarly_articles, third_party_reviews, twitter Note: cannot contain the same element types as find_targets_in example: "ignore_targets_in": ["paid", "images"] learn more about this parameter on our Help Center
Nested fields and variants

body[].ignore_targets_in[] · Array item · string

body[].keyword string · Required

Parent object: body[]

keyword required field you can specify up to 700 characters in the keyword field all %## will be decoded (plus character '+' will be decoded to a space character) if you need to use the "%" character for your keyword, please specify it as "%25"; if you need to use the “+” character for your keyword, please specify it as “%2B”; if this field contains such parameters as 'allinanchor:', 'allintext:', 'allintitle:', 'allinurl:', ‘cache:’, 'define:', 'filetype:', 'id:', 'inanchor:', 'info:', 'intext:', 'intitle:', 'inurl:', 'link:', 'related:', 'site:', the charge per task will be multiplied by 5
body[].language_code string · Optional

Parent object: body[]

search engine language code required field if you don't specify language_name if you use this field, you don't need to specify language_name you can receive the list of available languages of the search engine with their language_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages example: en
body[].language_name string · Optional

Parent object: body[]

full name of search engine language required field if you don't specify language_code if you use this field, you don't need to specify language_code you can receive the list of available languages of the search engine with their language_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages example: English
body[].load_async_ai_overview boolean · Optional

Parent object: body[]

load asynchronous ai overview optional field set to true to obtain ai_overview items is SERPs even if they are loaded asynchronously; if set to false, you will only obtain ai_overview items from cache; default value: false Note your account will be billed $0.002 extra for each request; if the element is absent or contains "asynchronous_ai_overview": false, all extra charges will be returned to your account balance
body[].location_code integer · Optional

Parent object: body[]

search engine location code required field if you don't specify location_name or location_coordinate if you use this field, you don't need to specify location_name or location_coordinate you can receive the list of available locations of the search engines with their location_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations example: 2840
body[].location_coordinate string · Optional

Parent object: body[]

GPS coordinates of a location required field if you don't specify location_name or location_code if you use this field, you don't need to specify location_name or location_code location_coordinate parameter should be specified in the "latitude,longitude,radius" format the maximum number of decimal digits for "latitude" and "longitude": 7 the minimum value for "radius": 199 (mm) the maximum value for "radius": 199999 (mm) example: 53.476225,-2.243572,200
body[].location_name string · Optional

Parent object: body[]

full name of search engine location required field if you don't specify location_code or location_coordinate if you use this field, you don't need to specify location_code or location_coordinate you can receive the list of available locations of the search engine with their location_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations example: London,England,United Kingdom
body[].match_type string · Optional

Parent object: body[]

target match type required field if stop_crawl_on_match is specified type of match for the match_value possible values: domain – specific domain or subdomain with_subdomains – main domain and subdomains wildcard – wildcard pattern
body[].match_value string · Optional

Parent object: body[]

target domain, subdomain, or wildcard value required field if stop_crawl_on_match is specified specify a target domain, subdomain, or wildcard value; Note: domain or subdomain must be specified without a request protocol; example: "match_value": "dataforseo.com", "match_value": "/blog/post-*"
body[].max_crawl_pages integer · Optional

Parent object: body[]

page crawl limit optional field number of search results pages to crawl max value: 100 Note: you will be charged for each page crawled (10 organic results per page); learn more about pricing on our Pricing page; Note#2: the max_crawl_pages and depth parameters complement each other; learn more at our help center

maximum: 100

body[].os string · Optional

Parent object: body[]

device operating system optional field if you specify desktop in the device field, choose from the following values: windows, macos default value: windows if you specify mobile in the device field, choose from the following values: android, ios default value: android
body[].se_domain string · Optional

Parent object: body[]

search engine domain optional field we choose the relevant search engine domain automatically according to the location and language you specify however, you can set a custom search engine domain in this field example: google.co.uk, google.com.au, google.de, etc.
body[].search_param string · Optional

Parent object: body[]

additional parameters of the search query optional field get the list of available parameters and additional details here Note: the following search engine parameters are not supported and will be automatically unset if specified: lr, cr, as_qdr, as_sitesearch, as_occt, as_filetype.
body[].stop_crawl_on_match array · Optional

Parent object: body[]

array of targets to stop crawling optional field specified as an array of target objects each target object consists of one match_type field and one match_value field you can specify up to 10 target objects in this array if specified, the response will contain SERP results up to and including the specified match_value; example: "stop_crawl_on_match":[{"match_value":"dataforseo.com","match_type":"with_subdomains"}] learn more about this parameter on our Help Center Your account will be billed per each SERP crawled through the specified targets
Nested fields and variants

body[].stop_crawl_on_match[] · Array item · object

Nested fields and variants
body[].stop_crawl_on_match[].match_type string · Optional

Parent object: body[].stop_crawl_on_match[]

target match type required field if stop_crawl_on_match is specified; type of match for the match_value possible values: domain, with_subdomains, wildcard
body[].stop_crawl_on_match[].match_value string · Optional

Parent object: body[].stop_crawl_on_match[]

arget domain or wildcard value required field if stop_crawl_on_match is specified; specify a target domain or wildcard value; Note: domain name must be specified without a request protocol; example: dataforseo.com
body[].tag string · Optional

Parent object: body[]

user-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response
body[].target_search_mode string · Optional

Parent object: body[]

target matching mode optional field to enable this parameter, stop_crawl_on_match must also be enabled defines how the crawl should stop when multiple targets are specified in stop_crawl_on_match possible values: all, any all – the crawl stops only when all specified targets are found any – the crawl stops when any single target is found default value: any learn more about this parameter on our Help Center
body[].url string · Optional

Parent object: body[]

direct URL of the search query optional field you can specify a direct URL and we will sort it out to the necessary fields. Note that this method is the most difficult for our API to process and also requires you to specify the exact language and location in the URL. In most cases, we wouldn’t recommend using this method. example: https://www.google.co.uk/search?q=%20rank%20tracker%20api&hl=en&gl=GB&uule=w+CAIQIFISCXXeIa8LoNhHEZkq1d1aOpZS Note: the following search engine parameters are not supported and will be automatically unset if specified in the URL: lr, cr, as_qdr, as_sitesearch, as_occt, as_filetype.

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

Response structure

Inferred from examples
  • costnumber
  • status_codeinteger
  • status_messagestring
  • tasksobject[]
    • costnumber
    • dataobject
      • apistring
      • devicestring
      • functionstring
      • keywordstring
      • language_namestring
      • location_namestring
      • osstring
      • sestring
      • se_typestring
    • idstring
    • pathstring[]
    • resultobject[]
      • datetimestring
      • itemsobject[]
        • datestring
        • htmlstring
        • pageinteger
      • items_countinteger
      • keywordstring
      • language_codestring
      • location_codeinteger
      • se_domainstring
      • typestring
    • result_countinteger
    • status_codeinteger
    • status_messagestring
    • timestring
  • tasks_countinteger
  • tasks_errorinteger
  • timestring
  • versionstring

Composite rule pricing

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

Base fee: $0.002000. 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.002000.

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.

Download MDView API Markdown

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

Documentation template · Minimal HTML; not run (abridged)

Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.

  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
    ‌ Live SERP HTML provides a raw HTML page of search engine results for the specified keyword, search engine, and location.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/dataforseo/v3/serp/google/organic/live/html' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '[
      {
        "device": "mobile",
        "keyword": "rank checker",
        "language_name": "English",
        "location_name": "London,England,United Kingdom"
      }
    ]'
  3. Check the response

    Response template · not a real response · Documented HTTP 200

    Response template · not a real response
    {
      "cost": 0.003,
      "status_code": 20000,
      "status_message": "Ok.",
      "tasks": [
        {
          "cost": 0.003,
          "data": {
            "api": "serp",
            "device": "mobile",
            "function": "live",
            "keyword": "rank checker",
            "language_name": "English",
            "location_name": "London,England,United Kingdom",
            "os": "android",
            "se": "google",
            "se_type": "organic"
          },
          "id": "12091540-1535-0140-0000-12504833856d",
          "path": [
            "v3",
            "serp",
            "google",
            "organic",
            "live",
            "html"
          ],
          "result": [
            {
              "datetime": "2021-12-09 13:40:45 +0000",
              "items": [
                {
                  "date": "2021-12-09T13:40:45.3814276Z",
                  "html": "<!doctype html><html itemscope=\"\" itemtype=\"http://schema.org/SearchResultsPage\" lang=\"en-GB\"></html>",
                  "page": 1
                }
              ],
              "items_count": 1,
              "keyword": "rank checker",
              "language_code": "en",
              "location_code": 1006886,
              "se_domain": "google.co.uk",
              "type": "organic"
            }
          ],
          "result_count": 1,
          "status_code": 20000,
          "status_message": "Ok.",
          "time": "10.0855 sec."
        }
      ],
      "tasks_count": 1,
      "tasks_error": 0,
      "time": "10.1183 sec.",
      "version": "0.1.20211130"
    }

Common questions

Which inputs identify this request?

Provide JSON payload in body (array). Keep identifiers and URLs in the formats documented for this implementation.

How should I structure the JSON body?

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

How should I map the returned fields?

Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

Can I reuse request parameters from another endpoint?

Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

Use DataForSEO Serp / Google / Organic / Live / Html API with your agent

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