淘宝商品详情APi接口(原数据APP、h5)

为了进行此平台API的调用,首先我们需要做下面几件事情。

1、 获取一个KEY。

2、 参考API文档里的接入方式和示例。

3、查看测试工具是否有需要的接口,响应实例的返回字段是否符合参数要求。

4、利用平台的文档中心和API测试工具,对接口进行测试、程序获取。

需要更多API调试请移步注册API账号
http://console.open.onebound.cn/console/?i=Turbo

公共参数

名称 类型 必须 描述
key String 调用key  点击获取测试key和secret
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=520813250866

参数说明:num_iid:淘宝商品ID

返回结果,因字数限制只展示了部分代码

{
		"item": {
			"apiStack": [
				{
					"name": "esi",
					"value": {
						"consumerProtection": {
							"items": [
								{
									"title": "付款后48小时内发货"
								},
								{
									"desc": "8天退货,退货邮费买家承担",
									"title": "8天退货"
								},
								{
									"desc": "商品在运输途中出现破损的,消费者可向卖家提出补寄申请,可补寄1次,补寄邮费由买家承担",
									"title": "1次破损补寄"
								},
								{
									"desc": "购买该商品,每笔成交都会有相应金额捐赠给公益。感谢您的支持,愿公益的快乐伴随您每一天。",
									"title": "公益宝贝"
								},
								{
									"title": "集分宝"
								},
								{
									"title": "支付宝支付"
								}
							],
							"passValue": "all"
						},
						"debug": {
							"app": "alidetail",
							"host": "[email protected]"
						},
						"delivery": {
							"addressWeexUrl": "https://market.m.taobao.com/apps/market/detailrax/address-picker.html?spm=a2116h.app.0.0.16d957e9nDYOzv&wh_weex=true",
							"areaId": "330102",
							"completedTo": "杭州 上城 小营",
							"extras": [],
							"from": "广东深圳",
							"overseaContraBandFlag": "false",
							"postage": "快递: 快递包邮",
							"to": "杭州上城"
						},
						"diversion": {
							"detailTopSearch": {
								"url": "https://s.m.taobao.com/h5entry?g_channelSrp=detail&placeholder=合法刀 随身&showText=合法刀 随身&g_historyOn=true&g_csearchdoor_spm=a2141.13130650&itemId=520813250866&detailShopId=127203758"
							},
							"productRecommend": {
								"preloadUrl": "https://gw.alicdn.com/tfs/TB1PS8nBAPoK1RjSZKbXXX1IXXa-1125-1335.png?getAvatar=avatar",
								"request": {
									"api": "mtop.relationrecommend.WirelessRecommend.recommend",
									"params": {
										"appId": "10777",
										"from": "dinamicX",
										"params": "{\"itemid\":520813250866,\"spm\":\"0.0.0.0.hUro0P\",\"sellerid\":2596264565,\"appId\":\"10777\"}"
									},
									"version": "2.0"
								},
								"template": {
									"android": "https://ossgw.alicdn.com/rapid-oss-bucket/template_online/tb_shop_recommend/64005743/tb_shop_recommend_android.xml",
									"ios": "https://ossgw.alicdn.com/rapid-oss-bucket/template_online/tb_shop_recommend/64005743/tb_shop_recommend_ios.plist",
									"name": "tb_shop_recommend",
									"version": "37"
								}
							}
						},
						"extendedData": [],
						"feature": {
							"UTABForceNewSku": "true",
							"bigImageSkuProp": "true",
							"cainiaoNoramal": "true",
							"dailyPrice": "true",
							"enableDpbModule": "false",
							"freshmanRedPacket": "true",
							"guessYouLike": "true",
							"hasCoupon": "true",
							"hasNewCombo": "false",
							"hasSku": "true",
							"newAddress": "true",
							"newIndicator": "true",
							"newPrice": "true",
							"newTaobaoActivity": "true",
							"noShareGroup": "true",
							"openAddOnTools": "false",
							"openGradient": "true",
							"openNewSku": "true",
							"promotion2018": "true",
							"promotion2019": "true",
							"showSku": "true",
							"showSkuThumbnail": "true",
							"superActTime": "false",
							"taobao2018": "true"
						},
						"gallery": [],
						"hybrid": {
							"

你可能感兴趣的:(淘宝详情,笔记,java,开发语言,python)