APIDataSearch & Research

DataForSEO — Dataforseo Labs / Google / Serp Competitors / Live

Retrieve labs Google Serp Competitors Live with the DataForSEO API. The sample response includes keywords. Use it to audit or monitor a site’s search visibility.

Selected price
$0.012 base + $0.00012 / result Published pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

DataForSEO — Dataforseo Labs / Google / Serp Competitors / Live

Prepare your request, then continue with your agent.

Pricing

$0.012 base + $0.00012 / result

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

‌ This endpoint will provide you with a list of domains ranking for the keywords you specify. You will also get SERP rankings, rating, estimated traffic volume, and visibility values the provided domains gain from the specified keywords.

Sample response

{
  "cost": 0.0105,
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "cost": 0.0105,
      "data": {
        "api": "dataforseo_labs",
        "function": "serp_competitors",
        "item_types": [
          "organic"
        ],
        "keywords": [
          "phone"
        ],
        "language_name": "English",
        "limit": 5,
        "location_code": 2840,
        "se_type": "google"
      },
      "id": "03021604-0696-0383-0000-fd4825d68590",
      "path": [
        "v3",
        "dataforseo_labs",
        "google",
        "serp_competitors",
        "live"
      ],
      "result": [
        {
          "items": [
            {
              "avg_position": 1,
              "domain": "play.google.com",
              "etv": 111872,
              "keywords_count": 1,
              "keywords_positions": {
                "phone": [
                  1
                ]
              },
              "median_position": 1,
              "rating": 99,
              "relevant_serp_items": 1,
              "se_type": "google",
              "visibility": 1
            },
            {
              "avg_position": 2,
              "domain": "www.phone.com",
              "etv": 59616,
              "keywords_count": 1,
              "keywords_positions": {
                "phone": [
                  2
                ]
              },
              "median_position": 2,
              "rating": 98,
              "relevant_serp_items": 1,
              "se_type": "google",
              "visibility": 0.9
            },
            {
              "avg_position": 3,
              "domain": "www.t-mobile.com",
              "etv": 35806.4,
              "keywords_count": 1,
              "keywords_positions": {
                "phone": [
                  3
                ]
              },
              "median_position": 3,
              "rating": 97,
              "relevant_serp_items": 1,
              "se_type": "google",
              "visibility": 0.8
            },
            {
              "avg_position": 4,
              "domain": "www.cnet.com",
              "etv": 24251.2,
              "keywords_count": 1,
              "keywords_positions": {
                "phone": [
                  4
                ]
              },
              "median_position": 4,
              "rating": 96,
              "relevant_serp_items": 1,
              "se_type": "google",
              "visibility": 0.7
            },
            {
              "avg_position": 5,
              "domain": "www.pcmag.com",
              "etv": 17259.2,
              "keywords_count": 1,
              "keywords_positions": {
                "phone": [
                  5
                ]
              },
              "median_position": 5,
              "rating": 95,
              "relevant_serp_items": 1,
              "se_type": "google",
              "visibility": 0.6
            }
          ],
          "items_count": 5,
          "language_code": "en",
          "location_code": 2840,
          "se_type": "google",
          "seed_keywords": [
            "phone"
          ],
          "total_count": 86
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.0305 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "0.0779 sec.",
  "version": "0.1.20220216"
}

Response result

Response structure

Inferred from examples
  • costnumber
  • status_codeinteger
  • status_messagestring
  • tasksobject[]
    • costnumber
    • dataobject
      • apistring
      • functionstring
      • item_typesstring[]
      • keywordsstring[]
      • language_namestring
      • limitinteger
      • location_codeinteger
      • se_typestring
    • idstring
    • pathstring[]
    • resultobject[]
      • itemsobject[]
        • avg_positioninteger
        • domainstring
        • etvnumber
        • keywords_countinteger
        • keywords_positionsobject
          • phoneinteger[]
        • median_positioninteger
        • ratinginteger
        • relevant_serp_itemsinteger
        • se_typestring
        • visibilitynumber
      • items_countinteger
      • language_codestring
      • location_codeinteger
      • se_typestring
      • seed_keywordsstring[]
      • total_countinteger
    • result_countinteger
    • status_codeinteger
    • status_messagestring
    • timestring
  • tasks_countinteger
  • tasks_errorinteger
  • timestring
  • versionstring

Sellers

SellerPricingRequests · 30dPerformanceAccess
DataForSEOCurrent
DataForSEO — Dataforseo Labs / Google / Serp Competitors / Live · POST · View API reference
$0.012 base + $0.00012 / result—
—successP50—
Loading...
Selected pricing · DataForSEOUSD
Pricing
$0.012 base + $0.00012 / result

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/dataforseo_labs/google/serp_competitors/live
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/dataforseo/v3/dataforseo_labs/google/serp_competitors/live' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "item_types": [
      "organic"
    ],
    "keywords": [
      "phone"
    ],
    "language_name": "English",
    "limit": 5,
    "location_code": 2840
  }
]'

