拼多多根据ID取商品详情 API

公共参数

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

参数说明:num_iid:商品ID ;

响应参数

名称类型必须示例值描述

num_iid

String01999629976商品ID

title

String02019新款女装短袖t恤女夏宽松韩版休闲上衣百搭蝙蝠衫五分袖体恤商品标题

price

Float08.8价格

minGroupPrice

String0

maxGroupPrice

String0

total_price

Float0

orginal_price

Float0原价

nick

String0雅怡服饰1688卖家昵称

num

Int0233库存

sales

Int076销量

detail_url

String0http://yangkeduo.com/goods.html?goods_id=1999629976宝贝链接

desc

String0本店默认申通快递【还有百世汇通 中通快递 中通 韵达 邮政】。商家建议尺码仅供参考。如有其它问题请及时联系客服!喜欢的赶紧购买,质量保证,买的放心,穿的也开心!商品备注

item_imgs

Mix0[{"url": "//t00img.yangkeduo.com/t05img/images/2018-06-28/24bcb29df1195edaea840afd3e1bdaf9.jpeg?imageMogr2/strip%7CimageView2/2/w/1300/q/80"}]宝贝图片列表

pic_url

String0//t00img.yangkeduo.com/t05img/images/2018-06-28/24bcb29df1195edaea840afd3e1bdaf9.jpeg?imageMogr2/thumbnail/150x/quality/50宝贝图片

props_name

String0商品属性名

prop_imgs

Mix0{"prop_img": [ {"properties": "0:0;1:1", "url": "//t00img.yangkeduo.com/t10img/images/2018-06-28/5c8f783ab2c4fea0ffea8fac73d8b2c2.jpeg"}]}商品属性图片列表

props

Mix0商品详情

skus

