v2.video.get_video_detail_product_performance
GET /api/v2/video/get_video_detail_product_performance
Get dữ liệu hiệu suất for products linked with individual post Shopee Video. There is at least a one-day delay.
Đường dẫn Endpoint
URL: https://partner.shopeemobile.com/api/v2/video/get_video_detail_product_performance
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ả |
|---|---|---|---|---|
| page_no | int64 | True | The start index of request. Starting from 1. | |
| page_size | int64 | True | The number of item returned by this request. Max is 20. | |
| post_id | string | True | The mã định danh duy nhất for post Shopee Video. | |
| item_id | int64 | False | Shopee's mã định danh duy nhất for an item. | |
| item_name | string | False | Name of the item. |
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. | |
| list | object[] | The danh sách item that match the tình trạng. | |
| shop_id | int64 | Shopee's mã định danh duy nhất for a shop. | |
| item_id | int64 | 34002 | Shopee's mã định danh duy nhất for an item. |
| item_name | string | seller discount | Name of the item. |
| item_cover_image_url | string | Ảnh bìa url of the item. | |
| item_description | string | Mô tả về the item. | |
| likes | int64 | 1 | Số lượt thích the post Shopee Video. |
| comments | int64 | 1 | Số lượt bình luận the post Shopee Video. |
| placed_orders | int64 | 1 | Amount of product orders from the video. |
| placed_sales | float | 2.0 | Amount of product sales from the video. |
| unique_buyers | int64 | 2 | Buyers of the product in the video. |
| sold_items | int64 | 1 | Amount of products sold from the video. |
| product_clicks | int64 | 1 | Amount of product clicks from the video. |
| product_click_rate | float | 1.0 | Amount of product clicks from the video/Product view from video. |
| conversion_rate | float | 1.0 | Amount of products sold from the video/amount of views from the video. |
| sales_per_order | float | 2.0 | Amount of product sales from the video/amount of product orders from the video. |
| sales_per_buyer | float | 2.0 | Amount of product sales from the video/amount of buyers from the video. |
| total_count | int64 | 10 | Tổng số video that match the tình trạng. |
| has_more | boolean | false | This is to indicate whether the danh sách video is more than one page. If this value is true, you may want to continue to check next page to retrieve the rest of data. |
Unirest.setTimeouts(0, 0); HttpResponse<String> response = Unirest.get("https://partner.shopeemobile.com/api/v2/video/get\_video\_detail\_product\_performance?access\_token=access\_token&item\_id=0&item\_name=-&page\_no=0&page\_size=0&partner\_id=partner\_id&post\_id=-&sign=sign×tamp=timestamp&user\_id=user\_id") .asString();<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://partner.shopeemobile.com/api/v2/video/get\_video\_detail\_product\_performance?access\_token=access\_token&item\_id=0&item\_name=-&page\_no=0&page\_size=0&partner\_id=partner\_id&post\_id=-&sign=sign×tamp=timestamp&user\_id=user\_id', 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\_product\_performance?access\_token=access\_token&item\_id=0&item\_name=-&page\_no=0&page\_size=0&partner\_id=partner\_id&post\_id=-&sign=sign×tamp=timestamp&user\_id=user\_id' import requests url = "https://partner.shopeemobile.com/api/v2/video/get\_video\_detail\_product\_performance?access\_token=access\_token&item\_id=0&item\_name=-&page\_no=0&page\_size=0&partner\_id=partner\_id&post\_id=-&sign=sign×tamp=timestamp&user\_id=user\_id" payload={} headers = { } response = requests.RPCRequest("GET",url,headers=headers, data=payload, allow_redirects=False) print(response.text)
], "has_more": false }, "request_id": "e443e246-d834-454e-8541-6687dbaa2c27" }