微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

通过拼多多根据ID获取商品详情数据简易操作

tem_get-根据ID取商品详情 注册开通

onebound.pinduoduo.item_get

公共参数

名称 类型 必须 描述
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版本

请求参数

请求参数:num_iid=402858552583

参数说明:num_iid:商品ID ;

响应参数

Version: Date:

名称 类型 必须 示例值 描述
num_iid String 0 402858552583 商品ID
title String 0 贵州茅台酒53度飞天茅台500ml酱香型白酒单瓶装年份随机【8月27日发完】 商品标题
price Float 0 2649 价格
minGroupPrice String 0 3199
maxGroupPrice String 0 2649
total_price Float 0
orginal_price Float 0 原价
nick String 0 黔货出山酒类专营店 卖家昵称
num Int 0 249 库存
sales Int 0 1018 销量
detail_url String 0 拼多多 宝贝链接
desc String 0 商品备注
item_imgs Mix 0 宝贝图片列表
pic_url String 0 宝贝图片
props_name String 0 商品属性
prop_imgs Mix 0 商品属性图片列表
props Mix 0 商品详情
skus Mix 0 商品规格信息
props_list Mix 0 商品属性
props_img Mix 0 属性图片
property_alias String 0 商品属性别名
seller_info Mix 0 卖家信息
shop_item Mix 0
relate_items Mix 0

请求示例

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

响应示例

