# Получить результаты информации о видео YouTube по id

**API:** Data API

**Endpoint:** `GET /v1/beta/dataforseo/serp/youtube/video_info/task_get/advanced/{id}`

**Tags:** DataForSEO

Получает результат информации о видео YouTube из очереди по `id`. Возвращает `keyword`, `type`, `se_domain`, `location_code`, `language_code`, `check_url`, `datetime`, `spell`, `refinement_chips`, `item_types`, `items_count` и `items`. Ответ обёрнут в конверт DataForSEO: данные в `tasks[0].result`, результат в `tasks[0].status_code` — отклонённый запрос всё равно возвращает HTTP 200.

### Справочные цены

- Тарификация: стоимость ответа по данным провайдера.
- Справочная оценка запроса: USD 0.02.
- Справочный множитель для клиента: 1.0. Не применяйте его повторно к уже рассчитанной сумме клиента.

Справочные метаданные, а не коммерческое предложение для аккаунта, гарантированная цена или лимит расходов. Кредиты ресурсов — не кредиты Felo. Итоговые списания определяются записями биллинга Felo.

## Base URL

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

## Authentication

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

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | path | yes | string | <em>идентификатор задачи</em><br><strong>уникальный идентификатор задачи в нашей системе в формате <a href="https://en.wikipedia.org/wiki/Universally_unique_identifier">UUID</a></strong><br>в течение <strong>30 дней</strong> вы сможете в любое время запросить по нему результаты задачи |

## Responses

### 200 — Успешная операция

Headers:
- `X-Request-Id` (string) — Идентификатор запроса, который нужно указать при обращении в поддержку Felo.

**application/json**

Schema: object | null

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

### 400 — Запрос не удалось обработать. Проверьте параметры запроса.

### 401 — Требуется действительный API-ключ Felo.

### 402 — Запрос не может быть выполнен: не выполнено требование биллинга.

### 403 — Аккаунту не разрешено выполнять эту операцию.

### 429 — Достигнут лимит запросов или расходов.

### 502 — Сервис не смог выполнить запрос.

### 503 — API или сервис биллинга временно недоступны.

### 504 — Истекло время ожидания обработки запроса.

### default — Ответ с ошибкой; сквозные ответы upstream могут использовать форматы провайдера

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "текущая версия API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "общий код состояния.\nПолный список кодов ответа можно найти здесь."
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "общее информационное сообщение.\nПолный список общих информационных сообщений можно найти здесь."
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "общее время выполнения, секунды"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "общая стоимость задач, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "число задач в массиве tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "число задач в массиве tasks, возвращённых с ошибкой",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "идентификатор задачи\nуникальный идентификатор задачи в нашей системе в формате UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "код состояния задачи\nформируется DataForSEO, может находиться в диапазоне 10000-60000\nПолный список кодов ответа можно найти здесь."
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "информационное сообщение задачи\nПолный список общих информационных сообщений можно найти здесь."
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "время выполнения, секунды"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "общая стоимость задач, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "число элементов в массиве result",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "путь URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "содержит те же параметры, что вы указали в POST-запросе"
    }
  }
}
```

### Response36Afe1097B20_ChannelSubscribersCount

`#/components/schemas/Response36Afe1097B20_ChannelSubscribersCount`

```json
{
  "type": "object",
  "properties": {
    "displayed_count": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>отображаемое количество подписчиков</em><br>количество подписчиков, отображаемое на YouTube"
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>количество подписчиков</em>",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoTaskGetAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoTaskGetAdvancedResponseInfo`

```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_SerpYoutubeVideoInfoTaskGetAdvancedTaskInfo"
              }
            ]
          },
          "description": "<em>массив задач</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoTaskGetAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoTaskGetAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "video_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ID видео, полученный в POST-массиве</em>"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>домен поисковой системы в массиве POST</em>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>код местоположения в массиве POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>код языка в массиве POST</em>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>прямой URL к результатам поисковой системы<br>        </em>его можно использовать, чтобы убедиться, что мы предоставили точные результаты"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>дата и время получения результата</em><br>            в формате UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>            пример:<br>            <code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "spell": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_SpellInfo"
        }
      ],
      "description": "<em>автокоррекция поисковой системы</em><br>            если поисковая система предоставила результаты для исправленного ключевого слова, мы укажем ключевое слово, исправленное поисковой системой, и тип автокоррекции"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>типы результатов поиска в SERP</em><br>            содержит типы результатов поиска (<code>items</code>), найденных в SERP.<br>            возможный элемент:<br>            <code>youtube_video_info</code>"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>количество результатов, возвращённых в массиве <strong><code>items</code></strong></em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_YoutubeVideoInfo"
          }
        ]
      },
      "description": "<em>элементы результатов поиска, найденные в SERP</em>"
    }
  }
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoTaskGetAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoTaskGetAdvancedTaskInfo`

