淘宝API接口,商品详情,产品页面信息接口调用展示

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

1、 获取一个KEY。

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

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

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

更多API调用展示以及获取Key和secret请移步
http://console.open.onebound.cn/console/?i=Turbo

以下是标题API的返回值说明,由于篇幅有限只展示部分代码。

淘宝API接口,商品详情,产品页面信息接口调用展示_第1张图片

{
	"item": {
		"num_iid": "520813250866",
		"title": "三刃木折叠刀创意迷你钥匙扣钥匙刀户外随身多功能锋利开箱小刀",
		"desc_short": "",
		"price": 22.7,
		"total_price": "",
		"suggestive_price": "",
		"orginal_price": 25.8,
		"nick": "欢乐购客栈",
		"num": 600,
		"detail_url": "https://item.taobao.com/item.htm?id=520813250866",
		"pic_url": "https://gw.alicdn.com/imgextra/O1CN01L8HLol1jaonor67d8_!!2596264565.jpg",
		"brand": null,
		"brandId": "",
		"rootCatId": "",
		"cid": 50014822,
		"desc": "

", "item_imgs": [ { "url": "https://gw.alicdn.com/imgextra/O1CN01L8HLol1jaonor67d8_!!2596264565.jpg" }, { "url": "//img.alicdn.com/bao/uploaded/i1/2596264565/O1CN01jcuVBb1jaomeRuMkL_!!0-item_pic.jpg" }, { "url": "//img.alicdn.com/bao/uploaded/i3/2596264565/O1CN01T1p7hu1jaomklDXvC_!!0-item_pic.jpg" }, { "url": "//img.alicdn.com/bao/uploaded/i4/2596264565/O1CN01xbHROv1jaomde2Ldu_!!0-item_pic.jpg" }, { "url": "//img.alicdn.com/bao/uploaded/i3/2596264565/O1CN018BhMpU1jaomhACP0K_!!0-item_pic.jpg" } ], "item_weight": "", "post_fee": 0, "freight": "", "express_fee": "", "ems_fee": "", "shipping_to": "", "video": [], "sample_id": "", "props_name": "1627207:12227458265:颜色分类:GJ018X钥匙刀+送卡片刀+钢圈;1627207:12227458263:颜色分类:长方形带开瓶器+送卡片刀+钢圈;1627207:12227458264:颜色分类:椭圆形带开瓶器+送卡片刀+钢圈", "prop_imgs": { "prop_img": [ { "properties": "1627207:12227458263", "url": "http://img.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg" }, { "properties": "1627207:12227458264", "url": "http://img.alicdn.com/imgextra/i4/2596264565/TB2dTrjdVXXXXXBXpXXXXXXXXXX_!!2596264565.jpg" }, { "properties": "1627207:12227458265", "url": "http://img.alicdn.com/imgextra/i2/2596264565/TB2j22kdVXXXXXdXpXXXXXXXXXX_!!2596264565.jpg" } ] }, "props_imgs": { "prop_img": [ { "properties": "1627207:12227458263", "url": "http://img.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg" }, { "properties": "1627207:12227458264", "url": "http://img.alicdn.com/imgextra/i4/2596264565/TB2dTrjdVXXXXXBXpXXXXXXXXXX_!!2596264565.jpg" }, { "properties": "1627207:12227458265", "url": "http://img.alicdn.com/imgextra/i2/2596264565/TB2j22kdVXXXXXdXpXXXXXXXXXX_!!2596264565.jpg" } ] }, "property_alias": "", "props": [ { "name": "品牌", "value": "三刃木" }, { "name": "产地", "value": "中国" }, { "name": "颜色分类", "value": "长方形带开瓶器+送卡片刀+钢圈,椭圆形带开瓶器+送卡片刀+钢圈,GJ018X钥匙刀+送卡片刀+钢圈" }, { "name": "重量", "value": "26g(含)-50g(含)" }, { "name": "吊牌价", "value": "46" }, { "name": "功能数量", "value": "5个及以下" }, { "name": "展开长度", "value": "10cm以下" }, { "name": "货号", "value": "GJ019C" }, { "name": "附加功能", "value": "刀,开瓶器,螺丝刀,钥匙圈,其他/other" }, { "name": "运动户外项目", "value": "露营" } ], "total_sold": "28", "skus": { "sku": [ { "price": 22.7, "total_price": 0, "orginal_price": 25.8, "properties": "1627207:12227458265", "properties_name": "1627207:12227458265:颜色分类:GJ018X钥匙刀+送卡片刀+钢圈", "quantity": 200, "sku_id": "3144644292458" }, { "price": 37, "total_price": 0, "orginal_price": 39, "properties": "1627207:12227458263", "properties_name": "1627207:12227458263:颜色分类:长方形带开瓶器+送卡片刀+钢圈", "quantity": 200, "sku_id": "3166598625985" }, { "price": 37, "total_price": 0, "orginal_price": 39, "properties": "1627207:12227458264", "properties_name": "1627207:12227458264:颜色分类:椭圆形带开瓶器+送卡片刀+钢圈", "quantity": 200, "sku_id": "3166598625984" } ] }, "seller_id": "2596264565", "sales": 28, "shop_id": "127203758", "props_list": { "1627207:12227458263": "颜色分类:长方形带开瓶器+送卡片刀+钢圈", "1627207:12227458264": "颜色分类:椭圆形带开瓶器+送卡片刀+钢圈", "1627207:12227458265": "颜色分类:GJ018X钥匙刀+送卡片刀+钢圈" }, "seller_info": { "nick": "欢乐购客栈", "item_score": "", "score_p": "", "delivery_score": "", "shop_type": "", "user_num_id": "2596264565", "sid": "127203758", "title": "", "zhuy": "https://shop127203758.taobao.com", "cert": null, "open_time": "7年老店", "credit_score": "tb-rank-cap:2", "shop_name": "欢乐购客栈" }, "tmall": false, "error": "", "location": "广东深圳", "data_from": "Ha", "has_discount": "true", "is_promotion": "true", "promo_type": null, "props_img": { "1627207:12227458263": "http://img.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg", "1627207:12227458264": "http://img.alicdn.com/imgextra/i4/2596264565/TB2dTrjdVXXXXXBXpXXXXXXXXXX_!!2596264565.jpg", "1627207:12227458265": "http://img.alicdn.com/imgextra/i2/2596264565/TB2j22kdVXXXXXdXpXXXXXXXXXX_!!2596264565.jpg" }, "format_check": "ok", "desc_img": [ "http://img.alicdn.com/imgextra/i2/2596264565/TB2nAHqgyC9MuFjSZFoXXbUzFXa_!!2596264565.jpg", "http://img.alicdn.com/imgextra/i3/2596264565/TB2ahCelVXXXXc_XXXXXXXXXXXX_!!2596264565.jpg", "http://img.alicdn.com/imgextra/i4/2596264565/O1CN01wp8a2f1jaomde1XlL_!!2596264565.jpg", "http://img.alicdn.com/imgextra/i1/2596264565/TB2sGR3lVXXXXblXpXXXXXXXXXX_!!2596264565.jpg", "http://img.alicdn.com/imgextra/i1/2596264565/TB2ZBGxlVXXXXXMXXXXXXXXXXXX_!!2596264565.jpg", "http://img.alicdn.com/imgextra/i1/2596264565/TB2MjWklVXXXXcaXXXXXXXXXXXX_!!2596264565.jpg", "http://img.alicdn.com/imgextra/i2/2596264565/TB2UgV3lVXXXXbdXpXXXXXXXXXX_!!2596264565.jpg", "http://img.alicdn.com/imgextra/i2/2596264565/TB2ip5XlVXXXXX2XpXXXXXXXXXX_!!2596264565.jpg" ], "shop_item": [], "relate_items": [] }, "error": "", "secache": "d8bd20b8f0d9df02dd030dd374110240", "secache_time": 1658106915, "secache_date": "2022-07-18 09:15:15", "translate_status": "", "translate_time": 0, "language": { "default_lang": "cn", "current_lang": "cn" }, "reason": "", "error_code": "0000", "cache": 0, "api_info": "today:34 max:10100 all[84=34+14+31];expires:2030-12-31", "execution_time": "1.887", "server_time": "Beijing/2022-07-18 09:15:15", "client_ip": "106.6.35.176", "call_args": { "num_iid": "520813250866", "is_promotion": "1" }, "api_type": "taobao", "translate_language": "zh-CN", "translate_engine": "baidu_api", "server_memory": "5.81MB", "request_id": "gw-3.62d4b42181241", "last_id": "1084422778" }

 

你可能感兴趣的:(1688商品详情,淘宝详情,大数据,大数据,java,python)