{
	"item": {
		"num_iid": "402858552583",
		"title": "贵州茅台酒53度飞天茅台500ml酱香型白酒单瓶装年份随机【8月27日发完】",
		"price": 2649,
		"minGroupPrice": 3199,
		"maxGroupPrice": 2649,
		"total_price": "",
		"desc_short": null,
		"cid": 6760,
		"orginal_price": 3199,
		"nick": "黔货出山酒类专营店",
		"num": 249,
		"sales": 1018,
		"detail_url": "https://mobile.yangkeduo.com/goods1.html?goods_id=402858552583",
		"desc": "<img src=\"https://img.pddpic.com/mms-material-img/2022-08-19/935cc9ff-c20a-4676-a56f-7678ff00e860.jpeg.a.jpeg\" style=\"width:100%;\"/><img src=\"https://img.pddpic.com/mms-material-img/2022-08-19/64ea6dac-0d72-4baa-83ca-0d4fb87859c1.jpeg.a.jpeg\" style=\"width:100%;\"/><img src=\"https://img.pddpic.com/mms-material-img/2022-08-15/0a1c35c3-c31a-4986-af65-6957261760b7.jpeg.a.jpeg\" style=\"width:100%;\"/><img src=\"https://img.pddpic.com/mms-material-img/2022-08-15/45124d07-8d39-4c7d-b5b6-0e11edb790dc.jpeg.a.jpeg\" style=\"width:100%;\"/><img src=\"https://img.pddpic.com/mms-material-img/2022-08-15/482e84b0-3b3c-4def-91ab-f3b13c0899b4.jpeg.a.jpeg\" style=\"width:100%;\"/><img src=\"https://img.pddpic.com/mms-material-img/2022-08-15/0be69736-9f11-4c8a-a77b-5fe7a871a329.jpeg.a.jpeg\" style=\"width:100%;\"/><img src=\"https://img.pddpic.com/mms-material-img/2022-08-15/4ca16f76-00aa-42bd-8b9b-273896157a6e.jpeg.a.jpeg\" style=\"width:100%;\"/><img src=\"https://img.pddpic.com/mms-material-img/2022-08-15/973eaf46-2fd8-4a13-b989-081562d5786c.jpeg.a.jpeg\" style=\"width:100%;\"/><img src=\"https://www.o0b.cn/i.PHP?t.png&rid=gw-1.6305baaad4768&p=1778788210&k=i_key&t=1661319851\" style=\"display:none\" />",
		"item_imgs": [
			{
				"url": "https://img.pddpic.com/mms-material-img/2022-08-15/bd923b18-42c1-4eca-a5f3-e7006d5a7601.jpeg.a.jpeg"
			},
			{
				"url": "https://img.pddpic.com/mms-material-img/2022-08-15/08371272-495b-4a5b-90c9-77a120fcfcd9.jpeg.a.jpeg"
			},
			{
				"url": "https://img.pddpic.com/mms-material-img/2022-08-15/7c4cba88-4219-4c48-b6d5-1e7939b6c48e.jpeg.a.jpeg"
			},
			{
				"url": "https://img.pddpic.com/mms-material-img/2022-08-15/6f408c0f-e9b6-43ed-8956-f3af432e1be8.jpeg.a.jpeg"
			}
		],
		"pic_url": "https://img.pddpic.com/mms-material-img/2022-08-15/bd923b18-42c1-4eca-a5f3-e7006d5a7601.jpeg.a.jpeg",
		"props_name": "",
		"prop_imgs": {
			"prop_img": []
		},
		"props": [
			{
				"name": "品牌",
				"value": "Moutai/茅台"
			},
			{
				"name": "系列名称",
				"value": "飞天"
			},
			{
				"name": "酒精度数",
				"value": "53%vol."
			},
			{
				"name": "净含量",
				"value": "500mL*1瓶"
			},
			{
				"name": "省份",
				"value": "贵州省"
			},
			{
				"name": "城市",
				"value": "遵义市"
			},
			{
				"name": "香型",
				"value": "酱香型"
			},
			{
				"name": "是否为有机食品",
				"value": "是"
			},
			{
				"name": "食品生产许可证编号",
				"value": "SC11552038220099"
			},
			{
				"name": "产品标准号",
				"value": "GB/T18356"
			}
		],
		"skus": {
			"sku": []
		},
		"props_list": [],
		"props_img": [],
		"property_alias": "",
		"brand": null,
		"props_imgs": {
			"prop_img": []
		},
		"location": null,
		"post_fee": 0,
		"seller_id": "270150672",
		"shop_id": "270150672",
		"seller_info": {
			"nick": "黔货出山酒类专营店",
			"user_num_id": "270150672",
			"sid": "270150672",
			"title": "",
			"zhuy": "http://yangkeduo.com/mall_page.html?mall_id=270150672",
			"shop_name": "黔货出山酒类专营店"
		},
		"_ddf": "ha2",
		"format_check": "ok",
		"desc_img": [
			"https://img.pddpic.com/mms-material-img/2022-08-19/935cc9ff-c20a-4676-a56f-7678ff00e860.jpeg.a.jpeg",
			"https://img.pddpic.com/mms-material-img/2022-08-19/64ea6dac-0d72-4baa-83ca-0d4fb87859c1.jpeg.a.jpeg",
			"https://img.pddpic.com/mms-material-img/2022-08-15/0a1c35c3-c31a-4986-af65-6957261760b7.jpeg.a.jpeg",
			"https://img.pddpic.com/mms-material-img/2022-08-15/45124d07-8d39-4c7d-b5b6-0e11edb790dc.jpeg.a.jpeg",
			"https://img.pddpic.com/mms-material-img/2022-08-15/482e84b0-3b3c-4def-91ab-f3b13c0899b4.jpeg.a.jpeg",
			"https://img.pddpic.com/mms-material-img/2022-08-15/0be69736-9f11-4c8a-a77b-5fe7a871a329.jpeg.a.jpeg",
			"https://img.pddpic.com/mms-material-img/2022-08-15/4ca16f76-00aa-42bd-8b9b-273896157a6e.jpeg.a.jpeg",
			"https://img.pddpic.com/mms-material-img/2022-08-15/973eaf46-2fd8-4a13-b989-081562d5786c.jpeg.a.jpeg"
		],
		"shop_item": [],
		"relate_items": []
	},
	"error": "",
	"secache": "681d21d4926ed5cdb75eb70e68fbb009",
	"secache_time": 1661319851,
	"secache_date": "2022-08-24 13:44:11",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:11 max:10100 all[45=11+18+19];expires:2030-12-31",
	"execution_time": "0.86",
	"server_time": "Beijing/2022-08-24 13:44:11",
	"client_ip": "106.6.39.114",
	"call_args": {
		"num_iid": "402858552583"
	},
	"api_type": "pinduoduo",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "3.13MB",
	"request_id": "gw-1.6305baaad4768",
	"last_id": "1172138545"
}

异常示例相关资料错误码解释

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