当前位置:网站首页>Taobao/Tmall taobao comments q&a list interface API
Taobao/Tmall taobao comments q&a list interface API
2022-07-30 11:16:00 【cat sharing dry goods】
一、参数
公共参数
请求地址: 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": "坐飞机,Can the high-speed rail pass the security check?",
"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": "Is the chain easy to break??",
"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": "may break,You can change it to something else!",
"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": "Can I go through air security?",
"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": "Air is free,It's a knife after all,G20At the summit, a blade as short as my thumb can't even get through a bus station!",
"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": "May I ask if this blade can be ejected with one click?,Still have to pull it out",
"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": "is pulled out can't pop out",
"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 | 未知错误 | 否 |
边栏推荐
- spark udf accepts and handles null values.
- TestNg整合Retry代码
- 零代码开发入门:快速上手DIY函数公式的5个步骤
- Oracle中SQL语言和分页rownum分析
- @RequestBody 和 @ResponseBody 详解
- (BUG record) No module named PIL
- vscode中写markdown格式笔记的配置过程和相关语法
- High energy output!Tencent's internal MyCat middleware manual, both theoretical and practical
- 电压跟随器不要随便加
- 实现web实时消息推送的7种方案
猜你喜欢

The package of idea is not hollow

Easy gene: human tRNA gene loci showed age-related high DNA methylation | research articles

第1章 Kali与靶机系统

【AGC】增长服务2-应用内消息示例

C语言 — 位运算操作

Selected System Design | Design of CAN Bus Controller Based on FPGA (with Code)

Introduction to IoT Technologies: Chapter 6

实现web实时消息推送的7种方案

HJY-F931A/YJ三相电压继电器

NLP领域的最新研究进展
随机推荐
spark udf accepts and handles null values.
paging
张量篇-初步
Classes and Objects - 6 Default Member Functions
Swift common extension classes and simple encapsulation
High energy output!Tencent's internal MyCat middleware manual, both theoretical and practical
Still using Swagger?I recommend this interface management artifact with zero code intrusion
真正懂经营管理的CIO具备哪些特质
【ASP.NET Core】选项类的依赖注入
Drools 规则引擎一文读懂
Beyond Stream Processing!The 4th real-time computing Flink challenge is launched, and 490,000 prizes are waiting for you!
API 网关 APISIX 在Google Cloud T2A 和 T2D 的性能测试
[ASP.NET Core] Dependency Injection for Option Classes
Telerik2022 R2,有效的自动化测试
久经沙场的程序员居然也被某鱼的假程序员骗了,程序员之间的信任应该是最高的,他一个人毁了这种信任感
电压跟随器不要随便加
PL5920 SOT-23-6 21V、2A、600KHz同步降压DC/DC转换器
WARN: Establishing SSL connection without server's identity verification is not recommended when connecting to mysql
简述controller,service,repository注解的用法(谈谈application.properties的作用)
神经网络学习笔记3——LSTM长短期记忆网络