item_get_app_pro商品详情原数据API

170 阅读5分钟

在电商领域,淘宝作为重要的批发采购平台,拥有丰富的商品资源。对于开发者、商家以及数据分析人员而言,获取 1688 平台上的商品列表信息至关重要。通过 淘宝 商品列表 API 接口,能够批量获取商品的基础信息,如商品名称、价格、销量、商家信息等。这些数据可用于市场调研、竞品分析、价格监控、商品推荐等多个方面,帮助用户更好地了解市场动态,做出合理的商业决策,提升业务效率和竞争力。

item_get_app_pro商品详情原数据

二、技术手段获取原始数据(风险提示:需严格遵守法律边界)

  1. 抓包分析与接口逆向 工具选择:

移动端抓包:Charles(需配置 SSL 证书)、Fiddler(支持 Windows/macOS)。 逆向工程:jadx(APK 反编译)、Frida(动态 Hook)。 操作流程:

抓包分析:

手机连接 Charles 代理,访问淘宝 App 商品详情页,捕获请求。 解析请求 URL(如 h5api.m.taobao.com/h5/mtop.tao… 提取关键参数:data(加密请求体)、sign(签名)。 逆向加密逻辑:

反编译淘宝 App APK,使用 jadx 分析代码,定位加密函数。 通过 Frida Hook 关键方法(如 com.taobao.wireless.security.SecureNative.getSign),获取签名算法。

请求示例

"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
封装好API供应商demo url=o0b.cn/ibrad, wechat id: TaoxiJd 复制链接获取测试
 
apiSecret>&num_iid=914055133797"
headers = {
    "Accept-Encoding": "gzip",
    "Connection": "close"
}
if __name__ == "__main__":
    r = requests.get(url, headers=headers)
    json_obj = r.json()
    print(json_obj)

响应示例

---------------------------------------
{
	"item": {
		"item": {
			"trade": {
				"buyEnable": "true",
				"cartEnable": "true",
				"isBanSale4Oversea": "false"
			},
			"num_iid": "914055133797",
			"title": "东鹏特饮维生素功能性饮料500ml*24整箱加班宿舍维生素牛磺酸饮料",
			"cat_id": "50009863",
			"cat_name": null,
			"brandName": null,
			"sales": null,
			"detail_url": "//item.taobao.com/item.htm?id=914055133797",
			"images": [
				"//img.alicdn.com/bao/uploaded/i3/2212286375180/O1CN013dRdo21o8UfdL8Tnp_!!2212286375180.jpg",
				"//img.alicdn.com/bao/uploaded/i2/2212286375180/O1CN01Af6sx51o8UfcZsaRG_!!2212286375180.jpg",
				"//img.alicdn.com/bao/uploaded/i2/2212286375180/O1CN01HwsVQY1o8Ufd54qlg_!!2212286375180.jpg",
				"//img.alicdn.com/bao/uploaded/i2/2212286375180/O1CN01JScXCT1o8UfbAflSU_!!2212286375180.jpg",
				"//img.alicdn.com/bao/uploaded/i1/2212286375180/O1CN01ZBIS3k1o8UfcNH9Gt_!!2212286375180.jpg"
			],
			"video": null,
			"video_thumbnail": null,
			"properties_cut": "单件净含量 / 品牌 / 系列 / 品名 / 城市 / 产地 / 省份 / 口味 / 包装方式 / 适用场景 / 净含量 / 包装规格",
			"properties": [
				{
					"name": "单件净含量",
					"value": "250ml"
				},
				{
					"name": "品牌",
					"value": "东鹏特饮"
				},
				{
					"name": "系列",
					"value": "东鹏特饮维生素功能饮料250ML*24瓶/箱累了困了东鹏, 体质能量"
				},
				{
					"name": "品名",
					"value": "东鹏特饮维生素能量饮料"
				},
				{
					"name": "城市",
					"value": "广州市"
				},
				{
					"name": "产地",
					"value": "中国大陆"
				},
				{
					"name": "省份",
					"value": "广东省"
				},
				{
					"name": "口味",
					"value": "尝鲜⭐东鹏特饮500ml*1瓶, 东鹏特饮250ml*3瓶, 东鹏特饮250ml*6瓶, 东鹏特饮500ml*3瓶, 东鹏特饮500ml*6瓶, 【整箱】东鹏特饮250ml*24瓶, 【整箱】东鹏特饮500ml*24瓶"
				},
				{
					"name": "包装方式",
					"value": "包装"
				},
				{
					"name": "适用场景",
					"value": "通用"
				},
				{
					"name": "净含量",
					"value": "250.00ml"
				},
				{
					"name": "包装规格",
					"value": "1瓶"
				}
			],
			"desc_url": "//mdetail.tmall.com/templates/pages/desc?id=914055133797",
			"desc_imgs": [
				"//img.alicdn.com/imgextra/i4/2212286375180/O1CN01Lfhf5J1o8UfcNKEb8_!!2212286375180.jpg",
				"//img.alicdn.com/imgextra/i2/2212286375180/O1CN01yzaXu91o8Ufd53Ve2_!!2212286375180.jpg",
				"//img.alicdn.com/imgextra/i1/2212286375180/O1CN01ZRC6pC1o8UfcQdzXY_!!2212286375180.jpg",
				"//img.alicdn.com/imgextra/i2/2212286375180/O1CN014xbfTU1o8Ufac8a0V_!!2212286375180.jpg",
				"//img.alicdn.com/imgextra/i3/2212286375180/O1CN01jxfDlB1o8UfcQh8zg_!!2212286375180.jpg",
				"//img.alicdn.com/imgextra/i3/2212286375180/O1CN01gPBbgr1o8Ufd74wdS_!!2212286375180.jpg",
				"//img.alicdn.com/imgextra/i1/2212286375180/O1CN01o5sny21o8UfbI0XJl_!!2212286375180.jpg",
				"//img.alicdn.com/imgextra/i2/2212286375180/O1CN01XEFzSM1o8UfdjDxbi_!!2212286375180.jpg",
				"//img.alicdn.com/imgextra/i3/2212286375180/O1CN01miBScD1o8UfcNLNJl_!!2212286375180.jpg",
				"//img.alicdn.com/imgextra/i1/2212286375180/O1CN01lDUzJ81o8UfbI0KsI_!!2212286375180.jpg",
				"//img.alicdn.com/imgextra/i1/2212286375180/O1CN01LyRRX41o8Ufcubx09_!!2212286375180.png"
			],
			"skus": {
				"quantity": "800",
				"price": "10.02 - 197.8",
				"promotion_price": null,
				"activity_price": null
			},
			"sku_base": [
				{
					"skuId": "5778174156037",
					"propPath": "31560:37855461035",
					"price": "10.02",
					"promotion_price": "10.02",
					"activity_price": null,
					"quantity": "200"
				},
				{
					"skuId": "5778174156038",
					"propPath": "31560:14083518191",
					"price": "17.8",
					"promotion_price": "17.8",
					"activity_price": null,
					"quantity": "200"
				},
				{
					"skuId": "5778174156039",
					"propPath": "31560:820930773",
					"price": "28.4",
					"promotion_price": "28.4",
					"activity_price": null,
					"quantity": "0"
				},
				{
					"skuId": "5778174156040",
					"propPath": "31560:19118627667",
					"price": "27.8",
					"promotion_price": "27.8",
					"activity_price": null,
					"quantity": "200"
				},
				{
					"skuId": "5778174156041",
					"propPath": "31560:13289356762",
					"price": "53.8",
					"promotion_price": "53.8",
					"activity_price": null,
					"quantity": "200"
				},
				{
					"skuId": "5778174156042",
					"propPath": "31560:13753527118",
					"price": "110",
					"promotion_price": "110",
					"activity_price": null,
					"quantity": "0"
				},
				{
					"skuId": "5778174156043",
					"propPath": "31560:17036215221",
					"price": "197.8",
					"promotion_price": "197.8",
					"activity_price": null,
					"quantity": "0"
				}
			],
			"sku_props": [
				{
					"pid": "31560",
					"name": "口味",
					"values": [
						{
							"vid": "37855461035",
							"name": "尝鲜⭐东鹏特饮500ml*1瓶"
						},
						{
							"vid": "14083518191",
							"name": "东鹏特饮250ml*3瓶"
						},
						{
							"vid": "820930773",
							"name": "东鹏特饮250ml*6瓶"
						},
						{
							"vid": "19118627667",
							"name": "东鹏特饮500ml*3瓶"
						},
						{
							"vid": "13289356762",
							"name": "东鹏特饮500ml*6瓶"
						},
						{
							"vid": "13753527118",
							"name": "【整箱】东鹏特饮250ml*24瓶"
						},
						{
							"vid": "17036215221",
							"name": "【整箱】东鹏特饮500ml*24瓶"
						}
					]
				}
			],
			"sku_images": []
		},
		"delivery": {
			"from": "四川成都",
			"to": "东城区",
			"delivery_fee": "0.00",
			"area_id": "110101"
		},
		"seller": {
			"seller_id": "2212286375180",
			"seller_title": "米仓山超市特价店",
			"shop_title": "粮油干货坊",
			"shop_id": "567855865",
			"shop_url": "//store.taobao.com/shop/view_shop.htm?user_number_id=2212286375180",
			"shop_icon": "//img.alicdn.com/imgextra/i4/2212286375180/O1CN01HsXyjW1o8Uf1prlQy_!!2212286375180.png",
			"user_type": "C",
			"evaluates": [
				{
					"title": "卖家服务",
					"score": "5"
				},
				{
					"title": "宝贝描述",
					"score": "5"
				},
				{
					"title": "物流服务",
					"score": "4.6"
				}
			]
		},
		"_ddf": "gab",
		"format_check": "ok"
	},
	"error": "",
	"secache": "72a7759f8f4782988c2f8a09c6714b31",
	"secache_time": 1746438661,
	"secache_date": "2025-05-05 17:51:01",
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:3 max:10000 all[346=3+5+338];expires:2030-10-30",
	"execution_time": "2.096",
	"server_time": "Beijing/2025-05-05 17:51:01",
	"client_ip": "106.6.47.216",
	"call_args": {
		"num_iid": "914055133797"
	},
	"api_type": "taobao",
	"translate_language": "zh-CN",
	"translate_engine": "google_api",
	"server_memory": "3.57MB",
	"request_id": "gw-1.68188a037d58a",
	"last_id": "4349701679"
}