---
title: "YOUKU Chi tiết video API (V1)"
description: "Lấy thông tin chi tiết về video trên Youku được xác định bằng ID video. Sử dụng để tìm kiếm video đã biết để xem xét nội dung, lập danh mục hoặc phân tích video tiếp theo."
lastUpdated: false
aiUsagePrompt: true
---

# YOUKU Chi tiết video API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/youku/get-video-detail/v1\"")'
  :summary='JSON.parse("\"Chi tiết video (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/youku/video-details-v1-vi.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"TOKEN\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"videoId\",\"in\":\"query\",\"description\":\"ID duy nhất của video.\",\"required\":true,\"schema\":{\"type\":\"string\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"Chi tiết video Youku và thẻ cấu trúc được trả về cùng với trang chi tiết.\",\"properties\":{\"videoMap\":{\"type\":\"object\",\"description\":\"Metadat công khai cho video được yêu cầu.\",\"properties\":{\"videoId\":{\"type\":\"string\",\"description\":\"Định danh video được trả về cho video được yêu cầu.\"},\"vId\":{\"type\":\"string\",\"description\":\"Định danh video được trả về trong trường vId. Kết quả đúng phù hợp với videoId.\"},\"videoLongId\":{\"type\":\"integer\",\"description\":\"Định danh số được trả về cho video được yêu cầu.\"},\"videoTitle\":{\"type\":\"string\",\"description\":\"Tiêu đề của video được yêu cầu.\"},\"pageTitle\":{\"type\":\"string\",\"description\":\"Tiêu đề được hiển thị trên trang chi tiết video.\"},\"videoPublishTime\":{\"type\":\"string\",\"description\":\"Thời gian phát sóng video được trả về dưới dạng văn bản với độ chính xác giây.\"},\"duration\":{\"type\":\"number\",\"description\":\"Thời lượng video tính bằng giây. Giá trị có thể có phần thập phân.\"},\"videoCategory\":{\"type\":\"string\",\"description\":\"Tên danh mục video được Youku trả về.\"},\"videoCategoryId\":{\"type\":\"integer\",\"description\":\"Mã danh mục số được trả về cho video.\"},\"videoImg\":{\"type\":\"string\",\"description\":\"URL hình ảnh được trả về cùng với thông tin video.\"},\"videoImgV\":{\"type\":\"string\",\"description\":\"URL hình ảnh ngang được trả về cùng với thông tin video.\"},\"isVideo\":{\"type\":\"boolean\",\"description\":\"Liệu nền tảng có đánh dấu sản phẩm là video hay không.\"},\"isShort\":{\"type\":\"boolean\",\"description\":\"Liệu nền tảng có đánh dấu video là phiên bản ngắn hay không.\"},\"paid\":{\"type\":\"integer\",\"description\":\"Thông báo nội dung có phí được báo cáo bởi Youku.\"},\"totalComment\":{\"type\":\"integer\",\"description\":\"Số bình luận được báo cáo cho video.\"},\"totalUp\":{\"type\":\"integer\",\"description\":\"Số lần người xem thích video được báo cáo.\"},\"showVideoStageDesc\":{\"type\":\"string\",\"description\":\"Tiêu đề hiển thị của tập hoặc chương trình video được trả về.\"},\"streamTypes\":{\"type\":\"array\",\"description\":\"Mã định dạng phát sóng được liệt kê trong metadatavideo.\",\"items\":{\"type\":\"string\",\"description\":\"Một mã định dạng phát sóng được Youku liệt kê.\"}}}},\"componentList\":{\"type\":\"array\",\"description\":\"Các thành phần trang có thể bao gồm video và thẻ tải lên.\",\"items\":{\"type\":\"object\",\"properties\":{\"componentName\":{\"type\":\"string\",\"description\":\"Tên thành phần được báo cáo trên trang chi tiết.\"},\"title\":{\"type\":\"string\",\"description\":\"Tiêu đề hiển thị của thành phần trang.\"},\"type\":{\"type\":\"integer\",\"description\":\"Mã loại nền tảng của thành phần trang.\"},\"dataNode\":{\"type\":\"array\",\"description\":\"Các nút nội dung được trả về cùng với thành phần này.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":[\"integer\",\"null\"],\"description\":\"Thông số định dạng số được trả về cho nút nội dung này. Có thể là null.\"},\"type\":{\"type\":\"integer\",\"description\":\"Mã loại nền tảng của nút nội dung.\"},\"data\":{\"type\":\"object\",\"description\":\"Dữ liệu hiển thị trên nút nội dung này. Các trường có thể khác nhau tùy theo thẻ.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Văn bản tiêu đề được hiển thị trên thẻ video hoặc thẻ trang này.\"},\"introTitle\":{\"type\":\"string\",\"description\":\"Tiêu đề hiển thị được trả về cho phần giới thiệu.\"},\"summary\":{\"type\":\"string\",\"description\":\"Văn bản tóm tắt được trả về cùng với thẻ này.\"},\"desc\":{\"type\":\"string\",\"description\":\"Văn bản mô tả được trả về cho thẻ này nếu có sẵn.\"},\"videoId\":{\"type\":\"string\",\"description\":\"Thông tin định danh video liên quan đến thẻ này.\"},\"videoLongId\":{\"type\":\"integer\",\"description\":\"Thông tin định danh video liên quan đến thẻ này.\"},\"publishTime\":{\"type\":\"string\",\"description\":\"Tiêu đề thời gian xuất bản được hiển thị trên thẻ.\"},\"seconds\":{\"type\":\"string\",\"description\":\"Thời lượng được hiển thị trên thẻ dưới dạng chuỗi định dạng đồng hồ.\"},\"img\":{\"type\":\"string\",\"description\":\"URL hình ảnh được hiển thị cùng với thẻ.\"},\"thumbUrl\":{\"type\":\"string\",\"description\":\"URL hình nền được trả về cho kết quả.\"},\"bgPic\":{\"type\":\"string\",\"description\":\"URL hình nền được trả về cho thẻ này.\"},\"heatDesc\":{\"type\":\"string\",\"description\":\"Văn bản nhãn độ phổ biến được trả về cho thẻ.\"},\"ownerUid\":{\"type\":\"string\",\"description\":\"Thông tin nhận dạng người dùng chủ sở hữu được trả về trên thẻ này.\"},\"upUser\":{\"type\":\"object\",\"description\":\"Thông tin người gửi nội dung công khai được gắn kèm với thẻ.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Thông tin nhận dạng người dùng của người gửi nội dung.\"},\"name\":{\"type\":\"string\",\"description\":\"Tên hiển thị của người gửi nội dung.\"},\"icon\":{\"type\":\"string\",\"description\":\"URL hình ảnh đại diện của người gửi nội dung.\"},\"subtitle\":{\"type\":\"string\",\"description\":\"Văn bản bổ sung được hiển thị cùng tên người gửi nội dung.\"},\"verifyName\":{\"type\":[\"string\",\"null\"],\"description\":\"Tên hiển thị xác thực được trả về cho người gửi nội dung nếu có.\"},\"verifyIcon\":{\"type\":[\"string\",\"null\"],\"description\":\"URL biểu tượng xác thực được trả về cho người gửi nội dung nếu có.\"}}},\"interacts\":{\"type\":\"array\",\"description\":\"Số lần báo cáo về mức độ tương tác được hiển thị trên thẻ.\",\"items\":{\"type\":\"object\",\"properties\":{\"interactType\":{\"type\":\"string\",\"description\":\"Mã loại cho mục tương tác này.\"},\"title\":{\"type\":\"string\",\"description\":\"Nhãn hiển thị cho mục tương tác này.\"},\"count\":{\"type\":[\"integer\",\"null\"],\"description\":\"Số lần báo cáo về mục tương tác này. Có thể là null.\"}}}},\"lbTexts\":{\"type\":\"array\",\"description\":\"Các huy hiệu văn bản được hiển thị trên thẻ này.\",\"items\":{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Văn bản chính của huy hiệu được hiển thị.\"},\"contentDesc\":{\"type\":\"string\",\"description\":\"Văn bản mô tả được trả về cho huy hiệu.\"},\"textColor\":{\"type\":\"string\",\"description\":\"Giá trị màu văn bản được trả về cho huy hiệu.\"}}}},\"reasons\":{\"type\":\"object\",\"description\":\"Thông tin hiển thị khuyến nghị đi kèm với thẻ.\",\"properties\":{\"text\":{\"type\":[\"string\",\"null\"],\"description\":\"Văn bản lý do khuyến nghị được báo cáo. Có thể là null.\"}}},\"subtitles\":{\"type\":\"array\",\"description\":\"Các dòng hiển thị phụ được trả về cho thẻ.\",\"items\":{\"type\":\"object\",\"properties\":{\"subtitle\":{\"type\":\"string\",\"description\":\"Văn bản được hiển thị trên dòng hiển thị phụ này.\"},\"subtitleType\":{\"type\":\"string\",\"description\":\"Mã loại được trả về cho dòng hiển thị phụ này.\"}}}}}}}}}}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Các tham số hoặc nội dung yêu cầu không hợp lệ.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Tài khoản truy cập không hợp lệ hoặc không hoạt động.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Quyền truy cập bị từ chối.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Tốc độ yêu cầu hoặc giới hạn hàng ngày đã vượt quá.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Lỗi máy chủ nội bộ.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Dịch vụ tạm thời không khả dụng.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"API sản xuất toàn cục (mặc định)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/youku/get-video-detail/v1\"")' />

