拼多多商品详情数据、拼多多优惠券信息、拼多多到手价

​​拼多多商城是一个网上购物平台,售卖各类商品,包括服装、鞋类、家居用品、美妆产品、电子产品等。要获取拼多多商品详情数据,您可以通过开放平台的接口或者直接访问拼多多商城的网页来获取商品详情信息。以下是两种常用方法的介绍:

1. 通过拼多多开放平台接口获取商品详情数据:

首先,您需要在开放平台注册成为开发者并创建一个应用,获取到所需的 App Key 和 App Secret 等信息。

使用获取到的 App Key 和 App Secret,进行签名和认证,获取 Access Token。

调用开放平台提供的接口,传入商品 ID 作为参数,获取对应商品的详情页面数据。

请参考开放平台提供的接口文档,了解相应的接口和数据。

2. 直接访问拼多多商城网页并解析商品详情数据:

使用 HTTP 请求库,发送 GET 请求到京东商城的商品详情页面,将商品 ID 作为参数传递给 URL。获取到返回的 HTML 页面,根据页面结构和 DOM 操作技术,解析出商品的详细信息,例如标题、价格、库存、描述、图片等。

请注意,直接解析网页可能会受到页面结构和变动的影响,需要自行编写相关的解析逻辑。

以下是一个使用 Java 编写的示例代码,展示如何通过封装 API 获取商品详情库存数据:

pinduoduo.item_get_app - 获得商品详情数据返回值说明

2.1.请求方式:HTTP POST GET; 演示地址:跨境企业级数据服务商

2.2.请求示例

