跳转到主要内容
GET
/
v1
/
tiktok
/
product
/
videos
/
analytics
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/tiktok/product/videos/analytics' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "code": 0,
  "message": "success",
  "data": [
    {
      "create_time": "1628504241",
      "data_size": "3307751",
      "duration": 38,
      "hash_tag": "#TTshopsHome #lipstik #shade #beauty #wanita #makeup #YOU #FYP #VIRAL #ikatancinta",
      "height": "1024",
      "play_addr": "https://v9-id.tiktokcdn.com/20d1a5abf54218b96da3b349f39b5f2b/64a86f83/video/tos/useast2a/tos-useast2a-pve-0037-aiso/3845f2c4baa84c56acac7e45a3689042/?a=1233&ch=0&cr=13&dr=0&lr=all&cd=0%7C0%7C0%7C&cv=1&br=3334&bt=1667&cs=0&ds=6&ft=iusdqy54Zfc0PD1XC43Xg9wiaE~xvEeC~&mime_type=video_mp4&qs=0&rc=ZmQ8PDo2NTxpZWUzOTgzNEBpM3BlNzk6ZjhpNzMzZjgzM0BgLmMwYC8vXjIxLzAvYTE2YSNyL2tzcjRncTVgLS1kL2Nzcw%3D%3D&l=202307071402364D21C04E909C881CD895&btag=e00080000&cc=1c",
      "product_id": "1729382310407603945",
      "ratio": "540p",
      "reflow_cover": "https://d304ly0se1sg9m.cloudfront.net/video-cover/594/6994372454948900122.jpeg",
      "region": "ID",
      "total_comments_cnt": 2,
      "total_digg_cnt": 20,
      "total_favorites_cnt": 1,
      "total_shares_cnt": 0,
      "total_video_sale_cnt": 0,
      "total_video_sale_gmv_amt": 0,
      "total_views_cnt": 2560,
      "user_id": "6788316924469380097",
      "video_desc": "Harga masih Promo Gaesss... Yakin gak mau ngoleksi? ☺ #TTshopsHome #lipstik #shade #beauty #wanita #makeup #YOU #FYP #VIRAL #ikatancinta",
      "video_id": "6994372454948900122",
      "width": "576"
    }
  ],
  "requestId": "bda9f054-17c9-4a1d-ab54-058626e545fa"
}
🪙1 credit每次请求

Copy for AI

🤖 让 AI 帮你写调用代码

点击按钮复制一段结构化提示词,可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。

授权

Authorization
string
header
必填

接口鉴权凭证。请在请求 Header 中传入 Authorization: Bearer <YOUR_API_KEY>。 可在 Dashboard 获取你的 API Key。

查询参数

product_id
string
必填

商品唯一 ID。

product_video_sort_field
integer

列表排序字段,1=total_views_cnt,2=total_digg_cnt,3=total_shares_cnt,4=total_video_sale_cnt,5=total_video_sale_gmv_amt,6=create_time。

sort_type
integer

排序方向,0=升序,1=降序。

page_num
integer
必填

页码,从 1 开始,最大支持 100000。

page_size
integer
必填

每页返回数量,最大值为 10。

响应

请求成功

code
integer
必填
message
string
必填
data
object[]
必填
requestId
string
必填