企业招投标信息查询
<p>[TOC]</p>
<h3>简介</h3>
<ul>
<li>查询招投标信息,包括列表和详情。</li>
</ul>
<h3>接口调用说明</h3>
<h4>请求方式</h4>
<p>如接口没有单独说明,所有接口均为:<strong>POST</strong></p>
<h4>请求格式</h4>
<p>如接口没有单独说明,所有接口均为:<strong>x-www-form-urlencoded</strong></p>
<h4>请求参数</h4>
<p>请求参数均包括公共参数和业务参数(业务参数见具体接口说明)
如接口没有单独说明,所有接口调用时,均需要把<strong>公共参数</strong>和<strong>业务参数</strong>一并放在<strong>请求参数</strong>中提交</p>
<p><a name="公共请求参数"></a></p>
<h5>公共请求参数</h5>
<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>
</tbody>
</table>
<h5>签名算法说明</h5>
<pre><code>sign = sha256(appId + appSecret + timestamp)</code></pre>
<p>用服务商分配的 <strong>appId</strong>、服务商分配的 <strong>appSecret</strong>,当前时间戳(毫秒) <strong>timestamp</strong>,按上述顺序拼接成字符串,再进行 <strong>sha256</strong> 哈希得到。如下:</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>
<h4>返回说明</h4>
<h5>返回字段说明</h5>
<p>所有接口均返回以下公共字段:</p>
<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>计费标志 true为计费,false为不计费</td>
</tr>
<tr>
<td>taskNo</td>
<td>本次请求号</td>
</tr>
<tr>
<td>data</td>
<td>返回具体结果,object类型,详见data返回字段描述</td>
</tr>
</tbody>
</table>
<p><a name="code返回码说明"></a></p>
<h5>code返回码说明</h5>
<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>604</td>
<td>接口停用</td>
</tr>
<tr>
<td>606</td>
<td>调用超限,请稍候再试</td>
</tr>
<tr>
<td>607</td>
<td>ip不在白名单</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>
<hr />
<h3>招投标列表</h3>
<ul>
<li>根据关键字查找招投标信息列表。</li>
</ul>
<h4>请求地址</h4>
<p><code>https://api.jumdata.com/enterprise/bid/list</code></p>
<h4>业务参数</h4>
<table>
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必须</th>
<th><div style="width:400px">说明</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>keyword</td>
<td>String</td>
<td>是</td>
<td>搜索关键字(公司名称、注册号或社会统一信用代码)</td>
</tr>
<tr>
<td>pageSize</td>
<td>String</td>
<td>否</td>
<td>每页条数,默认为10,最大不超过10条</td>
</tr>
<tr>
<td>pageIndex</td>
<td>String</td>
<td>否</td>
<td>页码,默认第一页</td>
</tr>
<tr>
<td>year</td>
<td>String</td>
<td>否</td>
<td>发布日期年份,格式如2024</td>
</tr>
</tbody>
</table>
<p>公共请求参数请参阅:<a href="#公共请求参数">公共请求参数</a></p>
<h4>成功返回样例</h4>
<pre><code class="language-json">{
&quot;code&quot;: 200,//返回码,详见返回码说明
&quot;msg&quot;: &quot;成功&quot;,//code对应的描述
&quot;charge&quot;: true,//计费标志
&quot;taskNo&quot;: &quot;395347267201584425104595&quot;,//本次唯一请求号
&quot;data&quot;: {
&quot;page&quot;: {
&quot;recordCount&quot;: 297,//总数
&quot;pageNo&quot;: 1,//页码
&quot;pageSize&quot;: 10 //每页条数
},
&quot;items&quot;: [
{
&quot;publishDate&quot;: &quot;2024-09-05 00:00:00&quot;,//发布时间
&quot;channelName&quot;: &quot;招标结果&quot;,//项目分类
&quot;provinceName&quot;: &quot;HB&quot;,//所属地区
&quot;id&quot;: 110730530,//招投标id
&quot;title&quot;: &quot;国家能源集团雄安基地项目主体工程施工总承包(二次)中标候选人公示&quot; //标题
}
]
}
}</code></pre>
<h4>失败返回样例</h4>
<pre><code class="language-json">{
&quot;code&quot;: 400,
&quot;msg&quot;: &quot;搜索关键字不能为空&quot;
}</code></pre>
<hr />
<h3>招投标详情</h3>
<ul>
<li>通过id查找招投标信息详情</li>
</ul>
<h4>请求地址</h4>
<p><code>https://api.jumdata.com/enterprise/bid/detail</code></p>
<h4>业务参数</h4>
<table>
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必须</th>
<th><div style="width:400px">说明</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>bidId</td>
<td>String</td>
<td>是</td>
<td>招投标列表接口返回的id</td>
</tr>
</tbody>
</table>
<p>公共请求参数请参阅:<a href="#公共请求参数">公共请求参数</a></p>
<h4>成功返回样例</h4>
<pre><code class="language-json">{
&quot;code&quot;: 200,//返回码,详见返回码说明
&quot;msg&quot;: &quot;成功&quot;,//code对应的描述
&quot;charge&quot;: true,//计费标志
&quot;taskNo&quot;: &quot;395347267201584425104595&quot;,//本次唯一请求号
&quot;data&quot;: {
&quot;contentUrl&quot;: &quot;http://xxxxx.html&quot;,//原文链接
&quot;publishDate&quot;: &quot;2024-11-07 00:00:00&quot;,//发布日期
&quot;title&quot;: &quot;铜仁市人民医院2024年办公耗材及配套服务项目采购&quot;,//标题
&quot;items&quot;: {
&quot;content&quot;: &quot;&lt;html&gt;&lt;body&gt;&lt;div&gt;xxxxxx&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&quot; //招投标详情内容
}
}
}
</code></pre>
<h4>失败返回样例</h4>
<pre><code class="language-json">{
&quot;code&quot;: 201,
&quot;msg&quot;: &quot;查无数据&quot;,
&quot;taskNo&quot;: &quot;949047831136199410934044&quot;
}</code></pre>