根据商品的父类目id查询子类目id信息,通常用获取各级类目对应关系,以便将推广商品归类。业务参数parentId、grade都输入0可查询所有一级类目ID,之后再用其作为parentId查询其子类目。
接口地址:
http://api.tbk.dingdanxia.com/jd/goods_category
在线测试
接口支持https,非大陆服务器(含港澳台)调用接口会出现网络缓慢现象,请联系客服获取国外专线接口
请求参数、 调用方式 GET/POST
参数接口
参数类型
必填
示例
说明
返回参数说明
标记
类型
例子
说明
返回示例
{ "code": 200, "msg": "请求成功【success】", "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": 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": 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": 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 }, { "grade": 0, "name": "非遗", "id": 18528, "parentId": 0 }] }
返回错误码说明
错误码
错误描述
解决办法
200
返回成功
-1
数据返回失败
请查看 msg 返回提示
4001
接口秘钥不能为空
请传入接口秘钥
4002
接口秘钥出错
登录后台查看接口秘钥是否一致
4003
参数不正确
请检查参数是否符合文档要求
4004
服务已到期请及时续费
登录后台续费
4005
该接口当日调用量已超限
升级套餐
4006
无权调用该接口
升级套餐
4007
接口不存在
4009
点卡已用完
请登录控制台-服务购买-充值点卡
4010
请购买接口次数包才能调用此接口
需充值次数包
4011
次数包已用完,请重新购买
需充值次数包
4012
请求客户端ip未加入白名单
将ip加入白名单
4013
联盟账号授权已过期
请登录控制台【授权管理】下重新授权您的相关账号
4014
PID异常
请登录控制台【授权管理】-【淘宝授权】,检查您的推广位PID是否填写,或是否填写正确。
4015
系统异常
服务端处理异常,请等待......或联系网站在线客服反馈。
4017
请求拒绝
调用请求被拒绝,您的账号状态存在异常,请联系平台管理员解除限制。