可供测试的接口案例

Posted xxxyang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了可供测试的接口案例相关的知识,希望对你有一定的参考价值。

接口名称: 网易新闻 POST

接口地址: https://api.apiopen.top/getWangYiNews

{ "page": 1, "count": 5 }

{ "code": 200, "message": "成功!", "result": [ { "path": "https://news.163.com/19/0308/05/E9NLBIT30001875O.html", "image": "http://cms-bucket.ws.126.net/2019/03/08/cdf92f27b0c54b59a7fa5a43789af2f6.png?imageView&thumbnail=140y88&quality=85", "title": "科恩起诉特朗普集团:拖欠我190万美元法律费用", "passtime": "2019-03-08 10:00:35" }, { "path": "https://news.163.com/19/0308/05/E9NL6N950001875O.html", "image": "http://cms-bucket.ws.126.net/2019/03/08/d41c98c5380647d498d7750a252d6d50.png?imageView&thumbnail=140y88&quality=85", "title": "8项罪名被判成立 特朗普前竞选经理或在狱中度余生", "passtime": "2019-03-08 10:00:35" }, { "path": "https://news.163.com/19/0308/04/E9NIC6FI000187R2.html", "image": "http://cms-bucket.ws.126.net/2019/03/08/4e847fe7b19a4c4491d070019bdb94b5.png?imageView&thumbnail=140y88&quality=85", "title": "外媒:洛马公司获多份合同 成美中俄导弹竞赛大赢家", "passtime": "2019-03-08 10:00:35" }, { "path": "https://news.163.com/19/0308/04/E9NH2IH00001875P.html", "image": "http://cms-bucket.ws.126.net/2019/03/08/4349ab34f7ad47ca953846d238110412.png?imageView&thumbnail=140y88&quality=85", "title": "云南临沧市永德县发生4.4级地震 震源深度11千米", "passtime": "2019-03-08 10:00:35" }, { "path": "https://news.163.com/19/0308/03/E9NESUVP0001875P.html", "image": "http://cms-bucket.ws.126.net/2019/03/08/24be838d8be944e18b063b57b914b707.png?imageView&thumbnail=140y88&quality=85", "title": "四川乐山共享单车堆满2亩农田 农田主:租金还没付", "passtime": "2019-03-08 10:00:35" } ] }

 

接口名称: 淘宝宝贝名称查询 GET

接口地址: https://suggest.taobao.com/sug

{ "code": "utf-8", "q": "玩具" }

{ "result": [ [ "玩具 男孩", "5381207.375896732" ], [ "玩具 女孩", "2026194.9413184582" ], [ "玩具车", "1325851.0505001196" ], [ "玩具抖音同款", "37246.11501750769" ], [ "玩具益智", "1749757.2953119772" ], [ "玩具男孩6岁", "1111147.5882211248" ], [ "玩具收纳架", "160222.11465331682" ], [ "玩具收纳", "673183.5949843555" ], [ "玩具男孩10岁", "172136.27686734518" ], [ "玩具女孩9一10", "18021.47012463343" ] ] }

 

 

接口名称:电话归属地  GET

接口地址: https://tcc.taobao.com/cc/json/mobile_tel_segment.htm

{ "tel": 手机号, }

__GetZoneResult_ = {
mts:‘1517058‘,
province:‘省份‘,
catName:‘中国移动‘,
telString:‘手机号‘,
areaVid:‘30512‘,
ispVid:‘3236139‘,
carrier:‘江西移动‘
}

其他提供几个网上找到的可以使用的给大家参考:https://blog.csdn.net/dling8/article/details/93168896?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

 

以上是关于可供测试的接口案例的主要内容,如果未能解决你的问题,请参考以下文章

Jmeter接口测试案例实践

你想学会的接口测试,工具流程要点案例全剖析

什么是接口测试?接口测试基础案例及Json格式详解

接口测试基础以及postman案例实战

怎么使用jmeter对http协议接口测试

接口测试案例设计