APIDataSearch & Research

DataForSEO — Serp / Youtube / Organic / Live / Advanced

Retrieve serp Youtube Organic Live Advanced with the DataForSEO API. Review the selected endpoint’s request fields before calling. Use it to audit or monitor a site’s search visibility. Use the data to compare content across accounts or review audience feedback by video.

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

DataForSEO — Serp / Youtube / Organic / Live / Advanced

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
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[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”; learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article
Optional parameters (9)
parsing depth optional field number of blocks of results in SERP default value: 20 max value: 200 Note: your account will be billed per each SERP containing up to 20 results; thus, setting a block depth above 20 may result in additional charges if the search engine returns more than 20 results; if the specified block depth is higher than the number of results in the response, the difference will be refunded automatically to your account balance
device type optional field return results for a specific device type available values: desktop, mobile
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/youtube/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/youtube/languages example: English
search engine location code required field if you don't specify location_name if you use this field, you don't need to specify location_name 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/youtube/locations example: 2840
full name of search engine location required field if you don't specify location_code if you use this field, you don't need to specify location_code 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/youtube/locations example: United States
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
additional parameters of the search query optional field example: sp=EgIQAg%253D%253D
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
Live SERP provides real-time data on the top 20 blocks of YouTube search engine results. These results are specific to the selected location (see the List of Locations) and language (see the List of Languages) settings. for more info please visit 'https://docs.dataforseo.com/v3/serp/youtube/organic/live/advanced/'

Sample response

{
  "cost": 0.002,
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "cost": 0.002,
      "data": {
        "api": "serp",
        "device": "desktop",
        "function": "live",
        "keyword": "audi",
        "language_code": "en",
        "location_code": 2840,
        "os": "windows",
        "se": "youtube",
        "se_type": "organic"
      },
      "id": "12301655-1535-0139-0000-3376a75a8576",
      "path": [
        "v3",
        "serp",
        "youtube",
        "organic",
        "live",
        "advanced"
      ],
      "result": [
        {
          "check_url": "https://www.youtube.com/results?search_query=audi",
          "datetime": "2022-12-30 14:55:27 +00:00",
          "item_types": [
            "youtube_video",
            "youtube_channel",
            "youtube_playlist"
          ],
          "items": [
            {
              "badges": [
                "New",
                "4K"
              ],
              "block_name": null,
              "block_rank": 1,
              "channel_id": "UC2MrtVb1dT4FhcbOlW736kA",
              "channel_logo": "https://yt3.ggpht.com/R90alWqdmbF6Z_Hj6qZ3KaI7HDRMfFIfrdOgwLyXCii6GUuiW1YJs-2JDyRiDKoc8R-_X0nGPdQ=s68-c-k-c0x00ffffff-no-rj",
              "channel_name": "Redline Reviews",
              "channel_url": "https://www.youtube.com/@theredline",
              "description": "When you need an # Audi vehicle with 3-rows of seating, the #AudiQ7 is the only vehicle in the lineup that can fit that bill. For 2023 ...",
              "duration_time": "23:26",
              "duration_time_seconds": 1406,
              "highlighted": [
                "Audi"
              ],
              "is_live": false,
              "is_movie": null,
              "is_shorts": false,
              "publication_date": "43 minutes ago",
              "rank_absolute": 1,
              "rank_group": 1,
              "thumbnail_url": "https://i.ytimg.com/vi/lrPvFuz8Leg/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLC4RyEK7ntuK_hkLAMXOdFmcZNz6w",
              "timestamp": "2022-12-30 14:12:23 +00:00",
              "title": "The 2023 Audi Q7 55 TFSI Is An Ultra Quiet & Comfortable Luxury 3-Row SUV",
              "type": "youtube_video",
              "url": "https://www.youtube.com/watch?v=lrPvFuz8Leg",
              "video_id": "lrPvFuz8Leg",
              "views_count": 1004
            },
            {
              "block_name": null,
              "block_rank": 1,
              "channel_id": "UCO5ujNeWRIwP4DbCZqZWcLw",
              "description": "The official Audi YouTube Channel. From the beginning, advanced technology has been at the very heart of the Audi DNA.",
              "highlighted": [
                "Audi",
                "Audi"
              ],
              "is_verified": true,
              "logo": "https://yt3.googleusercontent.com/ytc/AMLnZu_iyn_apm6S6bi0P-nBUNil4mgAum9opQJGWeea=s176-c-k-c0x00ffffff-no-rj-mo",
              "name": "Audi",
              "rank_absolute": 9,
              "rank_group": 1,
              "type": "youtube_channel",
              "url": "https://www.youtube.com/@Audi",
              "video_count": 0
            },
            {
              "block_name": null,
              "block_rank": 3,
              "channel_id": "UCxaux2CGJvqAkGn5ohSQxdA",
              "channel_logo": null,
              "channel_name": "Tech Editing info Master",
              "channel_url": "https://www.youtube.com/channel/UCxaux2CGJvqAkGn5ohSQxdA",
              "playlist_id": "PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
              "preview_videos": [
                {
                  "duration_time": "10:08",
                  "duration_time_second": 608,
                  "title": "McQueen Car Assembly Surprise Soccer Ball | Street Vehicle with Learn Colors for Kids",
                  "url": "https://www.youtube.com/watch?v=i2mV0LApDTA&list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                  "video_id": "i2mV0LApDTA"
                },
                {
                  "duration_time": "2:01",
                  "duration_time_second": 121,
                  "title": "Learn Colors with Dump truck & Soccer Balls | Learning Videos for Children | Cartoons for Kids",
                  "url": "https://www.youtube.com/watch?v=-tAQGxcRaaI&list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                  "video_id": "-tAQGxcRaaI"
                }
              ],
              "rank_absolute": 3,
              "rank_group": 2,
              "thumbnail_url": "https://i.ytimg.com/vi/i2mV0LApDTA/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAbEK6cprhXavg6sjhL92EleU9O9w",
              "title": "McQueen Car Assembly Surprise Soccer Ball | Street Vehicle with Learn Colors for Kids",
              "type": "youtube_playlist",
              "url": "https://www.youtube.com/playlist?list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
              "videos_count": 81
            }
          ],
          "items_count": 65,
          "keyword": "audi",
          "language_code": "en",
          "location_code": 2840,
          "refinement_chips": null,
          "se_domain": "youtube.com",
          "se_results_count": 32629053,
          "spell": null
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "11.0339 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "11.0835 sec.",
  "version": "0.1.20221214"
}

Response result

Response structure

Inferred from examples
  • costnumber
  • status_codeinteger
  • status_messagestring
  • tasksobject[]
    • costnumber
    • dataobject
      • apistring
      • devicestring
      • functionstring
      • keywordstring
      • language_codestring
      • location_codeinteger
      • osstring
      • sestring
      • se_typestring
    • idstring
    • pathstring[]
    • resultobject[]
      • check_urlstring
      • datetimestring
      • item_typesstring[]
      • itemsobject[]
        • badgesstring[]
        • block_namenull
        • block_rankinteger
        • channel_idstring
        • channel_logostring | null
        • channel_namestring
        • channel_urlstring
        • descriptionstring
        • duration_timestring
        • duration_time_secondsinteger
        • highlightedstring[]
        • is_liveboolean
        • is_movienull
        • is_shortsboolean
        • publication_datestring
        • rank_absoluteinteger
        • rank_groupinteger
        • thumbnail_urlstring
        • timestampstring
        • titlestring
        • typestring
        • urlstring
        • video_idstring
        • views_countinteger
        • is_verifiedboolean
        • logostring
        • namestring
        • video_countinteger
        • playlist_idstring
        • preview_videosobject[]
          • duration_timestring
          • duration_time_secondinteger
          • titlestring
          • urlstring
          • video_idstring
        • videos_countinteger
      • items_countinteger
      • keywordstring
      • language_codestring
      • location_codeinteger
      • refinement_chipsnull
      • se_domainstring
      • se_results_countinteger
      • spellnull
    • result_countinteger
    • status_codeinteger
    • status_messagestring
    • timestring
  • tasks_countinteger
  • tasks_errorinteger
  • timestring
  • versionstring

Sellers

SellerPricingRequests · 30dPerformanceAccess
DataForSEOCurrent
DataForSEO — Serp / Youtube / Organic / Live / Advanced · POST · View API reference
$0.002 / call—
—successP50—
Loading...
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: 3. Price update time: not supplied.

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/dataforseo/v3/serp/youtube/organic/live/advanced
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/dataforseo/v3/serp/youtube/organic/live/advanced' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "keyword": "audi",
    "language_code": "en",
    "location_code": 2840
  }
]'

Input parameters

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

ParameterLocationTypeRequiredDescription
bodyJSON request bodybodyarrayYesLive SERP provides real-time data on the top 20 blocks of YouTube search engine results. These results are specific to the selected location (see the List of Locations) and language (see the List of Languages) settings. for more info please visit 'https://docs.dataforseo.com/v3/serp/youtube/organic/live/advanced/'

minItems: 1 · maxItems: 1

Nested fields and variants

body[] · Array item · object

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

Parent object: body[]

parsing depth optional field number of blocks of results in SERP default value: 20 max value: 200 Note: your account will be billed per each SERP containing up to 20 results; thus, setting a block depth above 20 may result in additional charges if the search engine returns more than 20 results; if the specified block depth is higher than the number of results in the response, the difference will be refunded automatically to your account balance

maximum: 200

body[].device string · Optional

Parent object: body[]

device type optional field return results for a specific device type available values: desktop, mobile
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”; learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article
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/youtube/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/youtube/languages example: English
body[].location_code integer · Optional

Parent object: body[]

search engine location code required field if you don't specify location_name if you use this field, you don't need to specify location_name 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/youtube/locations example: 2840
body[].location_name string · Optional

Parent object: body[]

full name of search engine location required field if you don't specify location_code if you use this field, you don't need to specify location_code 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/youtube/locations example: United States
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[].search_param string · Optional

Parent object: body[]

additional parameters of the search query optional field example: sp=EgIQAg%253D%253D
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.002,
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "cost": 0.002,
      "data": {
        "api": "serp",
        "device": "desktop",
        "function": "live",
        "keyword": "audi",
        "language_code": "en",
        "location_code": 2840,
        "os": "windows",
        "se": "youtube",
        "se_type": "organic"
      },
      "id": "12301655-1535-0139-0000-3376a75a8576",
      "path": [
        "v3",
        "serp",
        "youtube",
        "organic",
        "live",
        "advanced"
      ],
      "result": [
        {
          "check_url": "https://www.youtube.com/results?search_query=audi",
          "datetime": "2022-12-30 14:55:27 +00:00",
          "item_types": [
            "youtube_video",
            "youtube_channel",
            "youtube_playlist"
          ],
          "items": [
            {
              "badges": [
                "New",
                "4K"
              ],
              "block_name": null,
              "block_rank": 1,
              "channel_id": "UC2MrtVb1dT4FhcbOlW736kA",
              "channel_logo": "https://yt3.ggpht.com/R90alWqdmbF6Z_Hj6qZ3KaI7HDRMfFIfrdOgwLyXCii6GUuiW1YJs-2JDyRiDKoc8R-_X0nGPdQ=s68-c-k-c0x00ffffff-no-rj",
              "channel_name": "Redline Reviews",
              "channel_url": "https://www.youtube.com/@theredline",
              "description": "When you need an # Audi vehicle with 3-rows of seating, the #AudiQ7 is the only vehicle in the lineup that can fit that bill. For 2023 ...",
              "duration_time": "23:26",
              "duration_time_seconds": 1406,
              "highlighted": [
                "Audi"
              ],
              "is_live": false,
              "is_movie": null,
              "is_shorts": false,
              "publication_date": "43 minutes ago",
              "rank_absolute": 1,
              "rank_group": 1,
              "thumbnail_url": "https://i.ytimg.com/vi/lrPvFuz8Leg/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLC4RyEK7ntuK_hkLAMXOdFmcZNz6w",
              "timestamp": "2022-12-30 14:12:23 +00:00",
              "title": "The 2023 Audi Q7 55 TFSI Is An Ultra Quiet & Comfortable Luxury 3-Row SUV",
              "type": "youtube_video",
              "url": "https://www.youtube.com/watch?v=lrPvFuz8Leg",
              "video_id": "lrPvFuz8Leg",
              "views_count": 1004
            },
            {
              "block_name": null,
              "block_rank": 1,
              "channel_id": "UCO5ujNeWRIwP4DbCZqZWcLw",
              "description": "The official Audi YouTube Channel. From the beginning, advanced technology has been at the very heart of the Audi DNA.",
              "highlighted": [
                "Audi",
                "Audi"
              ],
              "is_verified": true,
              "logo": "https://yt3.googleusercontent.com/ytc/AMLnZu_iyn_apm6S6bi0P-nBUNil4mgAum9opQJGWeea=s176-c-k-c0x00ffffff-no-rj-mo",
              "name": "Audi",
              "rank_absolute": 9,
              "rank_group": 1,
              "type": "youtube_channel",
              "url": "https://www.youtube.com/@Audi",
              "video_count": 0
            },
            {
              "block_name": null,
              "block_rank": 3,
              "channel_id": "UCxaux2CGJvqAkGn5ohSQxdA",
              "channel_logo": null,
              "channel_name": "Tech Editing info Master",
              "channel_url": "https://www.youtube.com/channel/UCxaux2CGJvqAkGn5ohSQxdA",
              "playlist_id": "PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
              "preview_videos": [
                {
                  "duration_time": "10:08",
                  "duration_time_second": 608,
                  "title": "McQueen Car Assembly Surprise Soccer Ball | Street Vehicle with Learn Colors for Kids",
                  "url": "https://www.youtube.com/watch?v=i2mV0LApDTA&list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                  "video_id": "i2mV0LApDTA"
                },
                {
                  "duration_time": "2:01",
                  "duration_time_second": 121,
                  "title": "Learn Colors with Dump truck & Soccer Balls | Learning Videos for Children | Cartoons for Kids",
                  "url": "https://www.youtube.com/watch?v=-tAQGxcRaaI&list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                  "video_id": "-tAQGxcRaaI"
                }
              ],
              "rank_absolute": 3,
              "rank_group": 2,
              "thumbnail_url": "https://i.ytimg.com/vi/i2mV0LApDTA/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAbEK6cprhXavg6sjhL92EleU9O9w",
              "title": "McQueen Car Assembly Surprise Soccer Ball | Street Vehicle with Learn Colors for Kids",
              "type": "youtube_playlist",
              "url": "https://www.youtube.com/playlist?list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
              "videos_count": 81
            }
          ],
          "items_count": 65,
          "keyword": "audi",
          "language_code": "en",
          "location_code": 2840,
          "refinement_chips": null,
          "se_domain": "youtube.com",
          "se_results_count": 32629053,
          "spell": null
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "11.0339 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "11.0835 sec.",
  "version": "0.1.20221214"
}

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.

View API Markdown
API Markdown
# DataForSEO — Serp / Youtube / Organic / Live / Advanced

Retrieve serp Youtube Organic Live Advanced with the DataForSEO API. Review the selected endpoint’s request fields before calling. Use it to audit or monitor a site’s search visibility. Use the data to compare content across accounts or review audience feedback by video.
## Available implementations
DataForSEO · DataForSEO — Serp / Youtube / Organic / Live / Advanced: https://openany.si/markets/apis/capabilities/dataforseo-serp-youtube-organic-live-advanced?offering=c96ff196-d2d9-4907-a84f-4278fd5bf4d8 · $0.002 / call

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/dataforseo-serp-youtube-organic-live-advanced
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/dataforseo/v3/serp/youtube/organic/live/advanced
Price: $0.002 / 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/serp/youtube/organic/live/advanced' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "keyword": "audi",
    "language_code": "en",
    "location_code": 2840
  }
]'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "DataForSEO — Serp / Youtube / Organic / Live / Advanced",
  "endpoint": "https://api.openany.si/v1/agent-apis/dataforseo/v3/serp/youtube/organic/live/advanced",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Live SERP provides real-time data on the top 20 blocks of YouTube search engine results. These results are specific to the selected location (see the List of Locations) and language (see the List of Languages) settings. for more info please visit 'https://docs.dataforseo.com/v3/serp/youtube/organic/live/advanced/'",
      "json_schema": {
        "example": [
          {
            "keyword": "audi",
            "language_code": "en",
            "location_code": 2840
          }
        ],
        "items": {
          "example": [
            {
              "keyword": "audi",
              "language_code": "en",
              "location_code": 2840
            }
          ],
          "nullable": true,
          "properties": {
            "block_depth": {
              "default": 20,
              "description": "parsing depth optional field number of blocks of results in SERP default value: 20 max value: 200 Note: your account will be billed per each SERP containing up to 20 results; thus, setting a block depth above 20 may result in additional charges if the search engine returns more than 20 results; if the specified block depth is higher than the number of results in the response, the difference will be refunded automatically to your account balance",
              "maximum": 200,
              "nullable": true,
              "type": "integer",
              "x-constraints-from-official-description": [
                "default",
                "maximum"
              ],
              "x-required-status": "optional"
            },
            "device": {
              "description": "device type optional field return results for a specific device type available values: desktop, mobile",
              "nullable": true,
              "type": "string",
              "x-required-status": "optional"
            },
            "keyword": {
              "description": "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”; learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article",
              "type": "string",
              "x-required-status": "required"
            },
            "language_code": {
              "description": "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/youtube/languages example: en",
              "nullable": true,
              "type": "string",
              "x-required-status": "conditional"
            },
            "language_name": {
              "description": "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/youtube/languages example: English",
              "nullable": true,
              "type": "string",
              "x-required-status": "conditional"
            },
            "location_code": {
              "description": "search engine location code required field if you don't specify location_name if you use this field, you don't need to specify location_name 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/youtube/locations example: 2840",
              "nullable": true,
              "type": "integer",
              "x-required-status": "conditional"
            },
            "location_name": {
              "description": "full name of search engine location required field if you don't specify location_code if you use this field, you don't need to specify location_code 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/youtube/locations example: United States",
              "nullable": true,
              "type": "string",
              "x-required-status": "conditional"
            },
            "os": {
              "description": "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",
              "nullable": true,
              "type": "string",
              "x-required-status": "optional"
            },
            "search_param": {
              "description": "additional parameters of the search query optional field example: sp=EgIQAg%253D%253D",
              "nullable": true,
              "type": "string",
              "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": [
            "keyword"
          ],
          "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": "2000",
      "max_cost_micro_usd": "2000",
      "quantities": [
        {
          "id": "task_errors",
          "label": "任务错误数必须为零",
          "max_quantity": "0",
          "measure": "value",
          "pointer": "/tasks_error",
          "price_micro_usd": "0",
          "quantity_scale": 0,
          "source": "response",
          "unit": "task_error",
          "unit_quantity": "1"
        }
      ],
      "rounding": "ceil",
      "variants": []
    }
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Official example · 官方历史成对样例(未运行) (HTTP assumed)",
      "request": {
        "body": [
          {
            "keyword": "audi",
            "language_code": "en",
            "location_code": 2840
          }
        ],
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "cost": 0.002,
        "status_code": 20000,
        "status_message": "Ok.",
        "tasks": [
          {
            "cost": 0.002,
            "data": {
              "api": "serp",
              "device": "desktop",
              "function": "live",
              "keyword": "audi",
              "language_code": "en",
              "location_code": 2840,
              "os": "windows",
              "se": "youtube",
              "se_type": "organic"
            },
            "id": "12301655-1535-0139-0000-3376a75a8576",
            "path": [
              "v3",
              "serp",
              "youtube",
              "organic",
              "live",
              "advanced"
            ],
            "result": [
              {
                "check_url": "https://www.youtube.com/results?search_query=audi",
                "datetime": "2022-12-30 14:55:27 +00:00",
                "item_types": [
                  "youtube_video",
                  "youtube_channel",
                  "youtube_playlist"
                ],
                "items": [
                  {
                    "badges": [
                      "New",
                      "4K"
                    ],
                    "block_name": null,
                    "block_rank": 1,
                    "channel_id": "UC2MrtVb1dT4FhcbOlW736kA",
                    "channel_logo": "https://yt3.ggpht.com/R90alWqdmbF6Z_Hj6qZ3KaI7HDRMfFIfrdOgwLyXCii6GUuiW1YJs-2JDyRiDKoc8R-_X0nGPdQ=s68-c-k-c0x00ffffff-no-rj",
                    "channel_name": "Redline Reviews",
                    "channel_url": "https://www.youtube.com/@theredline",
                    "description": "When you need an # Audi vehicle with 3-rows of seating, the #AudiQ7 is the only vehicle in the lineup that can fit that bill. For 2023 ...",
                    "duration_time": "23:26",
                    "duration_time_seconds": 1406,
                    "highlighted": [
                      "Audi"
                    ],
                    "is_live": false,
                    "is_movie": null,
                    "is_shorts": false,
                    "publication_date": "43 minutes ago",
                    "rank_absolute": 1,
                    "rank_group": 1,
                    "thumbnail_url": "https://i.ytimg.com/vi/lrPvFuz8Leg/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLC4RyEK7ntuK_hkLAMXOdFmcZNz6w",
                    "timestamp": "2022-12-30 14:12:23 +00:00",
                    "title": "The 2023 Audi Q7 55 TFSI Is An Ultra Quiet & Comfortable Luxury 3-Row SUV",
                    "type": "youtube_video",
                    "url": "https://www.youtube.com/watch?v=lrPvFuz8Leg",
                    "video_id": "lrPvFuz8Leg",
                    "views_count": 1004
                  },
                  {
                    "block_name": null,
                    "block_rank": 1,
                    "channel_id": "UCO5ujNeWRIwP4DbCZqZWcLw",
                    "description": "The official Audi YouTube Channel. From the beginning, advanced technology has been at the very heart of the Audi DNA.",
                    "highlighted": [
                      "Audi",
                      "Audi"
                    ],
                    "is_verified": true,
                    "logo": "https://yt3.googleusercontent.com/ytc/AMLnZu_iyn_apm6S6bi0P-nBUNil4mgAum9opQJGWeea=s176-c-k-c0x00ffffff-no-rj-mo",
                    "name": "Audi",
                    "rank_absolute": 9,
                    "rank_group": 1,
                    "type": "youtube_channel",
                    "url": "https://www.youtube.com/@Audi",
                    "video_count": 0
                  },
                  {
                    "block_name": null,
                    "block_rank": 3,
                    "channel_id": "UCxaux2CGJvqAkGn5ohSQxdA",
                    "channel_logo": null,
                    "channel_name": "Tech Editing info Master",
                    "channel_url": "https://www.youtube.com/channel/UCxaux2CGJvqAkGn5ohSQxdA",
                    "playlist_id": "PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                    "preview_videos": [
                      {
                        "duration_time": "10:08",
                        "duration_time_second": 608,
                        "title": "McQueen Car Assembly Surprise Soccer Ball | Street Vehicle with Learn Colors for Kids",
                        "url": "https://www.youtube.com/watch?v=i2mV0LApDTA&list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                        "video_id": "i2mV0LApDTA"
                      },
                      {
                        "duration_time": "2:01",
                        "duration_time_second": 121,
                        "title": "Learn Colors with Dump truck & Soccer Balls | Learning Videos for Children | Cartoons for Kids",
                        "url": "https://www.youtube.com/watch?v=-tAQGxcRaaI&list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                        "video_id": "-tAQGxcRaaI"
                      }
                    ],
                    "rank_absolute": 3,
                    "rank_group": 2,
                    "thumbnail_url": "https://i.ytimg.com/vi/i2mV0LApDTA/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAbEK6cprhXavg6sjhL92EleU9O9w",
                    "title": "McQueen Car Assembly Surprise Soccer Ball | Street Vehicle with Learn Colors for Kids",
                    "type": "youtube_playlist",
                    "url": "https://www.youtube.com/playlist?list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                    "videos_count": 81
                  }
                ],
                "items_count": 65,
                "keyword": "audi",
                "language_code": "en",
                "location_code": 2840,
                "refinement_chips": null,
                "se_domain": "youtube.com",
                "se_results_count": 32629053,
                "spell": null
              }
            ],
            "result_count": 1,
            "status_code": 20000,
            "status_message": "Ok.",
            "time": "11.0339 sec."
          }
        ],
        "tasks_count": 1,
        "tasks_error": 0,
        "time": "11.0835 sec.",
        "version": "0.1.20221214"
      }
    }
  ]
}
```

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
    Live SERP provides real-time data on the top 20 blocks of YouTube search engine results. These results are specific to the selected location (see the List of Locations) and language (see the List of Languages) settings. for more info please visit 'https://docs.dataforseo.com/v3/serp/youtube/organic/live/advanced/'
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/dataforseo/v3/serp/youtube/organic/live/advanced' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '[
      {
        "keyword": "audi",
        "language_code": "en",
        "location_code": 2840
      }
    ]'
  3. Check the response

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

    Sample response
    {
      "cost": 0.002,
      "status_code": 20000,
      "status_message": "Ok.",
      "tasks": [
        {
          "cost": 0.002,
          "data": {
            "api": "serp",
            "device": "desktop",
            "function": "live",
            "keyword": "audi",
            "language_code": "en",
            "location_code": 2840,
            "os": "windows",
            "se": "youtube",
            "se_type": "organic"
          },
          "id": "12301655-1535-0139-0000-3376a75a8576",
          "path": [
            "v3",
            "serp",
            "youtube",
            "organic",
            "live",
            "advanced"
          ],
          "result": [
            {
              "check_url": "https://www.youtube.com/results?search_query=audi",
              "datetime": "2022-12-30 14:55:27 +00:00",
              "item_types": [
                "youtube_video",
                "youtube_channel",
                "youtube_playlist"
              ],
              "items": [
                {
                  "badges": [
                    "New",
                    "4K"
                  ],
                  "block_name": null,
                  "block_rank": 1,
                  "channel_id": "UC2MrtVb1dT4FhcbOlW736kA",
                  "channel_logo": "https://yt3.ggpht.com/R90alWqdmbF6Z_Hj6qZ3KaI7HDRMfFIfrdOgwLyXCii6GUuiW1YJs-2JDyRiDKoc8R-_X0nGPdQ=s68-c-k-c0x00ffffff-no-rj",
                  "channel_name": "Redline Reviews",
                  "channel_url": "https://www.youtube.com/@theredline",
                  "description": "When you need an # Audi vehicle with 3-rows of seating, the #AudiQ7 is the only vehicle in the lineup that can fit that bill. For 2023 ...",
                  "duration_time": "23:26",
                  "duration_time_seconds": 1406,
                  "highlighted": [
                    "Audi"
                  ],
                  "is_live": false,
                  "is_movie": null,
                  "is_shorts": false,
                  "publication_date": "43 minutes ago",
                  "rank_absolute": 1,
                  "rank_group": 1,
                  "thumbnail_url": "https://i.ytimg.com/vi/lrPvFuz8Leg/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLC4RyEK7ntuK_hkLAMXOdFmcZNz6w",
                  "timestamp": "2022-12-30 14:12:23 +00:00",
                  "title": "The 2023 Audi Q7 55 TFSI Is An Ultra Quiet & Comfortable Luxury 3-Row SUV",
                  "type": "youtube_video",
                  "url": "https://www.youtube.com/watch?v=lrPvFuz8Leg",
                  "video_id": "lrPvFuz8Leg",
                  "views_count": 1004
                },
                {
                  "block_name": null,
                  "block_rank": 1,
                  "channel_id": "UCO5ujNeWRIwP4DbCZqZWcLw",
                  "description": "The official Audi YouTube Channel. From the beginning, advanced technology has been at the very heart of the Audi DNA.",
                  "highlighted": [
                    "Audi",
                    "Audi"
                  ],
                  "is_verified": true,
                  "logo": "https://yt3.googleusercontent.com/ytc/AMLnZu_iyn_apm6S6bi0P-nBUNil4mgAum9opQJGWeea=s176-c-k-c0x00ffffff-no-rj-mo",
                  "name": "Audi",
                  "rank_absolute": 9,
                  "rank_group": 1,
                  "type": "youtube_channel",
                  "url": "https://www.youtube.com/@Audi",
                  "video_count": 0
                },
                {
                  "block_name": null,
                  "block_rank": 3,
                  "channel_id": "UCxaux2CGJvqAkGn5ohSQxdA",
                  "channel_logo": null,
                  "channel_name": "Tech Editing info Master",
                  "channel_url": "https://www.youtube.com/channel/UCxaux2CGJvqAkGn5ohSQxdA",
                  "playlist_id": "PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                  "preview_videos": [
                    {
                      "duration_time": "10:08",
                      "duration_time_second": 608,
                      "title": "McQueen Car Assembly Surprise Soccer Ball | Street Vehicle with Learn Colors for Kids",
                      "url": "https://www.youtube.com/watch?v=i2mV0LApDTA&list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                      "video_id": "i2mV0LApDTA"
                    },
                    {
                      "duration_time": "2:01",
                      "duration_time_second": 121,
                      "title": "Learn Colors with Dump truck & Soccer Balls | Learning Videos for Children | Cartoons for Kids",
                      "url": "https://www.youtube.com/watch?v=-tAQGxcRaaI&list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                      "video_id": "-tAQGxcRaaI"
                    }
                  ],
                  "rank_absolute": 3,
                  "rank_group": 2,
                  "thumbnail_url": "https://i.ytimg.com/vi/i2mV0LApDTA/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAbEK6cprhXavg6sjhL92EleU9O9w",
                  "title": "McQueen Car Assembly Surprise Soccer Ball | Street Vehicle with Learn Colors for Kids",
                  "type": "youtube_playlist",
                  "url": "https://www.youtube.com/playlist?list=PLeeA6TGUlbkZBi7TYks-CbPnFMsjjB5Be",
                  "videos_count": 81
                }
              ],
              "items_count": 65,
              "keyword": "audi",
              "language_code": "en",
              "location_code": 2840,
              "refinement_chips": null,
              "se_domain": "youtube.com",
              "se_results_count": 32629053,
              "spell": null
            }
          ],
          "result_count": 1,
          "status_code": 20000,
          "status_message": "Ok.",
          "time": "11.0339 sec."
        }
      ],
      "tasks_count": 1,
      "tasks_error": 0,
      "time": "11.0835 sec.",
      "version": "0.1.20221214"
    }

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 — Serp / Youtube / Organic / Live / Advanced with your agent

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