淘宝商品评论查询
<h3>接口描述</h3>
<ul>
<li>淘宝天猫商品评论查询</li>
</ul>
<h3>请求地址</h3>
<p><code>https://api.jumdata.com/taobao/goods/rate</code></p>
<h3>请求方式</h3>
<ul>
<li>GET/POST</li>
</ul>
<h3>请求格式</h3>
<ul>
<li>x-www-form-urlencoded</li>
</ul>
<h3>请求参数</h3>
<table>
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必须</th>
<th><div style="width:420px">说明</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>appId</td>
<td>String</td>
<td>是</td>
<td>服务商分配的唯一标识</td>
</tr>
<tr>
<td>timestamp</td>
<td>Long</td>
<td>是</td>
<td>当前时间的毫秒数</td>
</tr>
<tr>
<td>sign</td>
<td>String</td>
<td>是</td>
<td>签名,见签名算法说明</td>
</tr>
<tr>
<td>goodsId</td>
<td>String</td>
<td>是</td>
<td>商品ID</td>
</tr>
<tr>
<td>page</td>
<td>int</td>
<td>否</td>
<td>分页页号,从1开始,默认1</td>
</tr>
</tbody>
</table>
<h3>签名算法说明</h3>
<pre><code>sign = sha256( appId + appSecret + timestamp)</code></pre>
<p>用服务商分配的 appId、服务商分配的 appSecret,当前时间毫秒数 timestamp,按上述顺序拼接成字符串,再进行 sha256 哈希得到。如下:</p>
<pre><code class="language-java">String appId = &quot;xyzxy2121zxyz&quot;;
String timestamp = &quot;1555378976238&quot;;
String appSecret = &quot;efcefcef1121cefcefc1212121&quot;;
String str = appId + appSecret + timestamp;
String sign = sha256(str);</code></pre>
<h3>正确返回样例</h3>
<pre><code class="language-json">{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;成功&quot;,
&quot;taskNo&quot;: &quot;15717813872289846610&quot;,
&quot;charge&quot;: true,
&quot;data&quot;: {
&quot;feedVideoCount&quot;: &quot;0&quot;,
&quot;feedBadCount&quot;: &quot;1&quot;,
&quot;canReport&quot;: &quot;false&quot;,
&quot;range&quot;: &quot;500&quot;,
&quot;firstPageTips&quot;: &quot;淘宝鼓励真实有帮助的评价&quot;,
&quot;allowInteract&quot;: &quot;true&quot;,
&quot;latestSort&quot;: &quot;true&quot;,
&quot;fuzzyRateCount&quot;: &quot;500+&quot;,
&quot;timePeriodDesc&quot;: &quot;近半年&quot;,
&quot;total&quot;: &quot;26&quot;,
&quot;abBucketName&quot;: &quot;default_buckets#-1&quot;,
&quot;feedNotGoodCount&quot;: &quot;2&quot;,
&quot;feedAllCount&quot;: &quot;600&quot;,
&quot;feedStoreCount&quot;: &quot;0&quot;,
&quot;from&quot;: &quot;search-rp&quot;,
&quot;foldCount&quot;: &quot;574&quot;,
&quot;feedAppendCount&quot;: &quot;1&quot;,
&quot;abCode&quot;: &quot;default_buckets&quot;,
&quot;feedNormalCount&quot;: &quot;1&quot;,
&quot;imprItemVOS&quot;: [
{
&quot;attributeId&quot;: &quot;0&quot;,
&quot;fuzzyAspectNum&quot;: &quot;4&quot;,
&quot;labelId&quot;: &quot;rc&quot;,
&quot;fuzzyCount&quot;: &quot;4&quot;,
&quot;count&quot;: &quot;4&quot;,
&quot;percents&quot;: &quot;100&quot;,
&quot;title&quot;: &quot;回头客&quot;,
&quot;type&quot;: &quot;3&quot;,
&quot;aspectNum&quot;: &quot;4&quot;,
&quot;status&quot;: &quot;1&quot;
},
...
],
&quot;totalPage&quot;: &quot;3&quot;,
&quot;feedMediaCount&quot;: &quot;3&quot;,
&quot;showInvite&quot;: &quot;false&quot;,
&quot;feedPicCount&quot;: &quot;3&quot;,
&quot;configMap&quot;: {
&quot;card_version&quot;: &quot;old&quot;,
&quot;show_comments&quot;: &quot;false&quot;
},
&quot;rateList&quot;: [
{
&quot;headFrameUrl&quot;: &quot;&quot;,
&quot;annoy&quot;: &quot;1&quot;,
&quot;addCartUrl&quot;: &quot;https://sku.taobao.com/index.htm?itemId=638051701255&amp;bottomMode=ADDCART&amp;asyncApiType=normalBuy&amp;skuId=4991244403774&quot;,
&quot;allowShieldReview&quot;: &quot;false&quot;,
&quot;repeatBusiness&quot;: &quot;false&quot;,
&quot;userIndexURL&quot;: &quot;&quot;,
&quot;own&quot;: &quot;false&quot;,
&quot;feedbackDate&quot;: &quot;2023-02-19&quot;,
&quot;allowReportUser&quot;: &quot;false&quot;,
&quot;allowInteract&quot;: &quot;true&quot;,
&quot;feedPicList&quot;: [
{
&quot;cover&quot;: &quot;false&quot;,
&quot;thumbnail&quot;: &quot;//img.alicdn.com/imgextra/i2/0/O1CN01oDcSBY1mt5V2aDmhu_!!0-rate.jpg&quot;,
&quot;extraMap&quot;: {
&quot;matchExpression&quot;: &quot;false&quot;
},
&quot;fileId&quot;: &quot;1501107597143993402&quot;,
&quot;status&quot;: &quot;1&quot;
},
{
&quot;cover&quot;: &quot;false&quot;,
&quot;thumbnail&quot;: &quot;//img.alicdn.com/imgextra/i2/0/O1CN014oI3Ur1mt5UwYUSkU_!!0-rate.jpg&quot;,
&quot;extraMap&quot;: {
&quot;matchExpression&quot;: &quot;false&quot;
},
&quot;fileId&quot;: &quot;1501107591621618594&quot;,
&quot;status&quot;: &quot;1&quot;
},
{
&quot;cover&quot;: &quot;false&quot;,
&quot;thumbnail&quot;: &quot;//img.alicdn.com/imgextra/i2/0/O1CN012EwRVI1mt5V42MGHX_!!0-rate.jpg&quot;,
&quot;extraMap&quot;: {
&quot;matchExpression&quot;: &quot;false&quot;
},
&quot;fileId&quot;: &quot;1501107598475883951&quot;,
&quot;status&quot;: &quot;1&quot;
},
{
&quot;cover&quot;: &quot;false&quot;,
&quot;thumbnail&quot;: &quot;//img.alicdn.com/imgextra/i4/0/O1CN01SUq9dL1mt5V0yaoHC_!!0-rate.jpg&quot;,
&quot;extraMap&quot;: {
&quot;matchExpression&quot;: &quot;false&quot;
},
&quot;fileId&quot;: &quot;1501107595671847378&quot;,
&quot;status&quot;: &quot;1&quot;
}
],
&quot;structTagEndSize&quot;: &quot;0&quot;,
&quot;allowReportReview&quot;: &quot;true&quot;,
&quot;feedback&quot;: &quot;整体评价:物流很快,质量很好,客服很赞 &quot;,
&quot;hasDetail&quot;: &quot;true&quot;,
&quot;rateType&quot;: &quot;1&quot;,
&quot;creditLevel&quot;: &quot;8&quot;,
&quot;headPicUrl&quot;: &quot;https://img.alicdn.com/imgextra/i4/O1CN01GbZNxl26Vzotrjqli_!!6000000007668-2-tps-160-160.png&quot;,
&quot;userNick&quot;: &quot;s**9&quot;,
&quot;auctionNumId&quot;: &quot;638051701255&quot;,
&quot;share&quot;: {
&quot;shareSupport&quot;: &quot;true&quot;,
&quot;shareCover&quot;: &quot;//img.alicdn.com/imgextra/i2/0/O1CN01oDcSBY1mt5V2aDmhu_!!0-rate.jpg&quot;,
&quot;shareURL&quot;: &quot;//h5.m.taobao.com/user_comment/comment_detail.html?rateId=1200607838625&amp;sellerId=MX88GMmRzMGMHP0x4vGgYvkR-vFHGPHQGMHcSvHZzOmNT&amp;isEncode=true&quot;,
&quot;detailUrl&quot;: &quot;//h5.m.taobao.com/tnode/index.htm?tnode=page_ratedetail%40ugc%3fpangesture%3dpullrightexit%26navbarHide%3dtrue%26immersive%3dtrue&amp;rateId=1200607838625&amp;headPic=https%3A%2F%2Fimg.alicdn.com%2Fimgextra%2Fi4%2FO1CN01GbZNxl26Vzotrjqli_%21%216000000007668-2-tps-160-160.png&quot;,
&quot;detailShareUrl&quot;: &quot;https://web.m.taobao.com/app/mtb-guang/showcase/transfer?target_page=rate_detail&amp;target_h5=https%3A%2F%2Fh5.m.taobao.com%2Fuser_comment%2Fcomment_detail.html&amp;rateId=1200607838625&quot;
},
&quot;copy&quot;: &quot;false&quot;,
&quot;id&quot;: &quot;1200607838625&quot;,
&quot;skuId&quot;: &quot;4991244403774&quot;,
&quot;structTagList&quot;: [
{
&quot;id&quot;: &quot;1&quot;,
&quot;title&quot;: &quot;整体评价&quot;,
&quot;content&quot;: &quot;物流很快,质量很好,客服很赞&quot;
}
],
&quot;userStar&quot;: &quot;6&quot;,
&quot;userStarPic&quot;: &quot;https://img.alicdn.com/imgextra/i3/O1CN01QZTjHW1F4oegDvuEX_!!6000000000434-2-tps-92-45.png&quot;,
&quot;userMark&quot;: &quot;bTotg04pvf2ZqdsejIDO9HiteMBtCXsx3VtjO3HR88U=&quot;,
&quot;skuVids&quot;: &quot;108398951#22695530097#75366294&quot;,
&quot;interactInfo&quot;: {
&quot;likeCount&quot;: &quot;0&quot;,
&quot;readCount&quot;: &quot;6&quot;,
&quot;alreadyLike&quot;: &quot;false&quot;,
&quot;commentCount&quot;: &quot;0&quot;
},
&quot;auctionTitle&quot;: &quot;阿迪达斯男士须后水100ml天赋激情冰点舒缓保湿修复须后护理特价&quot;,
&quot;createTimeInterval&quot;: &quot;20天前&quot;,
&quot;skuMap&quot;: {
&quot;香味&quot;: &quot;激情须后水(特价)&quot;,
&quot;净含量&quot;: &quot;100ml&quot;,
&quot;香调&quot;: &quot;其他香调&quot;
},
&quot;formalBlackUser&quot;: &quot;false&quot;,
&quot;goldUser&quot;: &quot;false&quot;,
&quot;allowComment&quot;: &quot;true&quot;,
&quot;userId&quot;: &quot;0&quot;,
&quot;allowShieldUser&quot;: &quot;false&quot;,
&quot;allowNote&quot;: &quot;false&quot;,
&quot;feedPicPathList&quot;: [
&quot;//img.alicdn.com/imgextra/i2/0/O1CN01oDcSBY1mt5V2aDmhu_!!0-rate.jpg&quot;,
&quot;//img.alicdn.com/imgextra/i2/0/O1CN014oI3Ur1mt5UwYUSkU_!!0-rate.jpg&quot;,
&quot;//img.alicdn.com/imgextra/i2/0/O1CN012EwRVI1mt5V42MGHX_!!0-rate.jpg&quot;,
&quot;//img.alicdn.com/imgextra/i4/0/O1CN01SUq9dL1mt5V0yaoHC_!!0-rate.jpg&quot;
],
&quot;createTime&quot;: &quot;2月19日&quot;,
&quot;skuValueStr&quot;: &quot;激情须后水(特价); 其他香调; 100ml&quot;
},
...
],
&quot;skuFilter&quot;: &quot;true&quot;,
&quot;feedGoodCount&quot;: &quot;598&quot;,
&quot;userType&quot;: &quot;0&quot;,
&quot;extraInfo&quot;: {
&quot;impr_showtag_id&quot;: &quot;rc;88;50091008-11;50231001-11;50041016-11;50121000-11&quot;,
&quot;newDetail&quot;: &quot;false&quot;,
&quot;impr_showtag&quot;: &quot;回头客;88VIP;无难闻的味道;正品;用上去很好用;发货速度很快&quot;,
&quot;newInteraction&quot;: &quot;false&quot;,
&quot;impr_showtag_sum&quot;: &quot;4;7;8;6;3;3&quot;,
&quot;newList&quot;: &quot;false&quot;,
&quot;impr_showtag_attributeId&quot;: &quot;0;0;50091008;50231001;50041016;50121000&quot;
},
&quot;inviteText&quot;: &quot;&quot;
}
}</code></pre>
<h3>错误返回样例</h3>
<pre><code class="language-json">{
&quot;code&quot;: 400,
&quot;msg&quot;: &quot;商品id不能为空&quot;,
&quot;charge&quot;: false
}</code></pre>
<h3>返回字段说明</h3>
<table>
<thead>
<tr>
<th>字段名</th>
<th><div style="width:420px">说明</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>返回码,详见:code返回码说明</td>
</tr>
<tr>
<td>msg</td>
<td>code对应的描述</td>
</tr>
<tr>
<td>charge</td>
<td>计费标志</td>
</tr>
<tr>
<td>taskNo</td>
<td>本次请求号</td>
</tr>
<tr>
<td>data</td>
<td>返回具体结果,object类型,详见data返回字段描述</td>
</tr>
</tbody>
</table>
<h4>code返回码说明</h4>
<table>
<thead>
<tr>
<th>code</th>
<th><div style="width:420px">说明</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>200</td>
<td>成功(计费)</td>
</tr>
<tr>
<td>400</td>
<td>参数错误</td>
</tr>
<tr>
<td>404</td>
<td>接口地址不正确</td>
</tr>
<tr>
<td>500</td>
<td>系统维护,请稍候再试</td>
</tr>
<tr>
<td>601</td>
<td>接口未开通</td>
</tr>
<tr>
<td>602</td>
<td>账号停用</td>
</tr>
<tr>
<td>603</td>
<td>余额不足请充值</td>
</tr>
<tr>
<td>604</td>
<td>接口停用</td>
</tr>
<tr>
<td>606</td>
<td>调用超限,请稍候再试</td>
</tr>
<tr>
<td>609</td>
<td>请求过于频繁,请稍候再试</td>
</tr>
<tr>
<td>610</td>
<td>请求超时</td>
</tr>
<tr>
<td>999</td>
<td>其他,以实际返回为准</td>
</tr>
</tbody>
</table>