为了进行电商平台 的API开发,首先我们需要做下面几件事情。
1)开发者注册一个账号
2)然后为每个alibaba应用注册一个应用程序键(App Key) 。
3)下载alibaba API的SDK并掌握基本的API基础知识和调用
4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。
5)利用alibaba平台的文档中心和API测试工具,对接口进行测试。从而了解返回信息,方便程序获取。
以上是一般alibaba API应用开发的关键流程,其中通过alibaba文档中心和API测试工具,进行概念了解和接口信息查询很重要。因为这些数据就是我们需要在逐步显示出来的。alibaba 的API很多,不过都分为了好几个领域,慢慢就会了解深入了。
注册链接(获取Key和secret):https://o0b.cn/iinoah
示例演示
"items": {
"item": [
{
"num_iid": "663397696589",
"title": "2023夏季亚马逊速卖通纯色断面街头潮人吊带一步裙连衣裙女",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01qATDZm1spmFKs9guY_!!2212316895816-0-cib.jpg",
"price": "28.00",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=663397696589"
},
{
"num_iid": "658101415759",
"title": "跨境亚马逊2023女装新款裤子时尚纯色PU皮裤性感小脚裤休闲长裤",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN013TVAYe1spmEJhWIXX_!!2212316895816-0-cib.jpg",
"price": "33.80",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=658101415759"
},
{
"num_iid": "656288291671",
"title": "跨境亚马逊2023春季女装新款时尚套装反穿设计感高腰修身两件套",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01LlsJxJ1spmDtEJq48_!!2212316895816-0-cib.jpg",
"price": "36.20",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=656288291671"
},
{
"num_iid": "678694708442",
"title": "跨境亚马逊2023女装新款时尚套装气质格子印花休闲短裙西装两件套",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01Vtqotb1spmHuOpXhx_!!2212316895816-0-cib.jpg",
"price": "49.00",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=678694708442"
},
{
"num_iid": "681090337303",
"title": "2023跨境 女装春夏新款套装 压褶衬衫长袖翻领开衫开叉睡衣两件套",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN0111lJon1spmI7tu01t_!!2212316895816-0-cib.jpg",
"price": "62.00",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=681090337303"
},
{
"num_iid": "656861060615",
"title": "跨境亚马逊2023女装新款裤子PU皮裤性感修身微喇开叉休闲裤长裤女",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01wytbJB1spmEOQk2Ud_!!2212316895816-0-cib.jpg",
"price": "28.50",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=656861060615"
},
{
"num_iid": "651625132986",
"title": "跨境欧美女装2023女装新款裤子万圣节潮流印花加绒高腰休闲裤长裤",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01Sp8GzM1spmDRJv3QW_!!2212316895816-0-cib.jpg",
"price": "29.80",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=651625132986"
},
{
"num_iid": "655715439670",
"title": "跨境欧美女装亚马逊2023女装新款裙子夏季时尚碎花印花无袖连衣裙",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01kpJYda1spmDmumFre_!!2212316895816-0-cib.jpg",
"price": "37.50",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=655715439670"
},
{
"num_iid": "664391601504",
"title": "跨境亚马逊2023女装新款裙子夏季性感短裙露背包臀裙挂脖连衣裙女",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01PAjhG71spmFGSMSVs_!!2212316895816-0-cib.jpg",
"price": "24.80",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=664391601504"
},
{
"num_iid": "673707232414",
"title": "跨境亚马逊2023女装新款时尚套装气质通勤休闲西装外套短裤两件套",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01G6gT1W1spmGwkxcQ3_!!2212316895816-0-cib.jpg",
"price": "52.92",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=673707232414"
},
{
"num_iid": "655435855500",
"title": "跨境亚马逊2023春季女装新款时尚长袖双排扣西装领印花小西装外套",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01zT15Bu1spmDuCgIKV_!!2212316895816-0-cib.jpg",
"price": "34.98",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=655435855500"
},
{
"num_iid": "654164857725",
"title": "跨境亚马逊欧美女装2023春季新款衬衫时尚地图描绘印花长袖上衣女",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01HFWSYi1spmDaLUeIn_!!2212316895816-0-cib.jpg",
"price": "28.80",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=654164857725"
},
{
"num_iid": "680739532300",
"title": "2023跨境亚马逊女式长袖翻领绿色几何图案印花衬衫式欧美风连衣裙",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01UKajXj1spmIGgykBw_!!2212316895816-0-cib.jpg",
"price": "46.06",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=680739532300"
},
{
"num_iid": "656017743440",
"title": "跨境欧美女装2023女装新款裙子夏季时尚性感吊带裙无袖雪纺连衣裙",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN0115zTE51spmDyoDgi5_!!2212316895816-0-cib.jpg",
"price": "39.00",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=656017743440"
},
{
"num_iid": "655308242932",
"title": "2023年亚马逊新品 跨境欧美女装豹纹V领高腰系带不规则女士连衣裙",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01Sugvw31spmDxAqyh7_!!2212316895816-0-cib.jpg",
"price": "33.00",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=655308242932"
},
{
"num_iid": "662346210269",
"title": "跨境亚马逊2023女装新款裙子夏季性感无袖仿皮拉链PU包臀裙连衣裙",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01WQStXO1spmFASJgio_!!2212316895816-0-cib.jpg",
"price": "30.00",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=662346210269"
},
{
"num_iid": "664883251085",
"title": "跨境亚马逊2023女装新款裙子时尚性感吊带裙露背方领包臀连衣裙",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01Yf46PK1spmFGRQ83n_!!2212316895816-0-cib.jpg",
"price": "32.34",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=664883251085"
},
{
"num_iid": "654806704020",
"title": "跨境亚马逊2023女装新款裙子夏季吊带裙性感露背印花深V领连衣裙",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01PKqALH1spmDwAzMyv_!!2212316895816-0-cib.jpg",
"price": "24.00",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=654806704020"
},
{
"num_iid": "661989689078",
"title": "跨境亚马逊欧美女装2023女装新款裙子时尚性感吊带裙百褶裙连衣裙",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01pJflnc1spmF27jRcg_!!2212316895816-0-cib.jpg",
"price": "20.00",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=661989689078"
},
{
"num_iid": "657231469834",
"title": "跨境亚马逊2023女装新款裙子纯色甜美复古长袖翻领宽松大摆连衣裙",
"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01Xs8T4M1spmEBetp8h_!!2212316895816-0-cib.jpg",
"price": "41.50",
"detail_url": "https://detail.m.1688.com/page/index.html?offerId=657231469834"
}
],
"total_results": "389",
"page_size": 20,
"pagecount": 20,
"page": "1",
"url": null
},
"error": "",
"secache": "8f63186e147414f89c57d31c8d9fca2f",
"secache_time": 1679897312,
"secache_date": "2023-03-27 14:08:32",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"reason": "",
"error_code": "0000",
标签:url,detail,alibaba,API,https,2023,com,店铺,page
From: https://blog.51cto.com/u_16182967/6918271