taobao.item_search_img
为了进行电商平台 的API开发,首先我们需要做下面几件事情。
1)开发者注册一个账号
2)然后为每个taobao应用注册一个应用程序键(App Key) 。
3)下载taobaoAPI的SDK并掌握基本的API基础知识和调用
4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。
5)利用taobao平台的文档中心和API测试工具,对接口进行测试。从而了解返回信息,方便程序获取。
以上是一般taobaoAPI应用开发的关键流程,其中通过taobao文档中心和API测试工具,进行概念了解和接口信息查询很重要。因为这些数据就是我们需要在逐步显示出来的。taobao的API很多,不过都分为了好几个领域,慢慢就会了解深入了。
API示例:
{
"items": {
"pagecount": 1,
"total_results": 49,
"real_total_results": 49,
"item": [
{
"title": "NBA高筒篮球袜防滑底加厚毛巾防臭高帮精英纯棉男士袜球袜男袜子",
"pic_url": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i1/2207347078269/O1CN01agwkDO2AxFiOT0pPe_!!0-item_pic.jpg",
"promotion_price": 39,
"price": 39,
"sales": 15,
"num_iid": "634836493397",
"post_fee": "0.00",
"sample_id": "",
"seller_nick": "茵密纯旗舰店",
"is_tmall": "false",
"area": null,
"detail_url": "//item.taobao.com/item.htm?id=634836493397",
"cid": "50017261"
},
{
"title": "8双28元精英袜街头篮球袜男女棉加厚毛巾底户外马拉松跑步袜骚粉",
"pic_url": "http://g.search.alicdn.com/img/bao/uploaded/i4/i4/751971392/O1CN017xjjT81M9Zpm4vQvX_!!751971392.jpg",
"promotion_price": 56,
"price": 56,
"sales": 1,
"num_iid": "590512190820",
"post_fee": "0.00",
"sample_id": "",
"seller_nick": "户外运动基地002",
"is_tmall": "false",
"area": null,
"detail_url": "//item.taobao.com/item.htm?id=590512190820",
"cid": "50015374"
},
{
"title": "专业篮球袜运动袜子中筒高筒男长袜毛巾精英袜跑步袜训练袜买3送1",
"pic_url": "http://g.search.alicdn.com/img/bao/uploaded/i4/i1/2566618854/TB2oE_jy1SSBuNjy0FlXXbBpVXa_!!2566618854.jpg",
"promotion_price": 77.9,
"price": 14.8,
"sales": 0,
"num_iid": "539136840049",
"post_fee": "0.00",
"sample_id": "",
"seller_nick": "黑白灰袜子",
"is_tmall": "false",
"area": null,
"detail_url": "//item.taobao.com/item.htm?id=539136840049",
"cid": "50015374"
},
{
"title": "加厚长筒毛巾底袜子运动高帮篮球冬季扎裤角包邮买2送一",
"pic_url": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i4/383810128/O1CN01O0uOo81CofKuEqEqb_!!383810128.jpg",
"promotion_price": 9.9,
"price": 9.9,
"sales": 0,
"num_iid": "632139925050",
"post_fee": "0.00",
"sample_id": "",
"seller_nick": "DZ体育",
"is_tmall": "false",
"area": null,
"detail_url": "//item.taobao.com/item.htm?id=632139925050",
"cid": "50017261"
},
{
"title": "黑人月精英专业篮球袜加厚毛巾底中筒高筒运动袜子男",
"pic_url": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i4/546743164/TB2luFSbTIlyKJjSZFMXXXvVXXa_!!546743164.jpg",
"promotion_price": 12.9,
"price": 12.9,
"sales": 1,
"num_iid": "543839578944",
"post_fee": "0.00",
"sample_id": "",
"seller_nick": "三纤体育",
"is_tmall": "false",
"area": null,
"detail_url": "//item.taobao.com/item.htm?id=543839578944",
"cid": "50017261"
},
{
"title": "男袜子纯棉中筒袜秋冬季篮球 袜子男运动袜 精英袜高筒加厚毛巾底",
"pic_url": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i2/2573809305/TB2r.s3eb1K.eBjSszbXXcTHpXa_!!2573809305.jpg",
"promotion_price": 69,
"price": 69,
"sales": 0,
"num_iid": "540352421143",
"post_fee": "0.00",
"sample_id": "",
"seller_nick": "欢姿华贸易店",
"is_tmall": "false",
"area": null,
"detail_url": "//item.taobao.com/item.htm?id=540352421143",
"cid": "201581801"
},
{
"title": "篮球袜子中长筒短筒高帮跑步袜男士户外专业运动加厚毛巾底精英袜",
"pic_url": "http://g.search1.alicdn.com/img/bao/uploaded/i4/i2/271045391/O1CN01nKbpDl1ph7k77Ow3j_!!271045391.jpg",
"promotion_price": 35,
"price": 6.8,
"sales": 0,
"num_iid": "600321872541",
"post_fee": "0.00",
"sample_id": "",
"seller_nick": "金豹队体育用品店",
"is_tmall": "false",
"area": null,
"detail_url": "//item.taobao.com/item.htm?id=600321872541",
"cid": "50017261"
},
注:本帖只展示部分代码,响应参数,注册账号可免费测试或者加v联系"