万邦京东获取商品历史价格信息 API

item_history_price-获取商品历史价格信息 [查看演示API测试工具

onebound.jd.item_history_price

公共参数

请求地址: https://api-gw.onebound.cn/jd/item_history_price

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

请求参数

请求参数:num_iid=63153022346

参数说明:num_iid:商品id

响应参数

名称类型是否隐私示例值描述
itemsitems[]获取商品历史价格信息
num_iidBigint63153022346宝贝ID
titleString安踏女鞋跑步鞋女2020冬季新品轻便跑鞋皮面防泼水运动鞋子休闲鞋官方旗舰网店女子运动鞋子 (革面)藕灰-2 6.5(女37.5)商品标题
detail_urlStringhttps://item.jd.com/63153022346.html宝贝链接
pic_urlString宝贝图片
lower_priceFloat107.0最低价
lower_dateString2020-12-22最低价日期
current_priceFloat134.01当前价
change_price_remarkString
itemMix{"date": "2020-06-25", "price": "159", "discount": "",}价格信息

请求示例

	
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/jd/item_history_price/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=63153022346"

响应示例

{
	"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"}

相关资料

错误码解释

状态代码(error_code)状态信息详细描述是否收费
0000success接口调用成功并返回相关数据
2000Search success but no result接口访问成功,但是搜索没有结果
4000Server internal error服务器内部错误
4001Network error网络错误
4002Target server error目标服务器错误
4003Param error用户输入参数错误
4004Account not found用户帐号不存在
4005Invalid authentication credentials授权失败
4006API stopped您的当前API已停用
4007Account stopped您的账户已停用
4008API rate limit exceeded并发已达上限
4009API maintenanceAPI维护中
4010API not found with these valuesAPI不存在
4012Please add api first请先添加api
4013Number of calls exceeded调用次数超限
4014Missing url param参数缺失
4015Wrong pageToken参数pageToken有误
4016Insufficient balance余额不足
4017timeout error请求超时
5000unknown error未知错误

API 工具

API SDK 调用示例 API SDK下载 API测试工具

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值