淘宝客API
京东API
拼多多API
唯品会API
苏宁API
开放平台API
美团平台
生活服务
考拉海购
点击获取APKEY

正常 商品类目查询

更新时间:2020-09-03 12:39:51

请求链接: http://api.web.ecapi.cn/jingdong/getItemCateInfo
请求实例: http://api.web.ecapi.cn/jingdong/getItemCateInfo?apkey=登录会员中心查看&parent_id=0&grade=0 (注:此实例中的密钥为登录用户的真实密钥,不登录不显示,请妥善保管,切勿泄露!)
注意事项:如调用接口时数据返回异常,则需对接口中的【中文】及含有【空格】的数据进行Urlencode编码,然后再试。
会员限制: 全部会员 (新用户注册立刻送7天V1付费会员【注:赠送会员可使用全部接口,但调用频率与免费会员一致,免费会员调用频率可参考会员等级说明】)
频率说明: 不同会员级别调用频率不同,具体可见会员升级页面介绍。会员升级传送门
使用说明: 商品类目查询
必看注意:为保障接口安全及使用效率,调用本站接口前需先 添加IP白名单 (IP地址测试),若IP不固定且无服务器,可通过“优惠推荐”中的链接购买阿里云服务器来调用接口。禁止以插件(包括但不仅限于浏览器插件及手机插件)形式使用接口,禁止将接口重新打包销售或转卖,一经发现,将做帐号封禁处理。
优惠推荐:高性能云服务器2折起,普惠上云,仅需234元/年 ->>立即抢购<<-

使用说明

暂无说明

请求参数

参数类型请求参数参考值是否必须说明
apkeyStringxxxxxxx用户中心 - 系统设置 - 平台设置 中查看APKEY密钥 (点击进入)*必要
parent_idNumber0父类目id(一级父类目为0)
gradeNumber0类目级别 0,1,2 代表一、二、三级类目

返回参数

返回参数类型参数说明扩展说明
idNumber类目id
parentIdNumber父节点Id
gradeNumber类目级别
nameString类目名称

Json返回示例

{"code":200,"data":[{"grade":0,"name":"数码","id":652,"parentId":0},{"grade":0,"name":"电脑、办公","id":670,"parentId":0},{"grade":0,"name":"家用电器","id":737,"parentId":0},{"grade":0,"name":"食品饮料","id":1320,"parentId":0},{"grade":0,"name":"服饰内衣","id":1315,"parentId":0},{"grade":0,"name":"美妆护肤","id":1316,"parentId":0},{"grade":0,"name":"运动户外","id":1318,"parentId":0},{"grade":0,"name":"母婴","id":1319,"parentId":0},{"grade":0,"name":"家居日用","id":1620,"parentId":0},{"grade":0,"name":"图书","id":1713,"parentId":0},{"grade":0,"name":"礼品","id":1672,"parentId":0},{"grade":0,"name":"音乐","id":4051,"parentId":0},{"grade":0,"name":"影视","id":4052,"parentId":0},{"grade":0,"name":"文娱","id":4053,"parentId":0},{"grade":0,"name":"本地生活/旅游出行","id":4938,"parentId":0},{"grade":0,"name":"钟表","id":5025,"parentId":0},{"grade":0,"name":"数字内容","id":5272,"parentId":0},{"grade":0,"name":"厨具","id":6196,"parentId":0},{"grade":0,"name":"珠宝首饰","id":6144,"parentId":0},{"grade":0,"name":"玩具乐器","id":6233,"parentId":0},{"grade":0,"name":"宠物生活","id":6994,"parentId":0},{"grade":0,"name":"汽车用品","id":6728,"parentId":0},{"grade":0,"name":"医药保健","id":9192,"parentId":0},{"grade":0,"name":"家装建材","id":9855,"parentId":0},{"grade":0,"name":"家具","id":9847,"parentId":0},{"grade":0,"name":"手机","id":9987,"parentId":0},{"grade":0,"name":"测试分类","id":9259,"parentId":0},{"grade":0,"name":"鞋靴","id":11729,"parentId":0},{"grade":0,"name":"生鲜","id":12218,"parentId":0},{"grade":0,"name":"酒类","id":12259,"parentId":0},{"grade":0,"name":"团购","id":12367,"parentId":0},{"grade":0,"name":"整车","id":12379,"parentId":0},{"grade":0,"name":"农资园艺","id":12473,"parentId":0},{"grade":0,"name":"处方药","id":13314,"parentId":0},{"grade":0,"name":"教育培训","id":13678,"parentId":0},{"grade":0,"name":"二手商品","id":13765,"parentId":0},{"grade":0,"name":"邮币","id":13887,"parentId":0},{"grade":0,"name":"IP","id":13996,"parentId":0},{"grade":0,"name":"工业品","id":14065,"parentId":0},{"grade":0,"name":"测试","id":14379,"parentId":0},{"grade":0,"name":"房地产","id":15083,"parentId":0},{"grade":0,"name":"艺术品","id":15126,"parentId":0},{"grade":0,"name":"家纺","id":15248,"parentId":0},{"grade":0,"name":"家庭清洁/纸品","id":15901,"parentId":0},{"grade":0,"name":"京东服务","id":15980,"parentId":0},{"grade":0,"name":"个人护理","id":16750,"parentId":0},{"grade":0,"name":"箱包皮具","id":17329,"parentId":0}],"msg":"数据获取成功."}

code/http_status说明

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