```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_SerpYoutubeVideoInfoTaskGetAdvancedResultInfo"
              }
            ]
          },
          "description": "<em>массив результатов</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SpellInfo

`#/components/schemas/Response36Afe1097B20_SpellInfo`

```json
{
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "ключевое слово, полученное в результате автокоррекции поисковой системы\nрезультаты будут предоставлены для исправленного ключевого слова"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "тип автокоррекции\nвозможные значения:\ndid_you_mean, showing_results_for, no_results_found_for, including_results_for\nпримечание: Yahoo и Yandex поддерживают только следующий тип автокоррекции:\nincluding_results_for"
    }
  }
}
```

### Response36Afe1097B20_StreamingQualityElement

`#/components/schemas/Response36Afe1097B20_StreamingQualityElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "тип элемента"
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>метка элемента качества</em>"
    },
    "width": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>ширина видео в пикселях</em>",
      "format": "int64"
    },
    "height": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>высота видео в пикселях</em>"
    },
    "bitrate": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em><a href=\"https://en.wikipedia.org/wiki/Bit_rate\" target=\"_blank\" rel=\"noopener noreferrer\">битрейт</a> видео</em>"
    },
    "mime_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em><a href=\"https://en.wikipedia.org/wiki/Media_type\" target=\"_blank\" rel=\"noopener noreferrer\">тип медиа</a> видео</em>"
    },
    "fps": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em><a href=\"https://en.wikipedia.org/wiki/Frame_rate\" target=\"_blank\" rel=\"noopener noreferrer\">частота кадров</a> видео</em>"
    }
  }
}
```

### Response36Afe1097B20_Subtitles

`#/components/schemas/Response36Afe1097B20_Subtitles`

```json
{
  "type": "object",
  "properties": {
    "language": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>язык субтитров</em>"
    },
    "is_translatable": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>определяет, можно ли переводить субтитры</em>"
    },
    "is_auto_generated": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>определяет, создаются ли субтитры автоматически</em>"
    }
  }
}
```

### Response36Afe1097B20_YoutubeVideoInfo

`#/components/schemas/Response36Afe1097B20_YoutubeVideoInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "тип элемента"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>ранг группы в SERP</em><br>позиция внутри группы элементов с одинаковыми значениями <code>type</code><br>позиции элементов с другими значениями <code>type</code> не учитываются в <code>rank_group</code>"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> абсолютный ранг в SERP для целевого домена</em><br>абсолютная позиция среди всех элементов в SERP"
    },
    "video_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ID видео, полученный в POST-массиве</em>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>название видео</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL видео</em>"
    },
    "thumbnail_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL страницы, на которой размещена миниатюра</em>"
    },
    "channel_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ID канала, на котором опубликовано видео</em>"
    },
    "channel_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>название канала, на котором опубликовано видео</em>"
    },
    "channel_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL канала, на котором опубликовано видео</em>"
    },
    "channel_logo": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL страницы, на которой размещён логотип канала</em>"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>описание видео</em>"
    },
    "views_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>количество просмотров видео</em>",
      "format": "int64"
    },
    "likes_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>количество лайков видео</em>",
      "format": "int64"
    },
    "comments_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>количество комментариев к видео</em>",
      "format": "int64"
    },
    "channel_subscribers_count": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_ChannelSubscribersCount"
        }
      ],
      "description": "<em>количество подписчиков канала</em>"
    },
    "publication_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>дата публикации видео</em>"
    },
    "timestamp": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>дата и время публикации результата</em><br>            в формате UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>            пример:<br>            <code>2022-11-15 12:57:46 +00:00</code>"
    },
    "keywords": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>ключевые слова, относящиеся к видео</em><br>            также известны как «теги YouTube»"
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>категория, к которой относится видео</em>"
    },
    "is_live": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>указывает, идёт ли видео в прямом эфире</em>"
    },
    "is_embeddable": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>указывает, можно ли встраивать видео</em>"
    },
    "duration_time": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>продолжительность видео</em>"
    },
    "duration_time_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>продолжительность видео в секундах</em>"
    },
    "subtitles": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_Subtitles"
          }
        ]
      },
      "description": "<em>массив элементов, описывающих свойства субтитров в видео</em>"
    },
    "streaming_quality": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_StreamingQualityElement"
          }
        ]
      },
      "description": "<em>массив элементов, содержащих информацию обо всех возможных качествах потоковой передачи видео</em>"
    }
  }
}
```
