京东获取商品历史价格信息 API 返回值说明

onebound.jd.item_history_price

公共参数 

请求参数:num_iid=100033966459

参数说明:num_iid:商品id

响应参数

Version: Date:  

名称 类型 必须 示例值 描述

items

items[] 0
获取商品历史价格信息

num_iid

Bigint 0 63153022346 宝贝ID

title

String 0 安踏女鞋跑步鞋女2020冬季新品轻便跑鞋皮面防泼水运动鞋子休闲鞋官方旗舰网店女子运动鞋子 (革面)藕灰-2 6.5(女37.5) 商品标题

detail_url

String 0 https://item.jd.com/63153022346.html 宝贝链接

pic_url

String 0
宝贝图片

lower_price

Float 0 107.0 最地价

lower_date

String 0 2020-12-22 最地价日期

current_price

Float 0 134.01 当前价

change_price_remark

String 0

item

Mix 0 {"date": "2020-06-25", "price": "159", "discount": "",}

价格信息

名称 类型 必须 描述
key String 调用key(必须以GET方式拼接在URL中)
secret String 调用密钥
api_name String API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cache String [yes,no]默认yes,将调用缓存的数据,速度比较快
result_type String [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
lang String [cn,en,ru]翻译语言,默认cn简体中文
version String API版本

{
    "items": {
        "num_iid": "63153022346",
        "title": "京东商城安踏女鞋跑步鞋女2020冬季新品轻便跑鞋皮面运动鞋子休闲鞋官方旗舰网店女子运动鞋子 (革面)藕灰-2 8.5(女40)",
        "detail_url": "https://item.jd.com/63153022346.html",
        "pic_url": "",
        "lower_price": "",
        "lower_date": "",
        "current_price": "",
        "change_price_remark": "",
        "item": [
            {
                "date": "2021-02-24",
                "price": "159.01",
                "discount": ""
            },
            {
                "date": "2021-02-25",
                "price": "159.01",
                "discount": ""
            },
            {
                "date": "2021-02-26",
                "price": "159.01",
                "discount": ""
            },
            {
                "date": "2021-02-27",
                "price": "159.01",
                "discount": ""
            },
            {
                "date": "2021-02-28",
                "price": "159.01",
                "discount": ""
            },
            {
                "date": "2021-03-01",
                "price": "159.01",
                "discount": ""
            },
            {
                "date": "2021-03-02",
                "price": "159.01",
                "discount": ""
            },
            {
                "date": "2021-03-03",
                "price": "159.01",
                "discount": ""
            }
        ],
        "data_from": "p_zwjhl"
    },
    "error": "",
    "reason": "",
    "error_code": "0000",
    "cache": 0,
    "api_info": "today:15 max:10000",
    "execution_time": 0.682,
    "server_time": "Beijing/2021-03-10 16:34:02",
    "client_ip": "106.6.35.144",
    "call_args": [],
    "api_type": "jd",
    "translate_language": "zh-CN",
    "translate_engine": "google_cn",
    "server_memory": "3.11MB",
    "request_id": "gw-1.6048847a39f60"
}

异常示例

{
  "error": "item-not-found",
  "reason": "商品没找到",
  "error_code": "2000",
  "success": 0,
  "cache": 0,
  "api_info": "today:0 max:10000",
  "execution_time": 0.081,
  "server_time": "Beijing/2020-06-10 23:44:00",
  "call_args": [],
  "api_type": "taobao",
  "request_id": "15ee0ffc041242"}


请使用浏览器的分享功能分享到微信等