API接口使用方法(封装好的电商平台)

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

1、 获取一个KEY。 点击获取

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

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

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

1、公共参数

名称 类型 必须 描述
key String 调用key(必须以GET方式拼接在URL中,演示示例
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版本

2、支持平台

3、部分响应参数示例

4、响应参数

{

"items": {

"page": "1",

"real_total_results": 2000,

"total_results": 2000,

"page_size": 20,

"page_count": 101,

"item": [

{

"title": "秋冬中长款毛衣套头女韩版宽松蝙蝠袖针织衫加厚外套高领冬季女装",

"pic_url": "https://cbu01.alicdn.com/img/ibank/20708698491_1110747443.jpg",

"price": "65.00",

"promotion_price": "65.00",

"sales": 1145,

"num_iid": 555696089192,

"tag_percent": "36%",

"detail_url": "https://detail.1688.com/offer/555696089192.html"

},

{

"title": "阔腿裤套装女春秋装2023年新款气质洋气时尚背带裤两件套女装",

"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01VQXxPC23nuNOuU1Zh_!!2822787301-0-cib.jpg",

"price": "66.00",

"promotion_price": "66.00",

"sales": 197,

"num_iid": 652590084250,

"tag_percent": "58%",

"detail_url": "https://detail.1688.com/offer/652590084250.html"

},

{

"title": "新款2020女装t恤女纯色百搭小半高领打底衫女秋冬新款春夏季小衫",

"pic_url": "https://cbu01.alicdn.com/img/ibank/2017/771/686/4524686177_281843137.jpg",

"price": "8.50",

"promotion_price": "8.50",

"sales": 103,

"num_iid": 556826906955,

"tag_percent": "85%",

"detail_url": "https://detail.1688.com/offer/556826906955.html"

},

{

"title": "港风女装套装裙女森系穿搭新款时尚显瘦针织毛衣配半身裙两件套女",

"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01wWEpuP1zTWSBQu0Wr_!!2215475006715-0-cib.jpg",

"price": "48.00",

"promotion_price": "48.00",

"sales": 1135,

"num_iid": 738977379438,

"tag_percent": "71%",

"detail_url": "https://detail.1688.com/offer/738977379438.html"

},

{

"title": "2023年秋冬新款拉链毛衣针织衫女宽松外穿打底洋气上衣设计感小众",

"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01sYnJQV1Slx4f092ex_!!3295642288-0-cib.jpg",

"price": "25.00",

"promotion_price": "25.00",

"sales": 5270,

"num_iid": 737821668620,

"tag_percent": "14%",

"detail_url": "https://detail.1688.com/offer/737821668620.html"

},

{

"title": "大码女装胖妹妹垂感针织阔腿裤女秋冬复古高腰宽松时尚直筒休闲裤",

"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01LZW7mt1b3Mu5jEE1z_!!2212696363409-0-cib.jpg",

"price": "53.00",

"promotion_price": "53.00",

"sales": 203,

"num_iid": 659457627361,

"tag_percent": "71%",

"detail_url": "https://detail.1688.com/offer/659457627361.html"

},

{

"title": "2023秋冬新款韩版宽松慵懒风针织开衫上衣女装温柔气质毛衣外套女",

"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN0185IS1k1mOOqE9CRLy_!!2212033924944-0-cib.jpg",

"price": "52.00",

"promotion_price": "52.00",

"sales": 440,

"num_iid": 650422969603,

"tag_percent": "25%",

"detail_url": "https://detail.1688.com/offer/650422969603.html"

},

{

"title": "松紧高腰五分裤短裤秋装2023年新款女外穿皮裤显瘦a字PU皮阔腿裤",

"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01bAngHy2558tdvrvSI_!!2210911477474-0-cib.jpg",

"price": "56.00",

"promotion_price": "56.00",

"sales": 105,

"num_iid": 653858327539,

"tag_percent": "75%",

"detail_url": "https://detail.1688.com/offer/653858327539.html"

},

{

"title": "高端缎面白色衬衫女长袖春季2023新款韩版宽松气质职业装休闲衬衣",

"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01a4Ix401LR9bvfUlYx_!!2211466631295-0-cib.jpg",

"price": "42.00",

"promotion_price": "42.00",

"sales": 424,

"num_iid": 656291379327,

"tag_percent": "18%",

"detail_url": "https://detail.1688.com/offer/656291379327.html"

},

{

"title": "名媛小香风针织阔腿裤套装女神范2023春秋新款女洋气小洋装两件套",

"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN018fAwaL1O9hO5WNBqo_!!2201244321663-0-cib.jpg",

"price": "48.00",

"promotion_price": "48.00",

"sales": 255,

"num_iid": 665956259088,

"tag_percent": "62%",

"detail_url": "https://detail.1688.com/offer/665956259088.html"

},

{

"title": "半高领针织毛衣裤子两件套女装秋冬2023新款休闲宽松小个子套装女",

"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01ccMoaJ1XuGJg7QVk7_!!2213200682983-0-cib.jpg",

"price": "106.00",

"promotion_price": "106.00",

"sales": 441,

"num_iid": 726153353758,

"tag_percent": "30%",

"detail_url": "https://detail.1688.com/offer/726153353758.html"

},

{

"title": "秋冬新款阔腿皮裤女休闲宽松直筒长腿裤高腰裤西装裤女装",

"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01Lx2MVh2KRKUniWKS7_!!2141139553-0-cib.jpg",

"price": "56.00",

"promotion_price": "56.00",

"sales": 1844,

"num_iid": 40725770737,

"tag_percent": "25%",

"detail_url": "https://detail.1688.com/offer/40725770737.html"

},

{

"title": "秋冬加厚带帽羊绒女套头宽松短款连帽羊毛衫卫衣慵懒针织打底帽衫",

"pic_url": "https://cbu01.alicdn.com/img/ibank/23780993187_1375925770.jpg",

"price": "118.00",

"promotion_price": "118.00",

"sales": 1131,

"num_iid": 634033873309,

"tag_percent": "5%",

"detail_url": "https://detail.1688.com/offer/634033873309.html"

},

相关推荐
QQ同步助手几秒前
C++ 指针进阶:动态内存与复杂应用
开发语言·c++
信徒_2 分钟前
常用设计模式
java·单例模式·设计模式
凯子坚持 c7 分钟前
仓颉编程语言深入教程:基础概念和数据类型
开发语言·华为
神仙别闹8 分钟前
基于C#实现的(WinForm)模拟操作系统文件管理系统
java·git·ffmpeg
小爬虫程序猿9 分钟前
利用Java爬虫速卖通按关键字搜索AliExpress商品
java·开发语言·爬虫
梦想画家10 分钟前
Python Polars快速入门指南:LazyFrames
python·数据分析·polars
程序猿-瑞瑞11 分钟前
24 go语言(golang) - gorm框架安装及使用案例详解
开发语言·后端·golang·gorm
qq_4335545411 分钟前
C++ 面向对象编程:递增重载
开发语言·c++·算法
INFINI Labs11 分钟前
Elasticsearch filter context 的使用原理
大数据·elasticsearch·jenkins·filter·querycache
组合缺一14 分钟前
Solon v3.0.5 发布!(Spring 可以退休了吗?)
java·后端·spring·solon