Mix0{"sku": [{"price": "16.56", "total_price": null, "orginal_price": "20.9", "properties": "0:0;1:1", "properties_name": "0:0:颜色:黑色;1:1:尺码:M【75-100斤】", "quantity": 221, "sku_id": 36410965966}]商品规格信息

props_list

Mix0{ "0:0": "颜色:黑色","1:1": "尺码:M【75-100斤】"}商品属性

props_img

Mix0{"0:0;1:1": "//t00img.yangkeduo.com/t10img/images/2018-06-28/5c8f783ab2c4fea0ffea8fac73d8b2c2.jpeg"}属性图片

property_alias

String0商品属性别名

seller_info

Mix0{"nick": "雅怡服饰1688", "city": "", "level": null, "rate": null, "score": 4.27, "delivery_score": 4.37, "item_score": 4.38, "shop_type": "", "user_num_id": "", "sid": 99033, "shop_name": "雅怡服饰1688", "zhuy": "", "menu": [] }卖家信息

shop_item

Mix0[]

relate_items

Mix0[]

返回数据:

{
"item": {
		"destination_type": 2,
		"destination_url": "order_checkout.html",
		"goods": {
			"brand_id": "",
			"cat_id": 8484,
			"cat_id_1": 8439,
			"cat_id_2": 8456,
			"cat_id_3": 8484,
			"cat_id_4": 0,
			"check_quantity": 1,
			"country": "",
			"decoration": [
				{
					"contents": [
						{
							"height": 400,
							"img_url": "https://img.pddpic.com/mms-material-img/2022-09-18/3f89d470-1af8-4dee-b529-6d62aa2ea3b7.png",
							"width": 750
						}
					],
					"enable_share": 0,
					"floor_id": 18102965153,
					"key": "DecImage",
					"priority": 0,
					"type": "text"
				},
				{
					"contents": [
						{
							"height": 330,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965154,
					"key": "DecImage",
					"priority": 1,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965155,
					"key": "DecImage",
					"priority": 2,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1058,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg",
							"width": 760
						}
					],
					"enable_share": 1,
					"floor_id": 18102965156,
					"key": "DecImage",
					"priority": 3,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965157,
					"key": "DecImage",
					"priority": 4,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965158,
					"key": "DecImage",
					"priority": 5,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965159,
					"key": "DecImage",
					"priority": 6,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965160,
					"key": "DecImage",
					"priority": 7,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965161,
					"key": "DecImage",
					"priority": 8,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965162,
					"key": "DecImage",
					"priority": 9,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965163,
					"key": "DecImage",
					"priority": 10,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965164,
					"key": "DecImage",
					"priority": 11,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965165,
					"key": "DecImage",
					"priority": 12,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg",
							"width": 820
						}
					],
					"enable_share": 1,
					"floor_id": 18102965166,
					"key": "DecImage",
					"priority": 13,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965167,
					"key": "DecImage",
					"priority": 14,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965168,
					"key": "DecImage",
					"priority": 15,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 1500,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg",
							"width": 750
						}
					],
					"enable_share": 1,
					"floor_id": 18102965169,
					"key": "DecImage",
					"priority": 16,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 800,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg",
							"width": 800
						}
					],
					"enable_share": 1,
					"floor_id": 18102965170,
					"key": "DecImage",
					"priority": 17,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 800,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/16008ac19768d05e7dee16406ff958a1.jpeg",
							"width": 800
						}
					],
					"enable_share": 1,
					"floor_id": 18102965171,
					"key": "DecImage",
					"priority": 18,
					"type": "image"
				},
				{
					"contents": [
						{
							"height": 800,
							"img_url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/ef1d17b69ebf9449a8bb52459b168c26.jpeg",
							"width": 800
						}
					],
					"enable_share": 1,
					"floor_id": 18102965172,
					"key": "DecImage",
					"priority": 19,
					"type": "image"
				}
			],
			"detail_gallery": [
				{
					"goods_id": 1620002566,
					"height": 400,
					"priority": 8,
					"type": 2,
					"url": "https://img.pddpic.com/mms-material-img/2022-09-18/3f89d470-1af8-4dee-b529-6d62aa2ea3b7.png",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 330,
					"priority": 9,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 10,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1058,
					"priority": 11,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg",
					"width": 760
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 12,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 13,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 14,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 15,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 16,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 17,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 18,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 19,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 20,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 21,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg",
					"width": 820
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 22,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 23,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 24,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 800,
					"priority": 25,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg",
					"width": 800
				},
				{
					"goods_id": 1620002566,
					"height": 800,
					"priority": 26,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/16008ac19768d05e7dee16406ff958a1.jpeg",
					"width": 800
				},
				{
					"goods_id": 1620002566,
					"height": 800,
					"priority": 27,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/ef1d17b69ebf9449a8bb52459b168c26.jpeg",
					"width": 800
				}
			],
			"detail_video_gallery": [],
			"gallery": [
				{
					"goods_id": 1620002566,
					"id": 20373813733,
					"priority": 0,
					"type": 1,
					"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/bcf848aa71c6389607ae7a84b70f1543.jpeg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813734,
					"priority": 1,
					"type": 1,
					"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/176019babfdecffa1d9f98f40b7e99b4.jpeg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813735,
					"priority": 2,
					"type": 1,
					"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/efb5db42397550bffd3211ca6f197498.jpeg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813736,
					"priority": 3,
					"type": 1,
					"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/d209ef7bcc9183c3bb8ca1dfdb108d49.jpeg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813737,
					"priority": 4,
					"type": 1,
					"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/74257ab65f3f00da7a90fde9042fe640.jpeg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813738,
					"priority": 5,
					"type": 1,
					"url": "https://img.pddpic.com/goods/images/2019-08-17/e8fbd9cb-cc74-4caa-9380-84c46d27b008.jpg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813739,
					"priority": 6,
					"type": 1,
					"url": "https://img.pddpic.com/goods/images/2019-08-17/d76f515b-e375-4060-b94e-cf64f6b0964e.jpg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813740,
					"priority": 7,
					"type": 1,
					"url": "https://img.pddpic.com/goods/images/2019-08-17/f2f279b5-6000-4fbe-b99b-7c1cbd7884ea.jpg"
				},
				{
					"goods_id": 1620002566,
					"height": 400,
					"priority": 8,
					"type": 2,
					"url": "https://img.pddpic.com/mms-material-img/2022-09-18/3f89d470-1af8-4dee-b529-6d62aa2ea3b7.png",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 330,
					"priority": 9,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 10,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1058,
					"priority": 11,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg",
					"width": 760
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 12,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 13,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 14,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 15,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 16,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 17,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 18,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 19,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 20,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 21,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg",
					"width": 820
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 22,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 23,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 1500,
					"priority": 24,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg",
					"width": 750
				},
				{
					"goods_id": 1620002566,
					"height": 800,
					"priority": 25,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg",
					"width": 800
				},
				{
					"goods_id": 1620002566,
					"height": 800,
					"priority": 26,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/16008ac19768d05e7dee16406ff958a1.jpeg",
					"width": 800
				},
				{
					"goods_id": 1620002566,
					"height": 800,
					"priority": 27,
					"type": 2,
					"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/ef1d17b69ebf9449a8bb52459b168c26.jpeg",
					"width": 800
				}
			],
			"goods_id": 1620002566,
			"goods_name": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装",
			"goods_property": [
				{
					"key": "发货地",
					"values": [
						"江苏省"
					]
				},
				{
					"key": "面料材质",
					"ref_pid": 346,
					"reference_id": 0,
					"values": [
						"仿皮草"
					]
				},
				{
					"key": "成分含量",
					"ref_pid": 396,
					"reference_id": 0,
					"values": [
						"71%(含)—80%(含)"
					]
				},
				{
					"key": "版型",
					"ref_pid": 318,
					"reference_id": 0,
					"values": [
						"修身"
					]
				},
				{
					"key": "领型",
					"ref_pid": 347,
					"reference_id": 0,
					"values": [
						"圆领"
					]
				},
				{
					"key": "衣长",
					"ref_pid": 319,
					"reference_id": 0,
					"values": [
						"短款"
					]
				},
				{
					"key": "是否带毛领",
					"ref_pid": 1104,
					"reference_id": 0,
					"values": [
						"不带毛领"
					]
				},
				{
					"key": "主风格",
					"ref_pid": 1728,
					"reference_id": 0,
					"values": [
						"气质名媛"
					]
				}
			],
			"goods_property_type": "",
			"goods_type": 1,
			"group": [
				{
					"end_time": 2082729600,
					"orderLimit": 999999,
					"price": "0",
					"require_num": "1",
					"start_time": 1451577600
				},
				{
					"end_time": 2082729600,
					"orderLimit": 999999,
					"price": "0",
					"require_num": "2",
					"start_time": 1451577600
				}
			],
			"group_type": [
				{
					"end_time": 2082729600,
					"orderLimit": 999999,
					"price": "0",
					"require_num": "1",
					"start_time": 1451577600
				},
				{
					"end_time": 2082729600,
					"orderLimit": 999999,
					"price": "0",
					"require_num": "2",
					"start_time": 1451577600
				}
			],
			"hd_thumb_url": "",
			"image_url": "https://omsproductionimg.yangkeduo.com/images/2018-06-06/864126a1f461e606796b2204d18a09e9.jpeg",
			"is_onsale": 1,
			"is_pre_sale": 0,
			"is_sku_onsale": 1,
			"is_subsidy": 0,
			"main_gallery": [
				{
					"goods_id": 1620002566,
					"id": 20373813733,
					"priority": 0,
					"type": 1,
					"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/bcf848aa71c6389607ae7a84b70f1543.jpeg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813734,
					"priority": 1,
					"type": 1,
					"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/176019babfdecffa1d9f98f40b7e99b4.jpeg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813735,
					"priority": 2,
					"type": 1,
					"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/efb5db42397550bffd3211ca6f197498.jpeg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813736,
					"priority": 3,
					"type": 1,
					"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/d209ef7bcc9183c3bb8ca1dfdb108d49.jpeg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813737,
					"priority": 4,
					"type": 1,
					"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/74257ab65f3f00da7a90fde9042fe640.jpeg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813738,
					"priority": 5,
					"type": 1,
					"url": "https://img.pddpic.com/goods/images/2019-08-17/e8fbd9cb-cc74-4caa-9380-84c46d27b008.jpg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813739,
					"priority": 6,
					"type": 1,
					"url": "https://img.pddpic.com/goods/images/2019-08-17/d76f515b-e375-4060-b94e-cf64f6b0964e.jpg"
				},
				{
					"goods_id": 1620002566,
					"id": 20373813740,
					"priority": 7,
					"type": 1,
					"url": "https://img.pddpic.com/goods/images/2019-08-17/f2f279b5-6000-4fbe-b99b-7c1cbd7884ea.jpg"
				}
			],
			"mall_id": 461742,
			"pre_sale_time": "",
			"preview_share_link": "mall_quality_assurance.html?_t_timestamp=comm_share_landing&goods_id=1620002566",
			"prompt_explain": "服饰类商品如出现已洗涤,或吊牌已摘,或显著穿戴痕迹等影响二次销售情形,且无质量问题的,不支持七天无理由退换。",
			"property_card_click": 0,
			"property_show_num": 6,
			"quantity": 1000,
			"second_hand": 0,
			"share_desc": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装",
			"share_link": "goods1.html?goods_id=1620002566&page_from=0&pxq_secret_key=6WPSKBOT2D5ZJLCBJUURUYJD3OUV5XCEB5542FV4SSCLQD2262PQ",
			"share_title": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装",
			"side_sales_tip": "已拼4.2万件",
			"sold_quantity": 42000,
			"thumb_url": "https://omsproductionimg.yangkeduo.com/images/2018-06-06/864126a1f461e606796b2204d18a09e9.jpeg",
			"vas_template_id": [],
			"video_gallery": [],
			"view_img": [
				"https://omsproductionimg.yangkeduo.com/images/2017-12-12/bcf848aa71c6389607ae7a84b70f1543.jpeg",
				"https://omsproductionimg.yangkeduo.com/images/2017-12-12/176019babfdecffa1d9f98f40b7e99b4.jpeg",
				"https://omsproductionimg.yangkeduo.com/images/2017-12-12/efb5db42397550bffd3211ca6f197498.jpeg",
				"https://omsproductionimg.yangkeduo.com/images/2017-12-12/d209ef7bcc9183c3bb8ca1dfdb108d49.jpeg",
				"https://omsproductionimg.yangkeduo.com/images/2017-12-12/74257ab65f3f00da7a90fde9042fe640.jpeg",
				"https://t00img.yangkeduo.com/goods/images/2019-08-17/e8fbd9cb-cc74-4caa-9380-84c46d27b008.jpg",
				"https://t00img.yangkeduo.com/goods/images/2019-08-17/d76f515b-e375-4060-b94e-cf64f6b0964e.jpg",
				"https://t00img.yangkeduo.com/goods/images/2019-08-17/f2f279b5-6000-4fbe-b99b-7c1cbd7884ea.jpg"
			],
			"warehouse": ""
		},
		"mall_entrance": {
			"mall_data": {
				"dsr": {
					"desc_rank_percent": 57,
					"desc_rank_status": 1,
					"desc_score": 4.51,
					"desc_status": 1,
					"hide_rank_info": 0,
					"is_show_mall_star": true,
					"logistics_rank_percent": 57,
					"logistics_rank_status": 1,
					"logistics_score": 4.51,
					"logistics_status": 1,
					"mallRatingTextList": [
						{
							"mallRatingKey": {
								"color": "#58595B",
								"font": 13,
								"txt": "描述相符"
							},
							"mallRatingValue": {
								"backColor": "#FCE5E5",
								"color": "#E02E24",
								"font": 11,
								"txt": "高"
							}
						},
						{
							"mallRatingKey": {
								"color": "#58595B",
								"font": 13,
								"txt": "物流服务"
							},
							"mallRatingValue": {
								"backColor": "#FCE5E5",
								"color": "#E02E24",
								"font": 11,
								"txt": "高"
							}
						},
						{
							"mallRatingKey": {
								"color": "#58595B",
								"font": 13,
								"txt": "服务态度"
							},
							"mallRatingValue": {
								"backColor": "#FCE5E5",
								"color": "#E02E24",
								"font": 11,
								"txt": "高"
							}
						}
					],
					"mallStar": 5,
					"serviceRankPercent": 57,
					"serviceRankStatus": 1,
					"serviceScore": 4.51,
					"serviceStatus": 1
				},

 

  • 20
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
首先,你需要申请一个多多开放平台的账号,并创建一个应用,获应用的app_id和app_secret。 接下来,你可以使用Flask框架来创建一个API服务,使用requests库向多多API发送请求,并将响应返回给客户端。 下面是一个简单的示例代码: ```python from flask import Flask, request, jsonify import requests import hashlib import json app = Flask(__name__) @app.route('/pdd/api', methods=['POST']) def pdd_api(): # 获POST请求的参数 params = request.form.to_dict() # 构造请求参数 params['timestamp'] = str(int(time.time())) params['data_type'] = 'JSON' params['version'] = 'V1.0' params['type'] = 'pdd.ddk.goods.detail' # 计算签名 sign = get_sign(params, app_secret) params['sign'] = sign # 发送请求 response = requests.post('https://gw-api.pinduoduo.com/api/router', data=params) # 解析响应 result = json.loads(response.text) if result['error_response']: return jsonify({'code': 1, 'msg': result['error_response']['error_msg']}) else: return jsonify({'code': 0, 'data': result['goods_detail_response']['goods_details'][0]}) def get_sign(params, app_secret): # 按照参数名进行排序 keys = sorted(params.keys()) # 接字符串 param_str = app_secret for key in keys: param_str += key + str(params[key]) # 计算MD5签名 sign = hashlib.md5(param_str.encode('utf-8')).hexdigest().upper() return sign if __name__ == '__main__': app.run(debug=True, port=5000) ``` 这个示例代码实现了一个获多多商品详情API服务。当客户端发送POST请求到`/pdd/api`时,服务端会将请求参数转发给多多API,并将响应返回给客户端。 在实际开发中,你需要根据多多API的文档来构造请求参数和解析响应。同时,你也需要考虑一些安全问题,比如对API的调用频率进行限制,防止恶意请求等。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值