数据接口API

如何获取APKEY?

正常 淘宝商品分类API


请求链接: http://api.gw.21ds.cn/api/platform/getTbCategory
请求实例: http://api.gw.21ds.cn/api/platform/getTbCategory?apkey=登录后即可显示 (注:此实例中的密钥为登录用户的真实密钥,不登录不显示,请妥善保管,切勿泄露!)
今日调用统计: 暂无统计
会员限制: 付费会员 (新用户注册立刻送7天V1付费会员)
频率说明: 不同会员级别调用频率不同,具体可见会员升级页面介绍。
使用说明: 自建分类数据库,数据不定时更新
必看注意:为保障接口安全及使用效率,调用本站接口前需先 添加IP白名单 (IP地址测试),若IP不固定且无服务器,可通过“优惠推荐”中的链接购买阿里云服务器来调用接口。禁止以插件(包括但不仅限于浏览器插件及手机插件)形式使用接口,禁止将接口重新打包销售或转卖,一经发现,将做帐号封禁处理。
优惠推荐:阿里云双11来了,亿元补贴提前领,拼团1折起,新老用户同享!【阿里云双11新客上云仅86元/年】活动时间2019年10月24日-11月11日。>立即抢购<<-

使用说明

自建分类数据库,数据不定时更新

请求参数

参数类型请求参数参考值是否必须说明
apkeyStringxxxxxxx用户中心 - 基础设置 中查看APKEY密钥(*必要
cidNumber0分类ID,默认为0,为顶级分类,输入分类ID后可查询该ID下的所有分类

返回参数

返回参数类型参数说明扩展说明
dataString返回数据
 ├ parent_cidString上级分类ID
 ├ cidNumber当前分类ID
 ├ nameString分类名

Json返回示例

{"code":200,"data":[{"_id":"110201","cid":"110201","parent_cid":"11","name":"主板"},{"_id":"110202","cid":"110202","parent_cid":"11","name":"内存"},{"_id":"110203","cid":"110203","parent_cid":"11","name":"CPU"},{"_id":"110205","cid":"110205","parent_cid":"11","name":"声卡"},{"_id":"110206","cid":"110206","parent_cid":"11","name":"显卡"},{"_id":"110207","cid":"110207","parent_cid":"11","name":"硬盘"},{"_id":"110210","cid":"110210","parent_cid":"11","name":"键盘"},{"_id":"110211","cid":"110211","parent_cid":"11","name":"机箱"},{"_id":"110212","cid":"110212","parent_cid":"11","name":"光驱/刻录/DVD"},{"_id":"110215","cid":"110215","parent_cid":"11","name":"散热设备"},{"_id":"110216","cid":"110216","parent_cid":"11","name":"电视卡/盒"},{"_id":"110502","cid":"110502","parent_cid":"11","name":"品牌液晶显示器"},{"_id":"110508","cid":"110508","parent_cid":"11","name":"摄像头"},{"_id":"110511","cid":"110511","parent_cid":"11","name":"手写输入/绘图板"},{"_id":"50002415","cid":"50002415","parent_cid":"11","name":"键鼠套装"},{"_id":"50003213","cid":"50003213","parent_cid":"11","name":"硬盘盒"},{"_id":"50003321","cid":"50003321","parent_cid":"11","name":"电脑周边"},{"_id":"50003848","cid":"50003848","parent_cid":"11","name":"台机电源"},{"_id":"50003850","cid":"50003850","parent_cid":"11","name":"电竞耳麦"},{"_id":"50008759","cid":"50008759","parent_cid":"11","name":"组装液晶显示器"},{"_id":"50012307","cid":"50012307","parent_cid":"11","name":"有线鼠标"},{"_id":"50012320","cid":"50012320","parent_cid":"11","name":"无线鼠标"},{"_id":"50013014","cid":"50013014","parent_cid":"11","name":"网络/高清播放器"},{"_id":"50013151","cid":"50013151","parent_cid":"11","name":"固态硬盘"},{"_id":"50019041","cid":"50019041","parent_cid":"11","name":"绘图板配件"}],"msg":"success"}

code/http_status说明

code/http_status说明
200数据获取成功
-1数据获取失败
401IP没有添加白名单
429访问次数超限
403关键参数丢失
405请求方式不对