Input parameters

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

ParameterLocationTypeRequiredDescription
bodyJSON request bodybodyarrayYes‌ This endpoint will provide you with a list of domains ranking for the keywords you specify. You will also get SERP rankings, rating, estimated traffic volume, and visibility values the provided domains gain from the specified keywords.

minItems: 1 · maxItems: 1

Nested fields and variants

body[] · Array item · object

Nested fields and variants
body[].filters array · Optional

Parent object: body[]

array of results filtering parameters optional field you can add several filters at once (8 filters maximum) you should set a logical operator and, or between the conditions the following operators are supported: regex, not_regex, <, <=, >, >=, =, <>, in, not_in, match, not_match, ilike, not_ilike, like, not_like you can use the % operator with like and not_like, as well as ilike and not_ilike to match any string of zero or more characters example: ["median_position","in",[1,10]] [["median_position","in",[1,10]],"and",["domain","not_like","%wikipedia.org%"]] [["domain","not_like","%wikipedia.org%"], "and", [["relevant_serp_items",">",0],"or",["median_position","in",[1,10]]]] for more information about filters, please refer to Dataforseo Labs - Filters or this help center guide
body[].include_subdomains boolean · Optional

Parent object: body[]

indicates if the subdomains will be included in the search optional field if set to false, the subdomains will be ignored default value: true
body[].item_types array · Optional

Parent object: body[]

search results type indicates type of search results included in the response optional field possible values: ["organic", "paid", "featured_snippet", "local_pack"] default value: ["organic", "paid"]
Nested fields and variants

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

body[].keywords array · Required

Parent object: body[]

keywords array required field the results will be based on the keywords you specify in this array UTF-8 encoding; the keywords will be converted to lowercase format; you can specify the maximum of 200 keywords learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article
Nested fields and variants

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

body[].language_code string · Optional

Parent object: body[]

unique language identifier required field if you don't specify language_name Note: it is required to specify either language_name or language_code you can receive the list of available languages with their language_code parameters by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages example: en
body[].language_name string · Optional

Parent object: body[]

full name of the language required field if you don't specify language_code Note: it is required to specify either language_name or language_code you can receive the list of available languages with their language_name parameters by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages example: English
body[].limit integer · Optional

Parent object: body[]

the maximum number of returned domains optional field default value: 100 maximum value: 1000

maximum: 1000

body[].location_code integer · Optional

Parent object: body[]

unique location identifier required field if you don't specify location_name Note: it is required to specify either location_name or location_code you can receive the list of available locations with their location_code parameters by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages example: 2840
body[].location_name string · Optional

Parent object: body[]

full name of the location required field if you don't specify location_code Note: it is required to specify either location_name or location_code you can receive the list of available locations with location_name parameters by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages example: United Kingdom
body[].offset integer · Optional

Parent object: body[]

offset in the results array of returned domains optional field default value: 0 if you specify the 10 value, the first ten domains in the results array will be omitted and the data will be provided for the successive domains
body[].order_by array · Optional

Parent object: body[]

results sorting rules optional field you can use the same values as in the filters array to sort the results possible sorting types: asc - results will be sorted in the ascending order desc - results will be sorted in the descending order the comma is used as a separator example: ["avg_position,asc"] default rule: ["rating,desc"] note that you can set no more than three sorting rules in a single request you should use a comma to separate several sorting rules example: ["avg_position,asc","etv,desc"]
Nested fields and variants

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

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

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

Sample response

Sample response · Configured HTTP 200; actual status is unverified. Example from the provider's documentation. Field values in your results will differ.

