拼多多商品详情
<h3>接口描述</h3>
<ul>
<li>根据商品id获取拼多多商品详细信息</li>
</ul>
<h3>请求地址</h3>
<p><code>https://api.jumdata.com/pinduoduo/goods/detail</code></p>
<h3>请求方式</h3>
<ul>
<li>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>
</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;781176386153000592870169&quot;,
&quot;charge&quot;: true,
&quot;data&quot;: {
&quot;original_price&quot;: 122,
&quot;delivery_time&quot;: &quot;48小时发货&quot;,
&quot;is_onsale&quot;: 1,
&quot;is_subsidy&quot;: 0,
&quot;sku_big_types&quot;: [
{
&quot;spec_key&quot;: &quot;组合&quot;,
&quot;spec_values&quot;: [
{
&quot;17911234806&quot;: &quot;1袋(23年3月产)&quot;
},
{
&quot;17911239622&quot;: &quot;2袋(23年3月产)&quot;
},
{
&quot;17911238664&quot;: &quot;4袋(23年3月产)&quot;
},
{
&quot;19324379219&quot;: &quot;6袋(23年3月产)+赠封口夹&quot;
}
],
&quot;spec_key_id&quot;: 2774
}
],
&quot;ui&quot;: [],
&quot;price&quot;: {
&quot;line_price&quot;: 12200,
&quot;browser_price_style&quot;: 2,
&quot;min_on_sale_group_price&quot;: 1560,
&quot;max_on_sale_normal_price&quot;: 12100,
&quot;unselect_normal_save_price&quot;: 1560,
&quot;max_normal_price&quot;: 12100,
&quot;min_normal_price&quot;: 2100,
&quot;max_on_sale_group_price&quot;: 8580,
&quot;min_group_price&quot;: 1560,
&quot;price_style&quot;: 2,
&quot;max_group_price&quot;: 8580,
&quot;min_on_sale_normal_price&quot;: 2100,
&quot;new_price_prefix&quot;: &quot;券前&quot;
},
&quot;mall_id&quot;: &quot;216822562&quot;,
&quot;cate_name&quot;: &quot;&quot;,
&quot;sub_sections&quot;: [],
&quot;mall_name&quot;: &quot;宝贝粮仓母婴用品店&quot;,
&quot;goods_name_suffix&quot;: &quot;&quot;,
&quot;group&quot;: &quot;&quot;,
&quot;goods_name&quot;: &quot;三元全家甜奶粉400g学生中老年女士成人全脂奶粉&quot;,
&quot;main_figures&quot;: [
&quot;https://img.pddpic.com/mms-material-img/2022-03-14/e5a07569-b73d-410c-b4d1-54585627e4bf.jpeg.a.jpeg&quot;,
&quot;https://img.pddpic.com/mms-material-img/2022-03-14/1ba2e3f4-eafa-4445-8132-32ec7ee29e72.jpeg.a.jpeg&quot;,
&quot;https://img.pddpic.com/mms-material-img/2022-03-14/968c4b2b-fac9-471d-b571-47c62639b04c.jpeg.a.jpeg&quot;,
&quot;https://img.pddpic.com/mms-material-img/2022-03-14/e1963e79-a595-434b-ad40-660f83406498.jpeg.a.jpeg&quot;,
&quot;https://t16img.yangkeduo.com/garner-api/7a50e61c14696e043620d3cc17ce64ba.jpeg&quot;,
&quot;https://t16img.yangkeduo.com/garner-api/97689171a8650ebc919fe43ef21be4ba.jpeg&quot;,
&quot;https://t16img.yangkeduo.com/garner-api/3a73ead8fb32a2f8ff483f75e63ce100.jpeg&quot;,
&quot;https://img.pddpic.com/mms-material-img/2023-01-05/b8b4d074-909b-4fac-bce1-0a8143e0c3d9.jpeg&quot;
],
&quot;goods_id&quot;: 8420152864,
&quot;cate_id&quot;: 20412,
&quot;goods_comment_text&quot;: &quot;&quot;,
&quot;service_promise&quot;: &quot;&quot;,
&quot;detail_figuers&quot;: [
&quot;https://img.pddpic.com/mms-material-img/2022-03-14/dbcb8609-60c7-4f01-9743-33e01981828d.jpeg.a.jpeg&quot;,
&quot;https://img.pddpic.com/mms-material-img/2022-03-14/436333d7-6652-4cd6-846f-3248b75629ca.jpeg.a.jpeg&quot;,
&quot;https://img.pddpic.com/mms-material-img/2022-03-14/3a1a3280-6ec5-4231-b354-36dc29de7346.jpeg.a.jpeg&quot;,
&quot;https://img.pddpic.com/mms-material-img/2022-03-14/d4b64936-e337-485f-92f8-efe4e4f1ae63.jpeg.a.jpeg&quot;,
&quot;https://img.pddpic.com/mms-material-img/2022-03-14/53f82ba1-29db-4173-bfe6-a89d064cf50e.jpeg.a.jpeg&quot;,
&quot;https://img.pddpic.com/mms-material-img/2022-03-14/42f0ecbe-16d2-4bd3-9187-3ee70a3f0bc6.jpeg.a.jpeg&quot;
],
&quot;share_title&quot;: &quot;三元全家甜奶粉400g学生中老年女士成人全脂奶粉&quot;,
&quot;mall_logo&quot;: &quot;https://t00img.yangkeduo.com/goods/images/2019-02-20/cd6c890e-61cf-457e-96e6-f3d6b4d62e65.jpg&quot;,
&quot;desc&quot;: &quot;三元全家甜奶粉400g学生中老年女士成人全脂奶粉&quot;,
&quot;sku_products&quot;: [
{
&quot;is_sale&quot;: 1,
&quot;skus&quot;: &quot;17911234806&quot;,
&quot;quantity&quot;: 56,
&quot;coupon&quot;: 0,
&quot;sku_pre_sale_time&quot;: &quot;&quot;,
&quot;group_price&quot;: &quot;15.6&quot;,
&quot;sku_url&quot;: &quot;https://img.pddpic.com/mms-material-img/2022-03-14/4f1b6a19-58df-4b2b-84d7-ce23342831b2.jpeg.a.jpeg&quot;,
&quot;specs&quot;: [
{
&quot;pname&quot;: &quot;组合&quot;,
&quot;values&quot;: {
&quot;vid&quot;: 17911234806,
&quot;vname&quot;: &quot;1袋(23年3月产)&quot;
},
&quot;pid&quot;: 2774
}
],
&quot;sku_pre_sale_tip&quot;: &quot;&quot;,
&quot;price&quot;: &quot;21.0&quot;,
&quot;is_sku_pre_sale&quot;: 0,
&quot;id&quot;: 1407684908279,
&quot;price_display&quot;: []
},
{
&quot;is_sale&quot;: 1,
&quot;skus&quot;: &quot;17911239622&quot;,
&quot;quantity&quot;: 86,
&quot;coupon&quot;: 0,
&quot;sku_pre_sale_time&quot;: &quot;&quot;,
&quot;group_price&quot;: &quot;29.8&quot;,
&quot;sku_url&quot;: &quot;https://img.pddpic.com/mms-material-img/2022-03-14/d3652a7a-ccd5-47e2-8fa8-d6d76f15607d.jpeg.a.jpeg&quot;,
&quot;specs&quot;: [
{
&quot;pname&quot;: &quot;组合&quot;,
&quot;values&quot;: {
&quot;vid&quot;: 17911239622,
&quot;vname&quot;: &quot;2袋(23年3月产)&quot;
},
&quot;pid&quot;: 2774
}
],
&quot;sku_pre_sale_tip&quot;: &quot;&quot;,
&quot;price&quot;: &quot;41.0&quot;,
&quot;is_sku_pre_sale&quot;: 0,
&quot;id&quot;: 1407684908280,
&quot;price_display&quot;: []
},
{
&quot;is_sale&quot;: 1,
&quot;skus&quot;: &quot;17911238664&quot;,
&quot;quantity&quot;: 55,
&quot;coupon&quot;: 0,
&quot;sku_pre_sale_time&quot;: &quot;&quot;,
&quot;group_price&quot;: &quot;57.8&quot;,
&quot;sku_url&quot;: &quot;https://img.pddpic.com/mms-material-img/2022-03-14/d3652a7a-ccd5-47e2-8fa8-d6d76f15607d.jpeg.a.jpeg&quot;,
&quot;specs&quot;: [
{
&quot;pname&quot;: &quot;组合&quot;,
&quot;values&quot;: {
&quot;vid&quot;: 17911238664,
&quot;vname&quot;: &quot;4袋(23年3月产)&quot;
},
&quot;pid&quot;: 2774
}
],
&quot;sku_pre_sale_tip&quot;: &quot;&quot;,
&quot;price&quot;: &quot;81.0&quot;,
&quot;is_sku_pre_sale&quot;: 0,
&quot;id&quot;: 1407684908281,
&quot;price_display&quot;: []
},
{
&quot;is_sale&quot;: 1,
&quot;skus&quot;: &quot;19324379219&quot;,
&quot;quantity&quot;: 56,
&quot;coupon&quot;: 1,
&quot;sku_pre_sale_time&quot;: &quot;&quot;,
&quot;group_price&quot;: &quot;85.8&quot;,
&quot;sku_url&quot;: &quot;https://img.pddpic.com/mms-material-img/2022-03-14/98540a08-aac6-47e7-a0eb-b88a85823f42.jpeg.a.jpeg&quot;,
&quot;specs&quot;: [
{
&quot;pname&quot;: &quot;组合&quot;,
&quot;values&quot;: {
&quot;vid&quot;: 19324379219,
&quot;vname&quot;: &quot;6袋(23年3月产)+赠封口夹&quot;
},
&quot;pid&quot;: 2774
}
],
&quot;sku_pre_sale_tip&quot;: &quot;&quot;,
&quot;price&quot;: &quot;121.0&quot;,
&quot;is_sku_pre_sale&quot;: 0,
&quot;id&quot;: 1407684908282,
&quot;price_display&quot;: []
}
],
&quot;activity&quot;: [],
&quot;thumb&quot;: &quot;https://img.pddpic.com/gaudit-image/2022-03-14/de6cf3407f6099d7a01ccfce84cc18d5.jpeg&quot;,
&quot;side_sales_tip&quot;: &quot;&quot;,
&quot;title&quot;: &quot;三元全家甜奶粉400g学生中老年女士成人全脂奶粉&quot;,
&quot;platform&quot;: &quot;拼多多商品详情&quot;,
&quot;sold_total&quot;: 0,
&quot;video_url&quot;: &quot;https://video3.pddpic.com/i1/2021-07-27/8cbfcdc92c2f1ef6497b10f38bc42803.mp4&quot;,
&quot;mall_goods_num&quot;: 106,
&quot;pre_sale_stamp&quot;: &quot;&quot;,
&quot;prices&quot;: 15.6,
&quot;is_pre_sale&quot;: 0,
&quot;quantity&quot;: 978,
&quot;goods_star&quot;: &quot;&quot;,
&quot;sales_tip&quot;: &quot;已拼10万+件&quot;,
&quot;mall_data_dsr&quot;: &quot;&quot;,
&quot;goods_local&quot;: &quot;&quot;,
&quot;postage&quot;: &quot;全场包邮&quot;,
&quot;cate_id4&quot;: 0,
&quot;cate_id3&quot;: 20412,
&quot;cate_id2&quot;: 6567,
&quot;cate_id1&quot;: 6536,
&quot;section_list&quot;: [],
&quot;goods_comment&quot;: 931,
&quot;properties&quot;: [
{
&quot;reference_id&quot;: 2432,
&quot;ref_pid&quot;: 310,
&quot;values&quot;: [
&quot;三元&quot;
],
&quot;key&quot;: &quot;品牌&quot;
},
{
&quot;reference_id&quot;: 0,
&quot;ref_pid&quot;: 677,
&quot;values&quot;: [
&quot;袋装&quot;
],
&quot;key&quot;: &quot;包装方式&quot;
},
{
&quot;reference_id&quot;: 0,
&quot;ref_pid&quot;: 714,
&quot;values&quot;: [
&quot;400g&quot;
],
&quot;key&quot;: &quot;净含量&quot;
},
{
&quot;reference_id&quot;: 0,
&quot;ref_pid&quot;: 905,
&quot;values&quot;: [
&quot;含蔗糖&quot;
],
&quot;key&quot;: &quot;是否含蔗糖&quot;
},
{
&quot;reference_id&quot;: 0,
&quot;ref_pid&quot;: 338,
&quot;values&quot;: [
&quot;成人&quot;
],
&quot;key&quot;: &quot;适用人群&quot;
},
{
&quot;ref_pid&quot;: -5355,
&quot;values&quot;: [
&quot;中国大陆/河北省/石家庄市&quot;
],
&quot;key&quot;: &quot;产地&quot;
},
{
&quot;values&quot;: [
&quot;河南省&quot;
],
&quot;key&quot;: &quot;发货地&quot;
},
{
&quot;reference_id&quot;: 0,
&quot;ref_pid&quot;: 405,
&quot;values&quot;: [
&quot;2023-03-01&quot;
],
&quot;key&quot;: &quot;生产日期&quot;
},
{
&quot;reference_id&quot;: 0,
&quot;ref_pid&quot;: 406,
&quot;values&quot;: [
&quot;540天&quot;
],
&quot;key&quot;: &quot;保质期&quot;
},
{
&quot;reference_id&quot;: 0,
&quot;ref_pid&quot;: 743,
&quot;values&quot;: [
&quot;SC10513018400046&quot;
],
&quot;key&quot;: &quot;食品生产许可证编号&quot;
},
{
&quot;reference_id&quot;: 0,
&quot;ref_pid&quot;: 740,
&quot;values&quot;: [
&quot;GB19644&quot;
],
&quot;key&quot;: &quot;产品标准号&quot;
}
],
&quot;promotion&quot;: {
&quot;mall_promotion_new_cell&quot;: {
&quot;cell_detail_list&quot;: [
{
&quot;copy_writing&quot;: &quot;再拼179件后恢复20元起&quot;,
&quot;copy_writing_color&quot;: &quot;#E02E24&quot;,
&quot;background_color&quot;: &quot;#FFFFFF&quot;,
&quot;cell_tag_type&quot;: 6,
&quot;frame_color&quot;: &quot;#E02E24&quot;
},
{
&quot;copy_writing&quot;: &quot;2件9.9折&quot;,
&quot;copy_writing_color&quot;: &quot;#E02E24&quot;,
&quot;background_color&quot;: &quot;#FFFFFF&quot;,
&quot;cell_tag_type&quot;: 26,
&quot;frame_color&quot;: &quot;#E02E24&quot;
},
{
&quot;copy_writing&quot;: &quot;满100减5&quot;,
&quot;copy_writing_color&quot;: &quot;#E02E24&quot;,
&quot;background_color&quot;: &quot;#FFFFFF&quot;,
&quot;cell_tag_type&quot;: 4,
&quot;frame_color&quot;: &quot;#E02E24&quot;
}
]
}
}
}
}</code></pre>
<h3>查无返回样例</h3>
<pre><code>{
&quot;msg&quot;: &quot;未查询到商品信息&quot;,
&quot;code&quot;: 201,
&quot;taskNo&quot;: &quot;91022205788462492535&quot;,
&quot;charge&quot;: true
}</code></pre>
<h3>错误返回样例</h3>
<pre><code class="language-json">{
&quot;code&quot;: 200,
&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>201</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>