# Live YouTube Video Info Advanced

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/serp/youtube/video_info/live/advanced`

**Tags:** DataForSEO

Returns one YouTube video's metadata on YouTube, synchronously. Returns `keyword`, `type`, `se_domain`, `location_code`, `language_code`, `check_url`, `datetime`, `spell`, `refinement_chips`, `item_types`, `items_count` and `items`. `advanced` is the default choice; take `regular` when only the ranked list matters and `html` only to check what the parser dropped. Wrapped in DataForSEO's envelope: data in `tasks[0].result`, outcome in `tasks[0].status_code` - a rejected request still returns HTTP 200.

### Pricing reference

- Metering: Reported response cost.
- Reference request estimate: USD 0.006.
- Reference customer multiplier: 1.0. Do not apply it again to a settled customer amount.

Reference metadata only, not an account quote, a guaranteed price or a spending cap. Resource credits are not Felo credits. Final charges follow Felo billing records.

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "video_id": {
            "type": "string",
            "description": "ID of the video\nrequired field\nyou can find video ID in the URL or 'youtube_video' item of YouTube Organic result\nexample:\nvQXvyV0zIP4"
          },
          "location_code": {
            "type": [
              "integer",
              "null"
            ],
            "description": "search engine location code\nrequired field if you don't specify location_name \nif you use this field, you don't need to specify location_name\nyou 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\nexample:\n2840"
          },
          "language_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "search engine language code\nrequired field if you don't specify language_name\nif you use this field, you don't need to specify language_name\nyou 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\nexample:\nen"
          },
          "device": {
            "type": [
              "string",
              "null"
            ],
            "description": "device type\noptional field\nonly value: desktop"
          },
          "location_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "full name of search engine location\nrequired field if you don't specify location_code\nif you use this field, you don't need to specify location_code\nyou 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\nexample:\nUnited States"
          },
          "language_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "full name of search engine language\nrequired field if you don't specify language_code\nif you use this field, you don't need to specify language_code\nyou 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\nexample:\nEnglish"
          },
          "os": {
            "type": [
              "string",
              "null"
            ],
            "description": "device operating system\noptional field\nchoose from the following values: windows, macos\ndefault value: windows"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "user-defined task identifier\noptional field\nthe character limit is 255\nyou can use this parameter to identify the task and match it with the result\nyou will find the specified tag value in the data object of the response"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_code": 2840,
            "video_id": "vQXvyV0zIP4"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_code": 2840,
      "video_id": "vQXvyV0zIP4"
    }
  ]
}
```

## Responses

### 200 — Successful operation

Headers:
- `X-Request-Id` (string) — Request identifier to include when contacting Felo support.

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResponseInfo"
    }
  ]
}
```

### 400 — The request could not be processed. Check the request parameters.

### 401 — A valid Felo API key is required.

### 402 — The request cannot proceed because a billing requirement is not met.

### 403 — The account is not permitted to perform this operation.

### 429 — A request or spending limit has been reached.

### 502 — The service could not complete the request.

### 503 — The API or billing service is temporarily unavailable.

### 504 — The service timed out while processing the request.

### default — Error response; upstream passthrough responses may use provider formats

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "the current version of the API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "general status code\nyou can find the full list of the response codes here"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "general informational message\nyou can find the full list of general informational messages here"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "total execution time, seconds"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "total tasks cost, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "the number of tasks in the tasks array",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "the number of tasks in the tasks array returned with an error",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "task identifier\nunique task identifier in our system in the UUID format"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "status code of the task\ngenerated by DataForSEO, can be within the following range: 10000-60000\nyou can find the full list of the response codes here"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "informational message of the task\nyou can find the full list of general informational messages here"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "execution time, seconds"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "total tasks cost, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "number of elements in the result array",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "URL path"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "contains the same parameters that you specified in the POST request"
    }
  }
}
```

### Response36Afe1097B20_ChannelSubscribersCount

`#/components/schemas/Response36Afe1097B20_ChannelSubscribersCount`

