item_review-获得淘宝商品评论
item_question_answer-淘宝评论问答列表接口
请求示例
<?php // 请求示例 url 默认请求参数已经URL编码处理 // 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.qq1635608656.cn/help/demo/sdk/demo-sign.php $method = "GET"; $url = "https://服务器地址/taobao/item_question_answer/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=632521829807&page=1"; $curl = curl_init(); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE); curl_setopt($curl, CURLOPT_FAILONERROR, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HEADER, true); curl_setopt($curl, CURLOPT_ENCODING, "gzip"); var_dump(curl_exec($curl)); ?>
响应参数
名称 |
类型 |
必须 |
示例值 |
描述 |
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 |
问答信息 |
id |
string |
0 |
293305609635 |
问答id |
question_title |
string |
0 |
坐飞机,高铁能过安检不 |
问题 |
total_answer |
string |
0 |
5 |
回答数 |
creat_time |
string |
0 |
2020-12-31 |
创建时间 |
answer_info |
answer_info[] |
0 |
回答信息 |
抓取到的评论数据有:评论内容、评论日期、评论图片、买家昵称、评论商品属性、评论ID、追评内容、追评图片、视频地址、视频截图。获取测试账号。
响应示例
"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" }