<p>Lấy thông tin chi tiết về video trên Youku được xác định bằng ID video. Sử dụng để tìm kiếm video đã biết để xem xét nội dung, lập danh mục hoặc phân tích video tiếp theo.</p>

## Tham số

<div class="api-doc-table api-doc-table--params">

| Tên | Vị trí | Kiểu dữ liệu | Bắt buộc | Mặc định | Mô tả |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Đúng | - | TOKEN |
| <code>videoId</code> | query | <code>string</code> | Đúng | - | ID duy nhất của video. |

</div>

## Ví dụ mã hóa

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/youku/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE'
```

```text [🤖 Lời hướng dẫn AI]
Tôi muốn sử dụng API "Chi tiết video (V1)" từ JustOneAPI.
URL cơ sở: https://api.justoneapi.com.
Đường dẫn API: /api/youku/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE
Điểm cuối API: BASE_URL + /api/youku/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE
Phương thức HTTP: GET
Xác thực: Thêm tham số "token" vào URL.
Định nghĩa OpenAPI: https://docs.justoneapi.com/openapi/youku/video-details-v1-vi.json

Tham số:
- token (query): TOKEN (Bắt buộc)
- videoId (query): ID duy nhất của video. (Bắt buộc)

Định dạng trả về: Xử lý an toàn phản hồi JSON hoặc văn bản dựa trên Content-Type thực tế.

