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"

},

注:本帖只展示部分参数,具体参数可注册账号测试或点击头像联系业务经理,谢谢浏览!

相关推荐
AI_NEW_COME2 分钟前
构建全方位大健康零售帮助中心:提升服务与体验
大数据·人工智能
真的很上进6 分钟前
如何借助 Babel+TS+ESLint 构建现代 JS 工程环境?
java·前端·javascript·css·react.js·vue·html
VinciYan19 分钟前
基于Jenkins+Docker的自动化部署实践——整合Git与Python脚本实现远程部署
python·ubuntu·docker·自动化·jenkins·.net·运维开发
it噩梦20 分钟前
es 中 terms set 使用
大数据·elasticsearch
中科岩创30 分钟前
中科岩创边坡自动化监测解决方案
大数据·网络·物联网
众拾达人38 分钟前
Android自动化测试实战 Java篇 主流工具 框架 脚本
android·java·开发语言
皓木.40 分钟前
Mybatis-Plus
java·开发语言
不良人天码星40 分钟前
lombok插件不生效
java·开发语言·intellij-idea
测试老哥41 分钟前
外包干了两年,技术退步明显。。。。
自动化测试·软件测试·python·功能测试·测试工具·面试·职场和发展
終不似少年遊*43 分钟前
美国加州房价数据分析01
人工智能·python·机器学习·数据挖掘·数据分析·回归算法