请求地址: https://api-gw.onebound.cn/taobao/item_question_answer
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| 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版本 |
请求参数:num_iid=632521829807&page=1
参数说明:num_iid:商品ID
page:页码
Version: Date:
| 名称 | 类型 | 必须 | 示例值 | 描述 |
|---|---|---|---|---|
| item | item[] | 0 | 淘宝评论问答列表接口 | |
| num_iid | Bigint | 0 | 520813250866 | 宝贝ID |
| title | String | 0 | 三刃木折叠刀过安检创意迷你钥匙扣钥匙刀军刀随身多功能小刀包邮 | 宝贝标题 |
| pic_url | String | 0 | //gd2.alicdn.com/imgextra/i4/2596264565/TB2p30elFXXXXXQXpXXXXXXXXXX_!!2596264565.jpg | 宝贝图片 |
| total_question | Int | 0 | 19 | 问题数 |
| page_size | Int | 0 | 5 | 页码数 |
| item_question | item_question[] | 0 | 问答信息 |
-- 请求示例 url 默认请求参数已经URL编码处理 curl -i "https://api-gw.onebound.cn/taobao/item_question_answer/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=632521829807&page=1"
- {
- "num_iid": "520813250866",
- "title": "三刃木折叠刀过安检创意迷你钥匙扣钥匙刀军刀随身多功能小刀包邮",
- "pic_url": "https://gw.alicdn.com/tfscom/tuitui/i4/2596264565/O1CN01mbmuAB1jaogMUWhv8_!!2596264565.jpg",
- "total_question": "19",
- "page_size": 5,
- "item_question": [
- {
- "id": "293305609635",
- "question_title": "坐飞机,高铁能过安检不",
- "detail_url": "https://market.m.taobao.com/app/mtb/questions-and-answers/pages/detail/index.html?from=answer&spm=a3134.14087530&id=293305609635",
- "total_answer": "2",
- "creat_time": "2020-12-31",
- "answer_info": {
- "id": "293007420174",
- "answer_title": "还没试过,不知道。",
- "answer_time": "2020-12-31",
- "nick": "听**雪",
- "user_logo": "https://wwc.alicdn.com/avatar/getAvatar.do?type=sns&width=64&height=64&userIdStr=M0xLPm84XFhhXHg4OFkSMmQYMCMIPCh-vkPhOH8SMFgT"
- }
- },
- {
- "id": "258412350572",
- "question_title": "小刀打开后有锁吗",
- "detail_url": "https://market.m.taobao.com/app/mtb/questions-and-answers/pages/detail/index.html?from=answer&spm=a3134.14087530&id=258412350572",
- "total_answer": "4",
- "creat_time": "2020-04-02",
- "answer_info": {
- "id": "258440602228",
- "answer_title": "没有锁,但质量不错。",
- "answer_time": "2020-04-03",
- "nick": "风**7",
- "user_logo": "https://wwc.alicdn.com/avatar/getAvatar.do?type=sns&width=64&height=64&userIdStr=M87-v07eM8lIvmRzO8*-vm*hv0kbPkl-MCxWMHkyPmIT"
- }
- },
- {
- "id": "90487630398",
- "question_title": "链子容易断吗?",
- "detail_url": "https://market.m.taobao.com/app/mtb/questions-and-answers/pages/detail/index.html?from=answer&spm=a3134.14087530&id=90487630398",
- "total_answer": "5",
- "creat_time": "2017-07-01",
- "answer_info": {
- "id": "90491346914",
- "answer_title": "可能会断,你可以换别的挂啊!",
- "answer_time": "2017-07-02",
- "nick": "s**堂",
- "user_logo": "https://wwc.alicdn.com/avatar/getAvatar.do?type=sns&width=64&height=64&userIdStr=X8ZIMH*zMkk4MFkWO8Z-PFvWM8xYvGI4vG8Gv0cLPmNT"
- }
- },
- {
- "id": "98809187447",
- "question_title": "能过航空安检吗",
- "detail_url": "https://market.m.taobao.com/app/mtb/questions-and-answers/pages/detail/index.html?from=answer&spm=a3134.14087530&id=98809187447",
- "total_answer": "5",
- "creat_time": "2018-04-17",
- "answer_info": {
- "id": "98818756863",
- "answer_title": "航空就免了,毕竟是把刀,G20峰会时候我大拇指那么短的刀刃连汽车站都过不去!",
- "answer_time": "2018-04-17",
- "nick": "幻***",
- "user_logo": "https://wwc.alicdn.com/avatar/getAvatar.do?type=sns&width=64&height=64&userIdStr=MmPeO8kLvm8YXm*zMm*eO8c0vFQbv0cSXF-IOmMzvGQT"
- }
- },
- {
- "id": "90566746631",
- "question_title": "请问这个刀片是可以一按就弹出来,还是要拔出来的丫",
- "detail_url": "https://market.m.taobao.com/app/mtb/questions-and-answers/pages/detail/index.html?from=answer&spm=a3134.14087530&id=90566746631",
- "total_answer": "4",
- "creat_time": "2017-07-13",
- "answer_info": {
- "id": "90567311785",
- "answer_title": "是拔出来的 不能弹出来",
- "answer_time": "2017-07-13",
- "nick": "成**宝",
- "user_logo": "https://wwc.alicdn.com/avatar/getAvatar.do?type=sns&width=64&height=64&userIdStr=P8cGvCIyMGIYO8QWP0kWvmcbMFxbvC*-Omk0X8xWvGkT"
- }
- }
- ],
- "data_from": "app",
- "error": "",
- "reason": "",
- "error_code": "0000",
- "cache": 0,
- "api_info": "today:34 max:10000",
- "execution_time": 0.598,
- "server_time": "Beijing/2021-04-22 15:57:27",
- "client_ip": "106.6.32.155",
- "call_args": [],
- "api_type": "taobao",
- "translate_language": "zh-CN",
- "translate_engine": "google_cn",
- "server_memory": "6.9MB",
- "request_id": "gw-2.60812c66f2f0c"
- }
- {
- "error": "item-not-found",
- "reason": "商品没找到",
- "error_code": "2000",
- "success": 0,
- "cache": 0,
- "api_info": "today:0 max:10000",
- "execution_time": 0.081,
- "server_time": "Beijing/2020-06-10 23:44:00",
- "call_args": [],
- "api_type": "taobao",
- "request_id": "15ee0ffc041242"}
| 状态代码(error_code) | 状态信息 | 详细描述 | 是否收费 |
|---|---|---|---|
| 0000 | success | 接口调用成功并返回相关数据 | 是 |
| 2000 | Search success but no result | 接口访问成功,但是搜索没有结果 | 是 |
| 4000 | Server internal error | 服务器内部错误 | 否 |
| 4001 | Network error | 网络错误 | 否 |
| 4002 | Target server error | 目标服务器错误 | 否 |
| 4003 | Param error | 用户输入参数错误 | 忽略 |
| 4004 | Account not found | 用户帐号不存在 | 忽略 |
| 4005 | Invalid authentication credentials | 授权失败 | 忽略 |
| 4006 | API stopped | 您的当前API已停用 | 忽略 |
| 4007 | Account stopped | 您的账户已停用 | 忽略 |
| 4008 | API rate limit exceeded | 并发已达上限 | 忽略 |
| 4009 | API maintenance | API维护中 | 忽略 |
| 4010 | API not found with these values | API不存在 | 忽略 |
| 4012 | Please add api first | 请先添加api | 忽略 |
| 4013 | Number of calls exceeded | 调用次数超限 | 忽略 |
| 4014 | Missing url param | 参数缺失 | 忽略 |
| 4015 | Wrong pageToken | 参数pageToken有误 | 忽略 |
| 4016 | Insufficient balance | 余额不足 | 忽略 |
| 4017 | timeout error | 请求超时 | 否 |
| 5000 | unknown error | 未知错误 | 否 |