外观
🔗 /api/douyin-ec/product-comments-v1
根据商品 ID 分页获取商品评论。
token
product_id
page
环境地址:示例中的 https://<your_endpoint> 为占位符,请替换为客服为你分配的专属接入地址(详见快速开始)。
https://<your_endpoint>
curl -X POST 'https://<your_endpoint>/api/douyin-ec/product-comments-v1?token=YOUR_TOKEN' \ -H 'Content-Type: application/json' \ -d '{"product_id":"1234567890","page":1}'
import requests resp = requests.post( "https://<your_endpoint>/api/douyin-ec/product-comments-v1", params={"token": "YOUR_TOKEN"}, json={ "product_id": "1234567890", "page": 1 }, timeout=60, ) print(resp.json())
const resp = await fetch('https://<your_endpoint>/api/douyin-ec/product-comments-v1?token=YOUR_TOKEN', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({"product_id":"1234567890","page":1}), }) console.log(await resp.json())
{ "code": 0, "message": "ok", "data": { "product_id": "p_88", "total": 3200, "list": [ { "comment_id": "c1", "content": "质量不错", "like": 23 } ] } }
{ "code": 303, "message": "采集失败,请稍后重试", "data": null }
抖音电商获取商品评论
🔗 /api/douyin-ec/product-comments-v1🔒 需开通根据商品 ID 分页获取商品评论。
请求参数
tokenproduct_idpage代码示例
响应结果示例