为了进行电商平台 lazada 的API开发,首先我们需要做下面几件事情。
1)开发者注册一个账号
2)然后为每个 lazada 应用注册一个应用程序键(App Key) 。
3)下载 lazada API的SDK并掌握基本的API基础知识和调用
4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。
5)利用lazada平台的文档中心和API测试工具,对接口进行测试。从而了解返回信息,方便程序获取。
以上是一般lazada API应用开发的关键流程,其中通过lazada文档中心和API测试工具,进行概念了解和接口信息查询很重要。因为这些数据就是我们需要在逐步显示出来的。lazada 的API很多,不过都分为了好几个领域,慢慢就会了解深入了。
注册链接(获取Key和secret):http://console.open.onebound.cn/console/?i=lucy
版权声明:本文为CSDN博主「Lucy_14707901306」的原创文章,遵循CC 4.0 BY-SA版权协
————————————————
原文链接:https://blog.csdn.net/Alan_751/article/details/123866448
{
“items”: {
“keyword”: “包包”,
“page”: 1,
“real_total_results”: 2200,
“total_results”: 2200,
“pagecount”: 100,
“page_size”: 20,
“data_from”: “app”,
“item”: [
{
“num_iid”: “100008080693”,
“detail_url”: “https://item.jd.com/100007112061.html”,
“title”: “老人头包包女包牛皮单肩包女百搭撞色斜挎包女休闲时尚大容量手提包女士包包送老婆女生生日礼物女友奢侈品 蓝色礼盒装”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/94474/10/25800/449831/62482062E73ae44aa/a0ef976eebaf2ea1.jpg”,
“price”: “249.00”,
“promotion_price”: “249.00”,
“sales”: 0,
“seller_id”: “1000000955”,
“seller”: “老人头女包京东自营旗舰店”
},
{
“num_iid”: “100006682949”,
“detail_url”: “https://item.jd.com/100006682949.html”,
“title”: “啄木鸟 包包女包时尚潮流单肩包链条女包鹿头百搭小方包一鹿有你礼盒送女朋友老婆生日节日礼物”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/210917/8/19466/191562/622afd29Ee75bd964/ab1382700b37718a.jpg”,
“price”: “239.00”,
“promotion_price”: “239.00”,
“sales”: 0,
“seller_id”: “1000083304”,
“seller”: “啄木鸟箱包京东自营旗舰店”
},
{
“num_iid”: “10021246348997”,
“detail_url”: “https://item.jd.com/10033623966816.html”,
“title”: “【MODO】许下的诺言 高级感菱格小包包女夏季2022新款潮时尚链条小方包百搭单肩斜挎包 白色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/187738/28/12410/140809/60e7f6c5E309711bd/36ceea9180cb81a5.jpg”,
“price”: “36.85”,
“promotion_price”: “36.85”,
“sales”: 0,
“seller_id”: “10080553”,
“seller”: “MODO官方旗舰店”
},
{
“num_iid”: “100019166263”,
“detail_url”: “https://item.jd.com/100019166263.html”,
“title”: “蔻兰妮菲(Conraniphi) 包包女包牛皮百搭链条单肩斜挎包简约潮流大容量女士包包腋下包 菱格白”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/102250/36/24655/149079/6247fce8Ed48d5759/250af9864bd1312f.jpg”,
“price”: “242.00”,
“promotion_price”: “242.00”,
“sales”: 0,
“seller_id”: “1000332145”,
“seller”: “Conraniphi女包京东自营旗舰店”
},
{
“num_iid”: “100017453787”,
“detail_url”: “https://item.jd.com/100017453787.html”,
“title”: “蔻一 Cnoles 包包女包牛皮女士斜挎包通勤时尚百搭撞色单肩包手提包袋女式大容量生日礼物送女友 米白色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/145371/9/26116/307046/6245767bE3ed86ef0/aab0823e37def4e1.jpg”,
“price”: “269.00”,
“promotion_price”: “269.00”,
“sales”: 0,
“seller_id”: “1000005753”,
“seller”: “Cnoles蔻一女包京东自营旗舰店”
},
{
“num_iid”: “100010457228”,
“detail_url”: “https://item.jd.com/100010457218.html”,
“title”: “意大利袋鼠(L’ALPINA)牛皮五金经典手提包女简洁单肩包女斜挎包女ins 682011002白配绛红”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/217348/37/16447/522668/6247e036Eb98feb21/5a077502a195ca94.jpg”,
“price”: “305.00”,
“promotion_price”: “305.00”,
“sales”: 0,
“seller_id”: “1000076521”,
“seller”: “L’ALPINA女包京东自营旗舰店”
},
{
“num_iid”: “100015118922”,
“detail_url”: “https://item.jd.com/100015118922.html”,
“title”: “viney牛皮包包女包时尚单肩包女休闲大容量水桶包百搭手提包简约斜挎包女奢侈品送老婆生日礼物送女友 焦糖色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/217464/10/16349/431865/62455accE30bfe3ac/7b1d3494626ee036.jpg”,
“price”: “269.00”,
“promotion_price”: “269.00”,
“sales”: 0,
“seller_id”: “1000079683”,
“seller”: “viney箱包京东自营旗舰店”
},
{
“num_iid”: “100004294235”,
“detail_url”: “https://item.jd.com/100004294235.html”,
“title”: “皮尔卡丹(pierre cardin)单肩斜挎包女新版星轨锁扣小方包翻盖链条包包女包斜挎牛皮礼盒 J0A218-800301P米白”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/162852/37/28931/415302/62441890E1f695de3/3e777a3567bfa250.jpg”,
“price”: “659.00”,
“promotion_price”: “659.00”,
“sales”: 0,
“seller_id”: “1000014704”,
“seller”: “皮尔卡丹箱包京东自营旗舰店”
},
{
“num_iid”: “10021287465748”,
“detail_url”: “https://item.jd.com/10034123573465.html”,
“title”: “【MODO】杨柳春风 高级感小众小包包女2022新款潮夏季时尚质感链条包百搭单肩斜挎包 大号白色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/177749/1/14577/106118/60f5a5b5E6b5d9c03/2a8c4e949ba4c8f2.jpg”,
“price”: “68.00”,
“promotion_price”: “68.00”,
“sales”: 0,
“seller_id”: “10080553”,
“seller”: “MODO官方旗舰店”
},
{
“num_iid”: “100032396590”,
“detail_url”: “https://item.jd.com/100032396590.html”,
“title”: “【人气New款】TUCANO啄木鸟22春夏女士手提包时尚流行腋下包女小包小众樱花粉百搭单肩包女斜挎包包”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/183648/29/21520/114436/62429792E68e329c2/8467f191d5fbbf04.jpg”,
“price”: “189.00”,
“promotion_price”: “189.00”,
“sales”: 0,
“seller_id”: “1000083304”,
“seller”: “啄木鸟箱包京东自营旗舰店”
},
{
“num_iid”: “10021378203703”,
“detail_url”: “https://item.jd.com/10035204140430.html”,
“title”: “【MODO】米迦勒 高级感大容量大包包女2021新款夏季洋气学生单肩托特包百搭斜挎包 米色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/178517/12/18481/109108/61113b1bE672c0133/9c8014d7b48b9e9a.jpg”,
“price”: “66.00”,
“promotion_price”: “66.00”,
“sales”: 0,
“seller_id”: “10080553”,
“seller”: “MODO官方旗舰店”
},
{
“num_iid”: “100013526588”,
“detail_url”: “https://item.jd.com/100013526588.html”,
“title”: “稻草人(MEXICAN)包包女包单肩包时尚链条斜挎小方包今夏流行配色小清新生日礼物 白配绿”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/147773/3/25952/394808/62450a78E2b38ca47/3bcade7f1b1cb00d.jpg”,
“price”: “199.00”,
“promotion_price”: “199.00”,
“sales”: 0,
“seller_id”: “1000012502”,
“seller”: “稻草人女包京东自营旗舰店”
},
{
“num_iid”: “100004040441”,
“detail_url”: “https://item.jd.com/100004040441.html”,
“title”: “老人头(LAORENTOU)包包女包牛皮时尚单肩包女时尚手机包奢侈品菱格链条手提斜挎包女士包包送老婆女生生日礼物送女友 黑色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/192921/12/21826/423062/62482154E2f000875/d33fe51fc5cb1a1f.jpg”,
“price”: “179.00”,
“promotion_price”: “179.00”,
“sales”: 0,
“seller_id”: “1000000955”,
“seller”: “老人头女包京东自营旗舰店”
},
{
“num_iid”: “10020632650740”,
“detail_url”: “https://item.jd.com/10025964058068.html”,
“title”: “CainKenna CK1-210259女包菱格链条包小包单肩斜挎大容量软皮腋下包官网 黑色(小版)”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/123367/21/27431/132458/6247eba6E2efe41fb/edf95df5823d09cf.jpg”,
“price”: “209.00”,
“promotion_price”: “209.00”,
“sales”: 0,
“seller_id”: “731537”,
“seller”: “CainKenna官方旗舰店”
},
{
“num_iid”: “100021260108”,
“detail_url”: “https://item.jd.com/100021260108.html”,
“title”: “金狐狸(FOXER)包包女包牛皮菱格链条单肩包女气质斜挎包女手提女士包包送老婆女生生日礼物女友奢侈品 白色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/214251/30/16268/409870/62482062Ee7cc1b57/c82a66c0f5abffd7.jpg”,
“price”: “269.00”,
“promotion_price”: “269.00”,
“sales”: 0,
“seller_id”: “1000000985”,
“seller”: “金狐狸京东自营旗舰店”
},
{
“num_iid”: “10021825793825”,
“detail_url”: “https://item.jd.com/10041486600214.html”,
“title”: “垦利登包包女包新品单肩斜挎包潮流时尚百搭手提包女士通勤棋盘格子包闺蜜生日礼物送女友女生老婆 棕色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/176486/15/22011/449511/61b40f2aE1e55324e/20d4d342eed05be0.jpg”,
“price”: “106.00”,
“promotion_price”: “106.00”,
“sales”: 0,
“seller_id”: “11568004”,
“seller”: “垦利登官方旗舰店”
},
{
“num_iid”: “100032685788”,
“detail_url”: “https://item.jd.com/100032685788.html”,
“title”: “老人头(LAORENTOU)包包女包牛皮菱格链条斜挎包女气质休闲单肩包女通勤女士包包送老婆女生生日礼物 白色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/99665/17/24389/599254/6248205fE5c99a920/021c90b196e472b3.jpg”,
“price”: “224.00”,
“promotion_price”: “224.00”,
“sales”: 0,
“seller_id”: “1000000955”,
“seller”: “老人头女包京东自营旗舰店”
},
{
“num_iid”: “10021428160585”,
“detail_url”: “https://item.jd.com/10035812852550.html”,
“title”: “COOGI奢侈品包包女包新品单肩包女时尚女士斜挎包百搭链条小方包生日520情人节礼物送女友老婆 宝蓝色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/182441/6/20275/104280/61205d2eE5503f926/b3210afc906739a0.jpg”,
“price”: “1182.00”,
“promotion_price”: “1182.00”,
“sales”: 0,
“seller_id”: “10363440”,
“seller”: “COOGI旗舰店”
},
{
“num_iid”: “100018968138”,
“detail_url”: “https://item.jd.com/100018968138.html”,
“title”: “老人头(LAORENTOU)包包女包牛皮单肩包女时尚大容量奢侈品女包复古手提斜挎包女士包包送老婆女生生日礼物送女友 啡色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/185000/15/22447/265045/62482067Ec1a25c5b/3e8965867f8cf251.jpg”,
“price”: “215.00”,
“promotion_price”: “215.00”,
“sales”: 0,
“seller_id”: “1000000955”,
“seller”: “老人头女包京东自营旗舰店”
},
{
“num_iid”: “100032719148”,
“detail_url”: “https://item.jd.com/100032719148.html”,
“title”: “金狐狸(FOXER)包包女包牛皮时尚链条单肩包女百搭休闲斜挎包女大容量通勤女士包包送老婆生日礼物女友 白色”,
“pic_url”: “http://m.360buyimg.com/mobilecms/jfs/t1/195898/13/22548/296918/62495219E25d05335/62faa1dbe3eb8156.jpg”,
“price”: “279.00”,
“promotion_price”: “279.00”,
“sales”: 0,
“seller_id”: “1000000985”,
“seller”: “金狐狸京东自营旗舰店”
}
]
},
“error_code”: “0000”,
“reason”: “ok”,
“secache”: “b1382a549dcd0f70dd01c69b596e26a3”,
“secache_time”: 1649232273,
“secache_date”: “2022-04-06 16:04:33”,
“translate_status”: “”,
“translate_time”: 0,
“language”: {
“default_lang”: “cn”,
“current_lang”: “cn”
},
“error”: “”,
“cache”: 0,
“api_info”: “today: max:”,
“execution_time”: “2.46”,
“server_time”: “Beijing/2022-04-06 16:04:33”,
“client_ip”: “106.6.32.171”,
“call_args”: {
“q”: “包包”,
“start_price”: “0”,
“end_price”: “0”,
“page”: “1”,
“cat”: “0”
},
“api_type”: “jd”,
“translate_language”: “zh-CN”,
“translate_engine”: “google_new”,
“server_memory”: “0.93MB”,
“last_id”: false
}