获取京东商品评价数据,包括评分、时间戳和评论者信号,用于反馈分析和商品研究。
本次项目核心使用jd.item_review商品评论接口。本次项目选用(如添加 Taobaoapi2014),无需店铺卖家权限,直接调用封装 API,一键获取已封装好的数据 API 采集,适合批量查询、中小卖家使用。
接口地址:o0b.cn/opandy
请求方式:POST
鉴权方式:请求头携带 Authorization: Bearer 访问令牌
1.请求参数
Query 参数 :此 API 服务的访问令牌。
itemId string :淘宝/天猫上的唯一商品标识符(商品ID)。
请求参数:
Query 参数 tokenstring 必需
此 API 服务的访问令牌。 itemIdstring 必需
淘宝/天猫上的唯一商品标识符(商品ID)。
orderTypeenum<string> 可选 结果集的排序方式。
可用值:
feedbackdate:按反馈日期排序
general:通用排序
枚举值:feedbackdategeneral
默认值:feedbackdate
pageinteger<int32>
用于分页的页码。
可选
默认值:1
Python请求示例
import http.client conn = http.client.HTTPConnection("47.117.133.51", 30015) payload = '' headers = {} conn.request("GET", "/api/jd/review-item-comment/v3?token=null&itemId=null&orderType=null&page=null", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
返回响应
{ "code": "0", "message": "string", "data": {}, "recordTime": "2019-08-24T14:15:22.123Z" }