Xử lý phản hồi và mã lỗi:
1. Đọc kết quả xử lý từ trường "code" trong nội dung phản hồi (mã 0 là thành công).
2. Thời gian chờ đề xuất: 120 giây. Nếu 120 giây quá dài, hãy dành ít nhất 60 giây. Một số yêu cầu có thể hết thời gian chờ trước khi có kết quả.
3. Mã kết quả:
   - 0: Thành công
   - 100: Token không hợp lệ hoặc đã bị vô hiệu hóa
   - 301: Không lấy được dữ liệu. Hãy thử lại.
   - 302: Vượt giới hạn tần suất gọi
   - 303: Vượt hạn mức trong ngày
   - 400: Tham số không hợp lệ
   - 500: Lỗi nội bộ máy chủ
   - 600: Không có quyền truy cập
   - 601: Không đủ số dư
   - 602: Đã chạm giới hạn ngân sách token
4. Mã 601 nghĩa là số dư dùng chung của tài khoản không đủ. Mã 602 nghĩa là token API đã chạm giới hạn ngân sách tích lũy riêng. Việc đặt ngân sách cho token không chuyển tiền khỏi số dư dùng chung.

Xin hãy giúp tôi viết một script bằng ngôn ngữ lập trình yêu thích để gọi API này và xử lý phản hồi.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Được cung cấp bởi các server OpenAPI

url = BASE_URL + "/api/youku/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Được cung cấp bởi các server OpenAPI
const url = BASE_URL + "/api/youku/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Được cung cấp bởi các server OpenAPI
        final String url = BASE_URL + "/api/youku/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Được cung cấp bởi các server OpenAPI

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/youku/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Được cung cấp bởi các server OpenAPI
$url = $BASE_URL . '/api/youku/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/youku/video-details-v1-vi.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[Định nghĩa OpenAPI (JSON)]</a>
</div>

## Các trường trong phản hồi

