# Lấy kết quả thông tin video YouTube theo id

**API:** Data API

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

**Tags:** DataForSEO

Truy xuất kết quả thông tin video YouTube đang xếp hàng theo `id`. Trả về `keyword`, `type`, `se_domain`, `location_code`, `language_code`, `check_url`, `datetime`, `spell`, `refinement_chips`, `item_types`, `items_count` và `items`. Được bọc trong phong bì của DataForSEO: dữ liệu ở `tasks[0].result`, kết quả ở `tasks[0].status_code` - yêu cầu bị từ chối vẫn trả về HTTP 200.

### Tham chiếu giá

- Đo lường: Chi phí phản hồi được báo cáo.
- Ước tính tham chiếu cho mỗi yêu cầu: USD 0.02.
- Hệ số khách hàng tham chiếu: 1.0. Không áp dụng lại cho số tiền khách hàng đã quyết toán.

Chỉ là siêu dữ liệu tham chiếu, không phải báo giá cho tài khoản, mức giá được bảo đảm hay hạn mức chi tiêu. Tín dụng tài nguyên không phải tín dụng Felo. Khoản phí cuối cùng tuân theo bản ghi thanh toán của Felo.

## Related links

- [UUID](<https://en.wikipedia.org/wiki/Universally_unique_identifier>)
- [tốc độ bit](<https://en.wikipedia.org/wiki/Bit_rate>)
- [loại phương tiện](<https://en.wikipedia.org/wiki/Media_type>)
- [tốc độ khung hình](<https://en.wikipedia.org/wiki/Frame_rate>)

## 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>mã định danh tác vụ</em><br><strong>mã định danh tác vụ duy nhất trong hệ thống của chúng tôi ở định dạng UUID</strong><br>bạn có thể dùng nó trong vòng <strong>30 ngày</strong> để yêu cầu kết quả của tác vụ bất kỳ lúc nào |

## Responses

### 200 — Thao tác thành công

Headers:
- `X-Request-Id` (string) — Mã định danh yêu cầu cần bao gồm khi liên hệ bộ phận hỗ trợ Felo.

**application/json**

Schema: object | null

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

### 400 — Không thể xử lý yêu cầu. Hãy kiểm tra các tham số yêu cầu.

### 401 — Cần có khóa API Felo hợp lệ.

### 402 — Không thể tiếp tục yêu cầu vì chưa đáp ứng yêu cầu thanh toán.

### 403 — Tài khoản không được phép thực hiện thao tác này.

### 429 — Đã đạt giới hạn yêu cầu hoặc giới hạn chi tiêu.

### 502 — Dịch vụ không thể hoàn tất yêu cầu.

### 503 — API hoặc dịch vụ thanh toán tạm thời không khả dụng.

### 504 — Dịch vụ đã hết thời gian chờ khi xử lý yêu cầu.

### default — Phản hồi lỗi; phản hồi chuyển tiếp từ thượng nguồn có thể dùng định dạng của nhà cung cấp

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "phiên bản hiện tại của API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "mã trạng thái chung; bạn có thể tìm danh sách đầy đủ các mã phản hồi tại đây"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "thông điệp thông tin chung; bạn có thể tìm danh sách đầy đủ các thông điệp thông tin chung tại đây"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "tổng thời gian thực thi, giây"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "tổng chi phí tác vụ, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "số lượng tác vụ trong mảng tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "số lượng tác vụ trong mảng tasks được trả về kèm lỗi",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "mã định danh tác vụ; mã định danh tác vụ duy nhất trong hệ thống của chúng tôi ở định dạng UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "mã trạng thái của tác vụ do DataForSEO tạo; có thể nằm trong khoảng sau: 10000-60000; bạn có thể tìm danh sách đầy đủ các mã phản hồi tại đây"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "thông điệp thông tin của tác vụ; bạn có thể tìm danh sách đầy đủ các thông điệp thông tin chung tại đây"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "thời gian thực thi, giây"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "tổng chi phí tác vụ, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "số phần tử trong mảng kết quả",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "Đường dẫn URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "chứa các tham số giống như bạn đã chỉ định trong yêu cầu POST"
    }
  }
}
```

### Response36Afe1097B20_ChannelSubscribersCount

`#/components/schemas/Response36Afe1097B20_ChannelSubscribersCount`

```json
{
  "type": "object",
  "properties": {
    "displayed_count": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>số người đăng ký hiển thị</em><br>            số người đăng ký như được hiển thị trên YouTube"
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>số người đăng ký</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>mảng tác vụ</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoTaskGetAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoTaskGetAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "video_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ID của video nhận được trong mảng POST</em>"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tên miền công cụ tìm kiếm trong mảng POST</em>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>mã vị trí trong mảng POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>mã ngôn ngữ trong mảng POST</em>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL trực tiếp đến kết quả công cụ tìm kiếm<br>        </em>bạn có thể dùng URL này để đảm bảo rằng chúng tôi đã cung cấp kết quả chính xác"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ngày và giờ nhận được kết quả</em><br>            theo định dạng UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>            ví dụ:<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>tự động sửa lỗi của công cụ tìm kiếm</em><br>            nếu công cụ tìm kiếm cung cấp kết quả cho một từ khóa đã được sửa, chúng tôi sẽ chỉ định từ khóa đã được công cụ tìm kiếm sửa và loại tự động sửa lỗi"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>các loại kết quả tìm kiếm trong SERP</em><br>            chứa các loại kết quả tìm kiếm (<code>items</code>) được tìm thấy trong SERP.<br>            mục khả dụng:<br>            <code>youtube_video_info</code>"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>số kết quả được trả về trong mảng <strong><code>items</code></strong></em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_YoutubeVideoInfo"
          }
        ]
      },
      "description": "<em>các phần tử của kết quả tìm kiếm được tìm thấy trong 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>mảng kết quả</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SpellInfo

`#/components/schemas/Response36Afe1097B20_SpellInfo`

```json
{
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "từ khóa thu được nhờ tự động sửa lỗi của công cụ tìm kiếm\n kết quả sẽ được cung cấp cho từ khóa đã được sửa"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "loại tự động sửa lỗi\n giá trị khả dụng:\n did_you_mean, showing_results_for, no_results_found_for, including_results_for\n lưu ý: Yahoo và Yandex chỉ hỗ trợ loại tự động sửa lỗi sau:\n including_results_for"
    }
  }
}
```

### Response36Afe1097B20_StreamingQualityElement

`#/components/schemas/Response36Afe1097B20_StreamingQualityElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "loại phần tử"
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>nhãn của phần tử chất lượng</em>"
    },
    "width": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>chiều rộng video tính bằng pixel</em>",
      "format": "int64"
    },
    "height": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>chiều cao video tính bằng pixel</em>"
    },
    "bitrate": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>tốc độ bit của video</em>"
    },
    "mime_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>loại phương tiện của video</em>"
    },
    "fps": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>tốc độ khung hình của video</em>"
    }
  }
}
```

### Response36Afe1097B20_Subtitles

`#/components/schemas/Response36Afe1097B20_Subtitles`

```json
{
  "type": "object",
  "properties": {
    "language": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ngôn ngữ của phụ đề</em>"
    },
    "is_translatable": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>xác định phụ đề có thể dịch được hay không</em>"
    },
    "is_auto_generated": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>xác định phụ đề có được tạo tự động hay không</em>"
    }
  }
}
```

### Response36Afe1097B20_YoutubeVideoInfo

`#/components/schemas/Response36Afe1097B20_YoutubeVideoInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "loại phần tử"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>thứ hạng nhóm trong SERP</em><br>            vị trí trong một nhóm các phần tử có cùng giá trị <code>type</code><br>            vị trí của các phần tử có giá trị <code>type</code> khác bị bỏ qua khỏi <code>rank_group</code>"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> thứ hạng tuyệt đối trong SERP cho tên miền mục tiêu</em><br>            vị trí tuyệt đối trong tất cả các phần tử của SERP"
    },
    "video_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ID của video nhận được trong mảng POST</em>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tiêu đề của video</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL của video</em>"
    },
    "thumbnail_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL của trang lưu trữ hình thu nhỏ</em>"
    },
    "channel_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ID của kênh nơi video được xuất bản</em>"
    },
    "channel_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tên kênh nơi video được xuất bản</em>"
    },
    "channel_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL của kênh nơi video được xuất bản</em>"
    },
    "channel_logo": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL của trang lưu trữ hình ảnh logo của kênh</em>"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>mô tả của video</em>"
    },
    "views_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>số lượt xem của video</em>",
      "format": "int64"
    },
    "likes_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>số lượt thích trên video</em>",
      "format": "int64"
    },
    "comments_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>số bình luận trên video</em>",
      "format": "int64"
    },
    "channel_subscribers_count": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_ChannelSubscribersCount"
        }
      ],
      "description": "<em>số người đăng ký của kênh</em>"
    },
    "publication_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ngày video được xuất bản</em>"
    },
    "timestamp": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ngày và giờ khi kết quả được xuất bản</em><br>            ở định dạng UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>            ví dụ:<br>            <code>2022-11-15 12:57:46 +00:00</code>"
    },
    "keywords": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>từ khóa liên quan đến video</em><br>            còn được gọi là 'thẻ YouTube'"
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>danh mục mà video thuộc về</em>"
    },
    "is_live": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>cho biết video có đang phát trực tiếp hay không</em>"
    },
    "is_embeddable": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>cho biết video có thể nhúng hay không</em>"
    },
    "duration_time": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>thời lượng của video</em>"
    },
    "duration_time_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>thời lượng của video tính bằng giây</em>"
    },
    "subtitles": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_Subtitles"
          }
        ]
      },
      "description": "<em>mảng các phần tử mô tả thuộc tính của phụ đề trong video</em>"
    },
    "streaming_quality": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_StreamingQualityElement"
          }
        ]
      },
      "description": "<em>mảng các phần tử chứa thông tin về tất cả chất lượng phát trực tuyến có thể có của video</em>"
    }
  }
}
```
