首页 > 大数据 > 数据分析 > 京东商品详情API返回值核心字段说明
"skuId": "123456789""title": "Redmi K60 Pro 5G手机 12GB+256GB 墨羽"json"images": ["https://img.jd.com/detail1.jpg","https://img.jd.com/detail2.jpg"]
"desc": "搭载骁龙8 Gen2处理器,支持120W快充..."json"price": 2999.00,"original_price": 3299.00,"promotion": {"type": "满减","desc": "满3000减300","valid_time": "2025-07-25至2025-07-31"}json"skuList": [{"skuId": "123456","name": "墨羽 12GB+256GB","price": 2999.00,"stock": 50}]"stock": 50"inStock"(有货)、
"outOfStock"(无货)等枚举值。json"attributes": [{"name": "颜色", "value": "墨羽"},{"name": "内存", "value": "12GB+256GB"}]json"category": {"id": "123","name": "5G手机"}json"brand": {"id": "1001","name": "Redmi","logo": "https://img.jd.com/brand/logo.jpg"}json"afterSaleService": {"return_policy": "7天无理由退货","warranty": "1年质保"}json"reviews": {"count": 1000,"rating": 4.8,"positive_rate": "95%"}"monthly_sales": 5000AppKey和
AppSecret,用于身份验证。POST请求,URL如:
https://api.jd.com/routerjsonmethod(接口方法名)、
app_key、
timestamp、
v(版本号)、
param_json(JSON格式的查询条件)。json{"method": "jd.union.open.goods.detail.query","app_key": "YOUR_APP_KEY","timestamp": "2025-07-25 17:00:00","v": "1.0","param_json": "{\"skuIds\": [\"123456789\"]}"}AppSecret后进行
MD5加密并转大写。pythonimport hashlibdef generate_sign(params, app_secret):sorted_params = sorted(params.items())sign_str = app_secret + ''.join(f"{k}{v}" for k, v in sorted_params) + app_secretreturn hashlib.md5(sign_str.encode()).hexdigest().upper()code(状态码)、
message(错误信息)、
data(业务数据)。json{"code": "0000","message": "成功","data": {"item": {"title": "Redmi K60 Pro","price": 2999.00}}}1001:参数缺失3005:商品不存在4001:签名验证失败5000:QPS超限(默认1000次/分钟,需申请提额)fields参数指定返回字段,降低网络负载。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70046834/viewspace-3092108/ ,如需转载,请注明出处,否则将追究法律责任。