v2.video.get_video_detail
GET /api/v2/video/get_video_detail
Get the detail information of video.
Đường dẫn Endpoint
URL: https://partner.shopeemobile.com/api/v2/video/get_video_detail
Tham số chung
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| partner_id | int | 1 | Partner ID được gán khi đăng ký thành công. Bắt buộc cho tất cả các yêu cầu. |
| timestamp | timestamp | 1610000000 | Dùng để chỉ định thời gian của yêu cầu. Bắt buộc cho tất cả các yêu cầu. Hết hạn sau 5 phút. |
| access_token | string | c09222e3fc40ffb25fc947f738b1abf1 | Token truy cập API, dùng để xác định quyền của bạn đối với API. Có thể sử dụng nhiều lần và hết hạn sau 4 giờ. |
| user_id | int | 1 | Shopee's mã định danh duy nhất for a user. |
| sign | string | e318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2 | Signature generated by(depends on different APIs) partner_id, api path, timestamp, access_token, user_id and partner_key via HMAC-SHA256 hashing algorithm. |
Tham số Request
| Tên | Kiểu | Bắt buộc | Mẫu | Mô tả |
|---|---|---|---|---|
| video_upload_id | string | False | sg-11110199-6v99e-mgezdwct5eyya0 | You can only select one from video_upload_id and post_id: - If you want to get detail information of video with draft status, please pass video_upload_id. - If you want to get detail information of video with post status, please pass post_id. |
| post_id | string | False | YwOo_gZqCACXbM0UAAAAAA== | You can only select one from video_upload_id and post_id: - If you want to get detail information of video with draft status, please pass video_upload_id. - If you want to get detail information of video with post status, please pass post_id. |
Tham số Response
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| error | string | Loại lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi. | |
| message | string | Chi tiết lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi. | |
| request_id | string | 2af852cd-7420-4714-b7cd-33317f6fe548 | Mã định danh của yêu cầu API dùng để theo dõi lỗi. |
| response | object | Detail informations you are querying. | |
| video_upload_id | string | id-11110201-6ko2m-mczrffx878mba3 | ID of uploaded video. |
| post_id | string | YwOo_gZqCACXbM0UAAAAAA== | The mã định danh duy nhất for post Shopee Video. Only have value when the trạng thái video is 300 (POSTED). |
| post_time | timestamp | 1761188662147 | The time when the video post to Shopee Video. Only have value when the trạng thái video is 300 (POSTED). |
| video_url | string | https://down-bs-id.vod.susercontent.com/c3/50007225/201/A3oxONdWALgpg8thEbEBACc.mp4 | Video play url. |
| status | int32 | 300 | Video current status. Các giá trị áp dụng: 200: DRAFT 300: POSTED 400: DELETED 500: SCHEDULED 600: SCHEDULED_FAILED |
| cover_image_url | string | https://down-sp-id.vod.susercontent.com/c3/50007225/201/A3oyOUXSAFAbg8thIfYBBgAn.jpg | Ảnh bìa url of the Shopee Video. |
| caption | string | #tt Tt1 | Mô tả về the Shopee Video. |
| duration | int32 | 6866 | Video thời lượng time in millisecond. |
| views | int64 | 1 | Số lượt xem of post Shopee Video. Only have value when the trạng thái video is 300 (POSTED). |
| likes | int64 | 1 | Số lượt thích of post Shopee Video. Only have value when the trạng thái video is 300 (POSTED). |
| comments | int64 | 1 | Số lượt bình luận the post Shopee Video. Only have value when the trạng thái video is 300 (POSTED). |
| has_performance | boolean | false | Whether there is video metric data. |
| item_list | object[] | Danh sách products linked with the Shopee Video. | |
| shop_id | int64 | Shopee's mã định danh duy nhất for a shop of the item. | |
| item_id | int64 | 34002 | Shopee's mã định danh duy nhất for an item. |
| item_name | string | seller discount | Name of the item. |
| custom_item_name | string | Name of the item displayed on Shopee Video (max 255 characters). | |
| item_cover_image_url | string | Ảnh bìa url of the item. | |
| min_price | float | 100000.0 | Min price of the item. |
| max_price | float | 100000.0 | Max price of the item. |
| stock | int64 | 10 | Stock of the item. |
| allow_info | object | Whether allow stitch and duet. | |
| allow_stitch | boolean | true | Whether allow stitch. |
| allow_duet | boolean | true | Whether allow duet. |
| scheduled_info | object | When scheduled_post is true, scheduled_post_time must not empty. When scheduled_post is false, scheduled_post_time must empty. | |
| scheduled_post | boolean | true | Whether post it to Shopee Video at scheduled time. |
| scheduled_post_time | timestamp | 1761734929450 | Scheduled thời gian đăng, millisecond timestamp. |
| update_time | timestamp | 1761188662147 | The lasted update time the video. |
Unirest.setTimeouts(0, 0); HttpResponse<String> response = Unirest.get("https://partner.shopeemobile.com/api/v2/video/get\_video\_detail?access\_token=access\_token&partner\_id=partner\_id&post\_id=YwOo\_gZqCACXbM0UAAAAAA%3D%3D&sign=sign×tamp=timestamp&user\_id=user\_id&video\_upload\_id=sg-11110199-6v99e-mgezdwct5eyya0") .asString();<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://partner.shopeemobile.com/api/v2/video/get\_video\_detail?access\_token=access\_token&partner\_id=partner\_id&post\_id=YwOo\_gZqCACXbM0UAAAAAA%3D%3D&sign=sign×tamp=timestamp&user\_id=user\_id&video\_upload\_id=sg-11110199-6v99e-mgezdwct5eyya0', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json' ), )); $response = curl_exec($curl); curl_close($curl); echo $response; curl --location --request GET 'https://partner.shopeemobile.com/api/v2/video/get\_video\_detail?access\_token=access\_token&partner\_id=partner\_id&post\_id=YwOo\_gZqCACXbM0UAAAAAA%3D%3D&sign=sign×tamp=timestamp&user\_id=user\_id&video\_upload\_id=sg-11110199-6v99e-mgezdwct5eyya0' import requests url = "https://partner.shopeemobile.com/api/v2/video/get\_video\_detail?access\_token=access\_token&partner\_id=partner\_id&post\_id=YwOo\_gZqCACXbM0UAAAAAA%3D%3D&sign=sign×tamp=timestamp&user\_id=user\_id&video\_upload\_id=sg-11110199-6v99e-mgezdwct5eyya0" payload={} headers = { } response = requests.RPCRequest("GET",url,headers=headers, data=payload, allow_redirects=False) print(response.text)
], "allow_info": { "allow_stitch": true, "allow_duet": true }, "scheduled_info": { "scheduled_post": false, "scheduled_post_time": null }, "update_time": 1761805451657, "views": null, "likes": null, "comments": null, "has_performance": false, "post_time": null, "post_id": null }, "request_id": "64d05306-daf9-407b-93ea-aa0de01b1e1a" }