{
	"item": {
		"num_iid": "1620002566",
		"title": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装",
		"desc_short": "",
		"price": "104.4",
		"total_price": "",
		"suggestive_price": "",
		"orginal_price": "129",
		"nick": "果果家气质女装",
		"num": 27,
		"min_num": 0,
		"detail_url": "http://yangkeduo.com/goods.html?goods_id=1620002566",
		"pic_url": "https://omsproductionimg.yangkeduo.com/images/2018-06-06/864126a1f461e606796b2204d18a09e9.jpeg",
		"brand": null,
		"brandId": "",
		"item_imgs": [
			{
				"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/bcf848aa71c6389607ae7a84b70f1543.jpeg"
			},
			{
				"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/176019babfdecffa1d9f98f40b7e99b4.jpeg"
			},
			{
				"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/efb5db42397550bffd3211ca6f197498.jpeg"
			},
			{
				"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/d209ef7bcc9183c3bb8ca1dfdb108d49.jpeg"
			},
			{
				"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/74257ab65f3f00da7a90fde9042fe640.jpeg"
			},
			{
				"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/e8fbd9cb-cc74-4caa-9380-84c46d27b008.jpg"
			},
			{
				"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/d76f515b-e375-4060-b94e-cf64f6b0964e.jpg"
			},
			{
				"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/f2f279b5-6000-4fbe-b99b-7c1cbd7884ea.jpg"
			}
		],
		"rootCatId": 8439,
		"cid": 23151,
		"favcount": 0,
		"fanscount": 0,
		"crumbs": [],
		"created_time": "",
		"modified_time": "",
		"delist_time": "",
		"desc": "
", "item_weight": "", "item_size": "", "location": "", "post_fee": "", "express_fee": "", "ems_fee": "", "shipping_to": "", "has_discount": "", "video": null, "is_virtual": "", "sample_id": "", "is_promotion": "", "props_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:119128:尺码:S(90斤以下);1226:96784:尺码:M(90-100斤);1226:33651:尺码:L(100-110斤);1226:33652:尺码:XL(110-120斤);1226:33653:尺码:2XL(120-130斤);1226:33656:尺码:3XL(130-140斤);1215:1115501666:颜色:米色两件套(外套+裙子);1215:105309781:颜色:蓝色两件套(外套+裙子)", "prop_imgs": { "prop_img": [ { "properties": "1215:1115500378", "url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg" }, { "properties": "1215:1115501666", "url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg" }, { "properties": "1215:105309781", "url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/2f202934f16f0eee41257b77bf489262.jpeg" } ] }, "property_alias": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:119128:尺码:S(90斤以下);1226:96784:尺码:M(90-100斤);1226:33651:尺码:L(100-110斤);1226:33652:尺码:XL(110-120斤);1226:33653:尺码:2XL(120-130斤);1226:33656:尺码:3XL(130-140斤);1215:1115501666:颜色:米色两件套(外套+裙子);1215:105309781:颜色:蓝色两件套(外套+裙子)", "props": [ { "name": "发货地", "value": "江苏省" }, { "name": "是否带毛领", "value": "不带毛领" } ], "total_sold": "", "skus": { "sku": [ { "price": "104.4", "total_price": "129", "properties": "1215:1115500378;1226:119128", "properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:119128:尺码:S(90斤以下)", "orginal_price": "129", "quantity": 726, "sku_id": 57114357891 }, { "price": "104.4", "total_price": "129", "properties": "1215:1115500378;1226:96784", "properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:96784:尺码:M(90-100斤)", "orginal_price": "129", "quantity": 596, "sku_id": 57114357892 }, { "price": "104.4", "total_price": "129", "properties": "1215:1115500378;1226:33651", "properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33651:尺码:L(100-110斤)", "orginal_price": "129", "quantity": 689, "sku_id": 57114357893 }, { "price": "104.4", "total_price": "129", "properties": "1215:1115500378;1226:33652", "properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33652:尺码:XL(110-120斤)", "orginal_price": "129", "quantity": 844, "sku_id": 57114357894 }, { "price": "104.4", "total_price": "129", "properties": "1215:1115500378;1226:33653", "properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33653:尺码:2XL(120-130斤)", "orginal_price": "129", "quantity": 825, "sku_id": 57114357895 }, { "price": "104.4", "total_price": "129", "properties": "1215:1115500378;1226:33656", "properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33656:尺码:3XL(130-140斤)", "orginal_price": "129", "quantity": 739, "sku_id": 57114357896 }, { "price": "104.4", "total_price": "129", "properties": "1215:1115501666;1226:119128", "properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:119128:尺码:S(90斤以下)", "orginal_price": "129", "quantity": 222, "sku_id": 57114357897 }, { "price": "104.4", "total_price": "129", "properties": "1215:1115501666;1226:96784", "properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:96784:尺码:M(90-100斤)", "orginal_price": "129", "quantity": 846, "sku_id": 57114357898 }, { "price": "104.4", "total_price": "129", "properties": "1215:1115501666;1226:33651", "properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33651:尺码:L(100-110斤)", "orginal_price": "129", "quantity": 683, "sku_id": 57114357899 }, { "price": "104.4", "total_price": "129", "properties": "1215:1115501666;1226:33652", "properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33652:尺码:XL(110-120斤)", "orginal_price": "129", "quantity": 426, "sku_id": 57114357900 }, { "price": "104.4", "total_price": "129", "properties": "1215:1115501666;1226:33653", "properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33653:尺码:2XL(120-130斤)", "orginal_price": "129", "quantity": 711, "sku_id": 57114357901 }, { "price": "104.4", "total_price": "129", "properties": "1215:1115501666;1226:33656", "properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33656:尺码:3XL(130-140斤)", "orginal_price": "129", "quantity": 858, "sku_id": 57114357902 }, { "price": "104.4", "total_price": "129", "properties": "1215:105309781;1226:119128", "properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:119128:尺码:S(90斤以下)", "orginal_price": "129", "quantity": 146, "sku_id": 103851107855 }, { "price": "104.4", "total_price": "129", "properties": "1215:105309781;1226:96784", "properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:96784:尺码:M(90-100斤)", "orginal_price": "129", "quantity": 337, "sku_id": 103851107856 }, { "price": "104.4", "total_price": "129", "properties": "1215:105309781;1226:33651", "properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33651:尺码:L(100-110斤)", "orginal_price": "129", "quantity": 599, "sku_id": 103851107857 }, { "price": "104.4", "total_price": "129", "properties": "1215:105309781;1226:33652", "properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33652:尺码:XL(110-120斤)", "orginal_price": "129", "quantity": 217, "sku_id": 103851107858 }, { "price": "104.4", "total_price": "129", "properties": "1215:105309781;1226:33653", "properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33653:尺码:2XL(120-130斤)", "orginal_price": "129", "quantity": 284, "sku_id": 103851107853 }, { "price": "104.4", "total_price": "129", "properties": "1215:105309781;1226:33656", "properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33656:尺码:3XL(130-140斤)", "orginal_price": "129", "quantity": 681, "sku_id": 103851107854 } ] }, "seller_id": "", "sales": 0, "shop_id": "461742", "props_list": { "1215:1115500378": "颜色:粉色两件套(外套+裙子)", "1226:119128": "尺码:S(90斤以下)", "1226:96784": "尺码:M(90-100斤)", "1226:33651": "尺码:L(100-110斤)", "1226:33652": "尺码:XL(110-120斤)", "1226:33653": "尺码:2XL(120-130斤)", "1226:33656": "尺码:3XL(130-140斤)", "1215:1115501666": "颜色:米色两件套(外套+裙子)", "1215:105309781": "颜色:蓝色两件套(外套+裙子)" }, "seller_info": { "nick": "果果家气质女装", "zhuy": "https://mobile.yangkeduo.com/mall_page.html?mall_id=461742&msn=4433pm74zfzaktrcoppyi6hovu_axbuy&mall_info=%7B%22mall_name%22%3A%22%E6%9E%9C%E6%9E%9C%E5%AE%B6%E6%B0%94%E8%B4%A8%E5%A5%B3%E8%A3%85%22%7D&has_decoration=1", "shop_name": "果果家气质女装" }, "tmall": false, "error": "", "warning": "", "url_log": [], "coupon_activity": "", "stuff_status": "", "shopinfo": [], "method": "", "promo_type": "", "props_img": { "1215:1115500378": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg", "1215:1115501666": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg", "1215:105309781": "https://t00img.yangkeduo.com/goods/images/2018-11-17/2f202934f16f0eee41257b77bf489262.jpeg" }, "_ddf": "cf", "format_check": "ok", "desc_img": [ "https://img.pddpic.com/mms-material-img/2022-09-18/3f89d470-1af8-4dee-b529-6d62aa2ea3b7.png", "https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png", "https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg", "https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-11-17/16008ac19768d05e7dee16406ff958a1.jpeg", "https://t00img.yangkeduo.com/goods/images/2018-11-17/ef1d17b69ebf9449a8bb52459b168c26.jpeg" ], "shop_item": [], "relate_items": [] }, "error": "", "secache": "38dc3c822554ca397f00e5e9b681e8fb", "secache_time": 1692763876, "secache_date": "2023-08-23 12:11:16", "translate_status": "", "translate_time": 0, "language": { "default_lang": "cn", "current_lang": "cn" }

你可能感兴趣的:(电商平台api,python)