Official example · 官方历史成对样例(未运行) (HTTP assumed)
{
  "cost": 0.0105,
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "cost": 0.0105,
      "data": {
        "api": "dataforseo_labs",
        "function": "serp_competitors",
        "item_types": [
          "organic"
        ],
        "keywords": [
          "phone"
        ],
        "language_name": "English",
        "limit": 5,
        "location_code": 2840,
        "se_type": "google"
      },
      "id": "03021604-0696-0383-0000-fd4825d68590",
      "path": [
        "v3",
        "dataforseo_labs",
        "google",
        "serp_competitors",
        "live"
      ],
      "result": [
        {
          "items": [
            {
              "avg_position": 1,
              "domain": "play.google.com",
              "etv": 111872,
              "keywords_count": 1,
              "keywords_positions": {
                "phone": [
                  1
                ]
              },
              "median_position": 1,
              "rating": 99,
              "relevant_serp_items": 1,
              "se_type": "google",
              "visibility": 1
            },
            {
              "avg_position": 2,
              "domain": "www.phone.com",
              "etv": 59616,
              "keywords_count": 1,
              "keywords_positions": {
                "phone": [
                  2
                ]
              },
              "median_position": 2,
              "rating": 98,
              "relevant_serp_items": 1,
              "se_type": "google",
              "visibility": 0.9
            },
            {
              "avg_position": 3,
              "domain": "www.t-mobile.com",
              "etv": 35806.4,
              "keywords_count": 1,
              "keywords_positions": {
                "phone": [
                  3
                ]
              },
              "median_position": 3,
              "rating": 97,
              "relevant_serp_items": 1,
              "se_type": "google",
              "visibility": 0.8
            },
            {
              "avg_position": 4,
              "domain": "www.cnet.com",
              "etv": 24251.2,
              "keywords_count": 1,
              "keywords_positions": {
                "phone": [
                  4
                ]
              },
              "median_position": 4,
              "rating": 96,
              "relevant_serp_items": 1,
              "se_type": "google",
              "visibility": 0.7
            },
            {
              "avg_position": 5,
              "domain": "www.pcmag.com",
              "etv": 17259.2,
              "keywords_count": 1,
              "keywords_positions": {
                "phone": [
                  5
                ]
              },
              "median_position": 5,
              "rating": 95,
              "relevant_serp_items": 1,
              "se_type": "google",
              "visibility": 0.6
            }
          ],
          "items_count": 5,
          "language_code": "en",
          "location_code": 2840,
          "se_type": "google",
          "seed_keywords": [
            "phone"
          ],
          "total_count": 86
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.0305 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "0.0779 sec.",
  "version": "0.1.20220216"
}

Composite rule pricing

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

Base fee: $0.012000. 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
本次返回结果$0.000120 / resultResponse · /tasks/0/result/0/items_count · Numeric valueAlways1000 result · 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.132000.

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 — Dataforseo Labs / Google / Serp Competitors / Live

Retrieve labs Google Serp Competitors Live with the DataForSEO API. The sample response includes keywords. Use it to audit or monitor a site’s search visibility.
## Available implementations
DataForSEO · DataForSEO — Dataforseo Labs / Google / Serp Competitors / Live: https://openany.si/markets/apis/capabilities/dataforseo-dataforseo-labs-google-serp-competitors-live?offering=e24e1b8b-f5ae-48c5-a2e3-a80e982c59af · $0.012 base + $0.00012 / result

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/dataforseo-dataforseo-labs-google-serp-competitors-live
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/dataforseo/v3/dataforseo_labs/google/serp_competitors/live
Price: $0.012 base + $0.00012 / result
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/dataforseo_labs/google/serp_competitors/live' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "item_types": [
      "organic"
    ],
    "keywords": [
      "phone"
    ],
    "language_name": "English",
    "limit": 5,
    "location_code": 2840
  }
]'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "DataForSEO — Dataforseo Labs / Google / Serp Competitors / Live",
  "endpoint": "https://api.openany.si/v1/agent-apis/dataforseo/v3/dataforseo_labs/google/serp_competitors/live",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "‌ This endpoint will provide you with a list of domains ranking for the keywords you specify. You will also get SERP rankings, rating, estimated traffic volume, and visibility values the provided domains gain from the specified keywords.",
      "json_schema": {
        "example": [
          {
            "item_types": [
              "organic"
            ],
            "keywords": [
              "phone"
            ],
            "language_name": "English",
            "limit": 5,
            "location_code": 2840
          }
        ],
        "items": {
          "example": [
            {
              "item_types": [
                "organic"
              ],
              "keywords": [
                "phone"
              ],
              "language_name": "English",
              "limit": 5,
              "location_code": 2840
            }
          ],
          "nullable": true,
          "properties": {
            "filters": {
              "allOf": [
                {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "items": false,
                          "maxItems": 3,
                          "minItems": 3,
                          "prefixItems": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "string"
                            },
                            {}
                          ],
                          "type": "array"
                        },
                        {
                          "items": {
                            "anyOf": [
                              {
                                "type": "array"
                              },
                              {
                                "enum": [
                                  "and",
                                  "or"
                                ],
                                "type": "string"
                              }
                            ]
                          },
                          "minItems": 1,
                          "type": "array"
                        }
                      ],
                      "description": "官方过滤器文档中的条件三元组或由 and/or 连接的条件数组;仅检查外层结构,嵌套数组、操作符和值的完整语义仍以官方文档为准。",
                      "x-coverage": "outer_structure_only_nested_operator_semantics_not_exhaustively_validated",
                      "x-schema-origin": "derived_from_official_filter_prose_and_examples"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              ],
              "description": "array of results filtering parameters optional field you can add several filters at once (8 filters maximum) you should set a logical operator and, or between the conditions the following operators are supported: regex, not_regex, <, <=, >, >=, =, <>, in, not_in, match, not_match, ilike, not_ilike, like, not_like you can use the % operator with like and not_like, as well as ilike and not_ilike to match any string of zero or more characters example: [\"median_position\",\"in\",[1,10]] [[\"median_position\",\"in\",[1,10]],\"and\",[\"domain\",\"not_like\",\"%wikipedia.org%\"]] [[\"domain\",\"not_like\",\"%wikipedia.org%\"], \"and\", [[\"relevant_serp_items\",\">\",0],\"or\",[\"median_position\",\"in\",[1,10]]]] for more information about filters, please refer to Dataforseo Labs - Filters or this help center guide",
              "nullable": true,
              "type": "array",
              "x-original-openapi-description": "array of results filtering parameters optional field you can add several filters at once (8 filters maximum) you should set a logical operator and , or between the conditions the following operators are supported: regex , not_regex , < , <= , > , >= , = , <> , in , not_in , match , not_match , ilike , not_ilike , like , not_like you can use the % operator with like and not_like , as well as ilike and not_ilike to match any string of zero or more characters example: [\"median_position\",\"in\",[1,10]] [[\"median_position\",\"in\",[1,10]],\"and\",[\"domain\",\"not_like\",\"%wikipedia.org%\"]] [[\"domain\",\"not_like\",\"%wikipedia.org%\"], \"and\", [[\"relevant_serp_items\",\">\",0],\"or\",[\"median_position\",\"in\",[1,10]]]] for more information about filters, please refer to Dataforseo Labs - Filters or this help center guide",
              "x-required-status": "optional",
              "x-schema-origin": "official_filter_prose_normalized"
            },
            "include_subdomains": {
              "default": true,
              "description": "indicates if the subdomains will be included in the search optional field if set to false, the subdomains will be ignored default value: true",
              "nullable": true,
              "type": "boolean",
              "x-constraints-from-official-description": [
                "default"
              ],
              "x-original-openapi-description": "indicates if the subdomains will be included in the search optional field if set to false , the subdomains will be ignored default value: true",
              "x-required-status": "optional"
            },
            "item_types": {
              "description": "search results type indicates type of search results included in the response optional field possible values: [\"organic\", \"paid\", \"featured_snippet\", \"local_pack\"] default value: [\"organic\", \"paid\"]",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array",
              "x-required-status": "optional"
            },
            "keywords": {
              "description": "keywords array required field the results will be based on the keywords you specify in this array UTF-8 encoding; the keywords will be converted to lowercase format; you can specify the maximum of 200 keywords learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-required-status": "required"
            },
            "language_code": {
              "description": "unique language identifier required field if you don't specify language_name Note: it is required to specify either language_name or language_code you can receive the list of available languages with their language_code parameters by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages example: en",
              "nullable": true,
              "type": "string",
              "x-required-status": "conditional"
            },
            "language_name": {
              "description": "full name of the language required field if you don't specify language_code Note: it is required to specify either language_name or language_code you can receive the list of available languages with their language_name parameters by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages example: English",
              "type": "string",
              "x-required-status": "conditional"
            },
            "limit": {
              "default": 100,
              "description": "the maximum number of returned domains optional field default value: 100 maximum value: 1000",
              "maximum": 1000,
              "nullable": true,
              "type": "integer",
              "x-constraints-from-official-description": [
                "default",
                "maximum"
              ],
              "x-required-status": "optional"
            },
            "location_code": {
              "description": "unique location identifier required field if you don't specify location_name Note: it is required to specify either location_name or location_code you can receive the list of available locations with their location_code parameters by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages example: 2840",
              "type": "integer",
              "x-required-status": "conditional"
            },
            "location_name": {
              "description": "full name of the location required field if you don't specify location_code Note: it is required to specify either location_name or location_code you can receive the list of available locations with location_name parameters by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages example: United Kingdom",
              "type": "string",
              "x-required-status": "conditional"
            },
            "offset": {
              "default": 0,
              "description": "offset in the results array of returned domains optional field default value: 0 if you specify the 10 value, the first ten domains in the results array will be omitted and the data will be provided for the successive domains",
              "nullable": true,
              "type": "integer",
              "x-constraints-from-official-description": [
                "default"
              ],
              "x-required-status": "optional"
            },
            "order_by": {
              "description": "results sorting rules optional field you can use the same values as in the filters array to sort the results possible sorting types: asc - results will be sorted in the ascending order desc - results will be sorted in the descending order the comma is used as a separator example: [\"avg_position,asc\"] default rule: [\"rating,desc\"] note that you can set no more than three sorting rules in a single request you should use a comma to separate several sorting rules example: [\"avg_position,asc\",\"etv,desc\"]",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array",
              "x-required-status": "optional"
            },
            "tag": {
              "description": "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",
              "nullable": true,
              "type": "string",
              "x-required-status": "optional"
            }
          },
          "required": [
            "keywords"
          ],
          "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_plus_explicit_official_doc_amendments"
      },
      "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": "12000",
      "max_cost_micro_usd": "132000",
      "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"
        },
        {
          "id": "returned_results",
          "label": "本次返回结果",
          "max_quantity": "1000",
          "measure": "value",
          "pointer": "/tasks/0/result/0/items_count",
          "price_micro_usd": "120",
          "quantity_scale": 0,
          "source": "response",
          "unit": "result",
          "unit_quantity": "1"
        }
      ],
      "rounding": "ceil",
      "variants": []
    }
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Official example · 官方历史成对样例(未运行) (HTTP assumed)",
      "request": {
        "body": [
          {
            "item_types": [
              "organic"
            ],
            "keywords": [
              "phone"
            ],
            "language_name": "English",
            "limit": 5,
            "location_code": 2840
          }
        ],
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "cost": 0.0105,
        "status_code": 20000,
        "status_message": "Ok.",
        "tasks": [
          {
            "cost": 0.0105,
            "data": {
              "api": "dataforseo_labs",
              "function": "serp_competitors",
              "item_types": [
                "organic"
              ],
              "keywords": [
                "phone"
              ],
              "language_name": "English",
              "limit": 5,
              "location_code": 2840,
              "se_type": "google"
            },
            "id": "03021604-0696-0383-0000-fd4825d68590",
            "path": [
              "v3",
              "dataforseo_labs",
              "google",
              "serp_competitors",
              "live"
            ],
            "result": [
              {
                "items": [
                  {
                    "avg_position": 1,
                    "domain": "play.google.com",
                    "etv": 111872,
                    "keywords_count": 1,
                    "keywords_positions": {
                      "phone": [
                        1
                      ]
                    },
                    "median_position": 1,
                    "rating": 99,
                    "relevant_serp_items": 1,
                    "se_type": "google",
                    "visibility": 1
                  },
                  {
                    "avg_position": 2,
                    "domain": "www.phone.com",
                    "etv": 59616,
                    "keywords_count": 1,
                    "keywords_positions": {
                      "phone": [
                        2
                      ]
                    },
                    "median_position": 2,
                    "rating": 98,
                    "relevant_serp_items": 1,
                    "se_type": "google",
                    "visibility": 0.9
                  },
                  {
                    "avg_position": 3,
                    "domain": "www.t-mobile.com",
                    "etv": 35806.4,
                    "keywords_count": 1,
                    "keywords_positions": {
                      "phone": [
                        3
                      ]
                    },
                    "median_position": 3,
                    "rating": 97,
                    "relevant_serp_items": 1,
                    "se_type": "google",
                    "visibility": 0.8
                  },
                  {
                    "avg_position": 4,
                    "domain": "www.cnet.com",
                    "etv": 24251.2,
                    "keywords_count": 1,
                    "keywords_positions": {
                      "phone": [
                        4
                      ]
                    },
                    "median_position": 4,
                    "rating": 96,
                    "relevant_serp_items": 1,
                    "se_type": "google",
                    "visibility": 0.7
                  },
                  {
                    "avg_position": 5,
                    "domain": "www.pcmag.com",
                    "etv": 17259.2,
                    "keywords_count": 1,
                    "keywords_positions": {
                      "phone": [
                        5
                      ]
                    },
                    "median_position": 5,
                    "rating": 95,
                    "relevant_serp_items": 1,
                    "se_type": "google",
                    "visibility": 0.6
                  }
                ],
                "items_count": 5,
                "language_code": "en",
                "location_code": 2840,
                "se_type": "google",
                "seed_keywords": [
                  "phone"
                ],
                "total_count": 86
              }
            ],
            "result_count": 1,
            "status_code": 20000,
            "status_message": "Ok.",
            "time": "0.0305 sec."
          }
        ],
        "tasks_count": 1,
        "tasks_error": 0,
        "time": "0.0779 sec.",
        "version": "0.1.20220216"
      }
    }
  ]
}
```

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 · 官方历史成对样例(未运行) (HTTP assumed)

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
    ‌ This endpoint will provide you with a list of domains ranking for the keywords you specify. You will also get SERP rankings, rating, estimated traffic volume, and visibility values the provided domains gain from the specified keywords.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/dataforseo/v3/dataforseo_labs/google/serp_competitors/live' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '[
      {
        "item_types": [
          "organic"
        ],
        "keywords": [
          "phone"
        ],
        "language_name": "English",
        "limit": 5,
        "location_code": 2840
      }
    ]'
  3. Check the response

    Sample response · Configured HTTP 200; actual status is unverified.

    Sample response
    {
      "cost": 0.0105,
      "status_code": 20000,
      "status_message": "Ok.",
      "tasks": [
        {
          "cost": 0.0105,
          "data": {
            "api": "dataforseo_labs",
            "function": "serp_competitors",
            "item_types": [
              "organic"
            ],
            "keywords": [
              "phone"
            ],
            "language_name": "English",
            "limit": 5,
            "location_code": 2840,
            "se_type": "google"
          },
          "id": "03021604-0696-0383-0000-fd4825d68590",
          "path": [
            "v3",
            "dataforseo_labs",
            "google",
            "serp_competitors",
            "live"
          ],
          "result": [
            {
              "items": [
                {
                  "avg_position": 1,
                  "domain": "play.google.com",
                  "etv": 111872,
                  "keywords_count": 1,
                  "keywords_positions": {
                    "phone": [
                      1
                    ]
                  },
                  "median_position": 1,
                  "rating": 99,
                  "relevant_serp_items": 1,
                  "se_type": "google",
                  "visibility": 1
                },
                {
                  "avg_position": 2,
                  "domain": "www.phone.com",
                  "etv": 59616,
                  "keywords_count": 1,
                  "keywords_positions": {
                    "phone": [
                      2
                    ]
                  },
                  "median_position": 2,
                  "rating": 98,
                  "relevant_serp_items": 1,
                  "se_type": "google",
                  "visibility": 0.9
                },
                {
                  "avg_position": 3,
                  "domain": "www.t-mobile.com",
                  "etv": 35806.4,
                  "keywords_count": 1,
                  "keywords_positions": {
                    "phone": [
                      3
                    ]
                  },
                  "median_position": 3,
                  "rating": 97,
                  "relevant_serp_items": 1,
                  "se_type": "google",
                  "visibility": 0.8
                },
                {
                  "avg_position": 4,
                  "domain": "www.cnet.com",
                  "etv": 24251.2,
                  "keywords_count": 1,
                  "keywords_positions": {
                    "phone": [
                      4
                    ]
                  },
                  "median_position": 4,
                  "rating": 96,
                  "relevant_serp_items": 1,
                  "se_type": "google",
                  "visibility": 0.7
                },
                {
                  "avg_position": 5,
                  "domain": "www.pcmag.com",
                  "etv": 17259.2,
                  "keywords_count": 1,
                  "keywords_positions": {
                    "phone": [
                      5
                    ]
                  },
                  "median_position": 5,
                  "rating": 95,
                  "relevant_serp_items": 1,
                  "se_type": "google",
                  "visibility": 0.6
                }
              ],
              "items_count": 5,
              "language_code": "en",
              "location_code": 2840,
              "se_type": "google",
              "seed_keywords": [
                "phone"
              ],
              "total_count": 86
            }
          ],
          "result_count": 1,
          "status_code": 20000,
          "status_message": "Ok.",
          "time": "0.0305 sec."
        }
      ],
      "tasks_count": 1,
      "tasks_error": 0,
      "time": "0.0779 sec.",
      "version": "0.1.20220216"
    }

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 — Dataforseo Labs / Google / Serp Competitors / Live with your agent

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