Chuyển tới nội dung chính

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ênKiểuMẫuMô tả
partner_idint1Partner 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.
timestamptimestamp1610000000Dù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_tokenstringc09222e3fc40ffb25fc947f738b1abf1Token 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_idint1Shopee's mã định danh duy nhất for a user.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Signature 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ênKiểuBắt buộcMẫuMô tả
video_upload_idstringFalsesg-11110199-6v99e-mgezdwct5eyya0You 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_idstringFalseYwOo_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ênKiểuMẫuMô tả
errorstringLoại lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi.
messagestringChi tiết lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi.
request_idstring2af852cd-7420-4714-b7cd-33317f6fe548Mã định danh của yêu cầu API dùng để theo dõi lỗi.
responseobjectDetail informations you are querying.
video_upload_idstringid-11110201-6ko2m-mczrffx878mba3ID of uploaded video.
post_idstringYwOo_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_timetimestamp1761188662147The time when the video post to Shopee Video. Only have value when the trạng thái video is 300 (POSTED).
video_urlstringhttps://down-bs-id.vod.susercontent.com/c3/50007225/201/A3oxONdWALgpg8thEbEBACc.mp4Video play url.
statusint32300Video current status. Các giá trị áp dụng: 200: DRAFT 300: POSTED 400: DELETED 500: SCHEDULED 600: SCHEDULED_FAILED
cover_image_urlstringhttps://down-sp-id.vod.susercontent.com/c3/50007225/201/A3oyOUXSAFAbg8thIfYBBgAn.jpgẢnh bìa url of the Shopee Video.
captionstring#tt Tt1Mô tả về the Shopee Video.
durationint326866Video thời lượng time in millisecond.
viewsint641Số lượt xem of post Shopee Video. Only have value when the trạng thái video is 300 (POSTED).
likesint641Số lượt thích of post Shopee Video. Only have value when the trạng thái video is 300 (POSTED).
commentsint641Số lượt bình luận the post Shopee Video. Only have value when the trạng thái video is 300 (POSTED).
has_performancebooleanfalseWhether there is video metric data.
item_listobject[]Danh sách products linked with the Shopee Video.
shop_idint64Shopee's mã định danh duy nhất for a shop of the item.
item_idint6434002Shopee's mã định danh duy nhất for an item.
item_namestringseller discountName of the item.
custom_item_namestringName of the item displayed on Shopee Video (max 255 characters).
item_cover_image_urlstringẢnh bìa url of the item.
min_pricefloat100000.0Min price of the item.
max_pricefloat100000.0Max price of the item.
stockint6410Stock of the item.
allow_infoobjectWhether allow stitch and duet.
allow_stitchbooleantrueWhether allow stitch.
allow_duetbooleantrueWhether allow duet.
scheduled_infoobjectWhen scheduled_post is true, scheduled_post_time must not empty. When scheduled_post is false, scheduled_post_time must empty.
scheduled_postbooleantrueWhether post it to Shopee Video at scheduled time.
scheduled_post_timetimestamp1761734929450Scheduled thời gian đăng, millisecond timestamp.
update_timetimestamp1761188662147The 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&timestamp=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&timestamp=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&timestamp=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&timestamp=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" }