Các trường chính trong phản hồi thành công (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| Đường dẫn trường | Kiểu dữ liệu | Mô tả |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | Chi tiết video Youku và thẻ cấu trúc được trả về cùng với trang chi tiết. |
| <code>data.videoMap</code> | <code>object</code> | Metadat công khai cho video được yêu cầu. |
| <code>data.videoMap.videoId</code> | <code>string</code> | Định danh video được trả về cho video được yêu cầu. |
| <code>data.videoMap.vId</code> | <code>string</code> | Định danh video được trả về trong trường vId. Kết quả đúng phù hợp với videoId. |
| <code>data.videoMap.videoLongId</code> | <code>integer</code> | Định danh số được trả về cho video được yêu cầu. |
| <code>data.videoMap.videoTitle</code> | <code>string</code> | Tiêu đề của video được yêu cầu. |
| <code>data.videoMap.pageTitle</code> | <code>string</code> | Tiêu đề được hiển thị trên trang chi tiết video. |
| <code>data.videoMap.videoPublishTime</code> | <code>string</code> | Thời gian phát sóng video được trả về dưới dạng văn bản với độ chính xác giây. |
| <code>data.videoMap.duration</code> | <code>number</code> | Thời lượng video tính bằng giây. Giá trị có thể có phần thập phân. |
| <code>data.videoMap.videoCategory</code> | <code>string</code> | Tên danh mục video được Youku trả về. |
| <code>data.videoMap.videoCategoryId</code> | <code>integer</code> | Mã danh mục số được trả về cho video. |
| <code>data.videoMap.videoImg</code> | <code>string</code> | URL hình ảnh được trả về cùng với thông tin video. |
| <code>data.videoMap.videoImgV</code> | <code>string</code> | URL hình ảnh ngang được trả về cùng với thông tin video. |
| <code>data.videoMap.isVideo</code> | <code>boolean</code> | Liệu nền tảng có đánh dấu sản phẩm là video hay không. |
| <code>data.videoMap.isShort</code> | <code>boolean</code> | Liệu nền tảng có đánh dấu video là phiên bản ngắn hay không. |
| <code>data.videoMap.paid</code> | <code>integer</code> | Thông báo nội dung có phí được báo cáo bởi Youku. |
| <code>data.videoMap.totalComment</code> | <code>integer</code> | Số bình luận được báo cáo cho video. |
| <code>data.videoMap.totalUp</code> | <code>integer</code> | Số lần người xem thích video được báo cáo. |
| <code>data.videoMap.showVideoStageDesc</code> | <code>string</code> | Tiêu đề hiển thị của tập hoặc chương trình video được trả về. |
| <code>data.videoMap.streamTypes</code> | <code>array</code> | Mã định dạng phát sóng được liệt kê trong metadatavideo. |
| <code>data.videoMap.streamTypes[]</code> | <code>string</code> | Một mã định dạng phát sóng được Youku liệt kê. |
| <code>data.componentList</code> | <code>array</code> | Các thành phần trang có thể bao gồm video và thẻ tải lên. |
| <code>data.componentList[]</code> | <code>object</code> | - |
| <code>data.componentList[].componentName</code> | <code>string</code> | Tên thành phần được báo cáo trên trang chi tiết. |
| <code>data.componentList[].title</code> | <code>string</code> | Tiêu đề hiển thị của thành phần trang. |
| <code>data.componentList[].type</code> | <code>integer</code> | Mã loại nền tảng của thành phần trang. |
| <code>data.componentList[].dataNode</code> | <code>array</code> | Các nút nội dung được trả về cùng với thành phần này. |
| <code>data.componentList[].dataNode[]</code> | <code>object</code> | - |
| <code>data.componentList[].dataNode[].id</code> | <code>integer &#124; null</code> | Thông số định dạng số được trả về cho nút nội dung này. Có thể là null. |
| <code>data.componentList[].dataNode[].type</code> | <code>integer</code> | Mã loại nền tảng của nút nội dung. |
| <code>data.componentList[].dataNode[].data</code> | <code>object</code> | Dữ liệu hiển thị trên nút nội dung này. Các trường có thể khác nhau tùy theo thẻ. |
| <code>data.componentList[].dataNode[].data.title</code> | <code>string</code> | Văn bản tiêu đề được hiển thị trên thẻ video hoặc thẻ trang này. |
| <code>data.componentList[].dataNode[].data.introTitle</code> | <code>string</code> | Tiêu đề hiển thị được trả về cho phần giới thiệu. |
| <code>data.componentList[].dataNode[].data.summary</code> | <code>string</code> | Văn bản tóm tắt được trả về cùng với thẻ này. |
| <code>data.componentList[].dataNode[].data.desc</code> | <code>string</code> | Văn bản mô tả được trả về cho thẻ này nếu có sẵn. |
| <code>data.componentList[].dataNode[].data.videoId</code> | <code>string</code> | Thông tin định danh video liên quan đến thẻ này. |
| <code>data.componentList[].dataNode[].data.videoLongId</code> | <code>integer</code> | Thông tin định danh video liên quan đến thẻ này. |
| <code>data.componentList[].dataNode[].data.publishTime</code> | <code>string</code> | Tiêu đề thời gian xuất bản được hiển thị trên thẻ. |
| <code>data.componentList[].dataNode[].data.seconds</code> | <code>string</code> | Thời lượng được hiển thị trên thẻ dưới dạng chuỗi định dạng đồng hồ. |
| <code>data.componentList[].dataNode[].data.img</code> | <code>string</code> | URL hình ảnh được hiển thị cùng với thẻ. |
| <code>data.componentList[].dataNode[].data.thumbUrl</code> | <code>string</code> | URL hình nền được trả về cho kết quả. |
| <code>data.componentList[].dataNode[].data.bgPic</code> | <code>string</code> | URL hình nền được trả về cho thẻ này. |
| <code>data.componentList[].dataNode[].data.heatDesc</code> | <code>string</code> | Văn bản nhãn độ phổ biến được trả về cho thẻ. |
| <code>data.componentList[].dataNode[].data.ownerUid</code> | <code>string</code> | Thông tin nhận dạng người dùng chủ sở hữu được trả về trên thẻ này. |
| <code>data.componentList[].dataNode[].data.upUser</code> | <code>object</code> | Thông tin người gửi nội dung công khai được gắn kèm với thẻ. |
| <code>data.componentList[].dataNode[].data.upUser.id</code> | <code>string</code> | Thông tin nhận dạng người dùng của người gửi nội dung. |
| <code>data.componentList[].dataNode[].data.upUser.name</code> | <code>string</code> | Tên hiển thị của người gửi nội dung. |
| <code>data.componentList[].dataNode[].data.upUser.icon</code> | <code>string</code> | URL hình ảnh đại diện của người gửi nội dung. |
| <code>data.componentList[].dataNode[].data.upUser.subtitle</code> | <code>string</code> | Văn bản bổ sung được hiển thị cùng tên người gửi nội dung. |
| <code>data.componentList[].dataNode[].data.upUser.verifyName</code> | <code>string &#124; null</code> | Tên hiển thị xác thực được trả về cho người gửi nội dung nếu có. |
| <code>data.componentList[].dataNode[].data.upUser.verifyIcon</code> | <code>string &#124; null</code> | URL biểu tượng xác thực được trả về cho người gửi nội dung nếu có. |
| <code>data.componentList[].dataNode[].data.interacts</code> | <code>array</code> | Số lần báo cáo về mức độ tương tác được hiển thị trên thẻ. |
| <code>data.componentList[].dataNode[].data.interacts[]</code> | <code>object</code> | - |
| <code>data.componentList[].dataNode[].data.interacts[].interactType</code> | <code>string</code> | Mã loại cho mục tương tác này. |
| <code>data.componentList[].dataNode[].data.interacts[].title</code> | <code>string</code> | Nhãn hiển thị cho mục tương tác này. |
| <code>data.componentList[].dataNode[].data.interacts[].count</code> | <code>integer &#124; null</code> | Số lần báo cáo về mục tương tác này. Có thể là null. |
| <code>data.componentList[].dataNode[].data.lbTexts</code> | <code>array</code> | Các huy hiệu văn bản được hiển thị trên thẻ này. |
| <code>data.componentList[].dataNode[].data.lbTexts[]</code> | <code>object</code> | - |
| <code>data.componentList[].dataNode[].data.lbTexts[].title</code> | <code>string</code> | Văn bản chính của huy hiệu được hiển thị. |
| <code>data.componentList[].dataNode[].data.lbTexts[].contentDesc</code> | <code>string</code> | Văn bản mô tả được trả về cho huy hiệu. |
| <code>data.componentList[].dataNode[].data.lbTexts[].textColor</code> | <code>string</code> | Giá trị màu văn bản được trả về cho huy hiệu. |
| <code>data.componentList[].dataNode[].data.reasons</code> | <code>object</code> | Thông tin hiển thị khuyến nghị đi kèm với thẻ. |
| <code>data.componentList[].dataNode[].data.reasons.text</code> | <code>string &#124; null</code> | Văn bản lý do khuyến nghị được báo cáo. Có thể là null. |
| <code>data.componentList[].dataNode[].data.subtitles</code> | <code>array</code> | Các dòng hiển thị phụ được trả về cho thẻ. |
| <code>data.componentList[].dataNode[].data.subtitles[]</code> | <code>object</code> | - |
| <code>data.componentList[].dataNode[].data.subtitles[].subtitle</code> | <code>string</code> | Văn bản được hiển thị trên dòng hiển thị phụ này. |
| <code>data.componentList[].dataNode[].data.subtitles[].subtitleType</code> | <code>string</code> | Mã loại được trả về cho dòng hiển thị phụ này. |

</div>

## Ví dụ phản hồi

<ApiExampleSection :api='JSON.parse("\"/api/youku/get-video-detail/v1\"")' />