```json
{
  "type": "object",
  "properties": {
    "displayed_count": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>displayed subscriber count</em><br>            subscriber count as displayed on YouTube"
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>subscriber count</em>",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedTaskInfo"
              }
            ]
          },
          "description": "array of tasks"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "video_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "ID of the video received in a POST array"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "search engine domain in a POST array"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "location code in a POST array"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "language code in a POST array"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "direct URL to search engine results\nyou can use it to make sure that we provided accurate results"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "date and time when the result was received\nin the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”\nexample:\n2019-11-15 12:57:46 +00:00"
    },
    "spell": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_SpellInfo"
        }
      ],
      "description": "autocorrection of the search engine\nif the search engine provided results for a keyword that was corrected, we will specify the keyword corrected by the search engine and the type of autocorrection"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "types of search results in SERP\ncontains types of search results (items) found in SERP.\npossible item:\nyoutube_video_info"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "the number of results returned in the items array",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_YoutubeVideoInfo"
          }
        ]
      },
      "description": "elements of search results found in SERP"
    }
  }
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResultInfo"
              }
            ]
          },
          "description": "array of results"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SpellInfo

`#/components/schemas/Response36Afe1097B20_SpellInfo`

```json
{
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "keyword obtained as a result of search engine autocorrection\n the results will be provided for the corrected keyword"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "type of autocorrection\n possible values:\n did_you_mean, showing_results_for, no_results_found_for, including_results_for\n note: Yahoo and Yandex support only the following autocorrection type:\n including_results_for"
    }
  }
}
```

### Response36Afe1097B20_StreamingQualityElement

`#/components/schemas/Response36Afe1097B20_StreamingQualityElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "type of element"
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>label of the quality element</em>"
    },
    "width": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>video width in pixels</em>",
      "format": "int64"
    },
    "height": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>video height in pixels</em>"
    },
    "bitrate": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em><a href=\"https://en.wikipedia.org/wiki/Bit_rate\" target=\"_blank\" rel=\"noopener noreferrer\">bit rate</a> of the video</em>"
    },
    "mime_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em><a href=\"https://en.wikipedia.org/wiki/Media_type\" target=\"_blank\" rel=\"noopener noreferrer\">media type</a> of the video</em>"
    },
    "fps": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em><a href=\"https://en.wikipedia.org/wiki/Frame_rate\" target=\"_blank\" rel=\"noopener noreferrer\">frame rate</a> of the video</em>"
    }
  }
}
```

### Response36Afe1097B20_Subtitles

`#/components/schemas/Response36Afe1097B20_Subtitles`

```json
{
  "type": "object",
  "properties": {
    "language": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>language of subtitles</em>"
    },
    "is_translatable": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>defines if subtitles are translatable</em>"
    },
    "is_auto_generated": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>defines if subtitles are auto generated</em>"
    }
  }
}
```

### Response36Afe1097B20_YoutubeVideoInfo

`#/components/schemas/Response36Afe1097B20_YoutubeVideoInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "type of element"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>group rank in SERP</em><br>            position within a group of elements with identical <code>type</code> values<br>            positions of elements with different <code>type</code> values are omitted from <code>rank_group</code>"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> absolute rank in SERP for the target domain</em><br>            absolute position among all the elements in SERP"
    },
    "video_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ID of the video received in a POST array</em>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>title of the video</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL of the video</em>"
    },
    "thumbnail_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>the URL of the page where the thumbnail is hosted</em>"
    },
    "channel_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>the ID of the channel where the video is published</em>"
    },
    "channel_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>the name of the channel where the video is published</em>"
    },
    "channel_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>the URL of the channel where the video is published</em>"
    },
    "channel_logo": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>the URL of the page where the logo image of the channel is hosted</em>"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>description of the video</em>"
    },
    "views_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>number of views of the video</em>",
      "format": "int64"
    },
    "likes_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>number of likes on the video</em>",
      "format": "int64"
    },
    "comments_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>number of comments on the video</em>",
      "format": "int64"
    },
    "channel_subscribers_count": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_ChannelSubscribersCount"
        }
      ],
      "description": "<em>number of subscribers of the channel</em>"
    },
    "publication_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>the date when the video is published</em>"
    },
    "timestamp": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>date and time when the result is published</em><br>            in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”<br>            example:<br>            <code>2022-11-15 12:57:46 +00:00</code>"
    },
    "keywords": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>keywords relevant to the video</em><br>            also known as 'YouTube tags'"
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>the category the video belongs to</em>"
    },
    "is_live": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>indicates whether the video is on live</em>"
    },
    "is_embeddable": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>indicates whether the video is embeddable</em>"
    },
    "duration_time": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>duration of the video</em>"
    },
    "duration_time_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>duration of the video in seconds</em>"
    },
    "subtitles": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_Subtitles"
          }
        ]
      },
      "description": "<em>array of elements describing properties of subtitles in the video</em>"
    },
    "streaming_quality": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_StreamingQualityElement"
          }
        ]
      },
      "description": "<em>array of elements that contain information about all possible streaming qualities of the video</em>"
    }
  }
}
```
