实时获取公众号推文列表
<h5>简要描述</h5>
<ul>
<li>实时获取公众号推文列表(支持分页)</li>
</ul>
<h5>收费标准</h5>
<ul>
<li><code>按调用次数:5分钱/次</code></li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://data.wxrank.com/weixin/getps?key=xxx&amp;wxid=gh_e036770fc439</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET / POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">key</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>密钥</td>
</tr>
<tr>
<td style="text-align: left;">wxid</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>微信号或原始ID(gh开头)</td>
</tr>
<tr>
<td style="text-align: left;">cursor</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>分页游标,用来获取下一页</td>
</tr>
</tbody>
</table>
<p>> <code>注意:wxid参数尽量采用原始ID(gh开头),微信号管理员是可以修改的,原始ID无法修改不会变</code>
> <code>注意:每页可以获取10次推文,每次推文最多是8篇文章,通过art_url字段中idx可以判断位于第几篇?</code></p>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 0,
&quot;data&quot;: {
&quot;list&quot;: [
{
&quot;pub_time&quot;: &quot;2025-02-16 20:10:57&quot;,
&quot;title&quot;: &quot;倪虹洁演短剧,开年就杀疯了&quot;,
&quot;sn&quot;: &quot;8d2a99301e3a13fda90e36735ece3b7c&quot;,
&quot;art_url&quot;: &quot;http://mp.weixin.qq.com/s?__biz=Mzg2Nzc0MDM3Nw==&amp;mid=2248424397&amp;idx=1&amp;sn=8d2a99301e3a13fda90e36735ece3b7c&amp;chksm=cc47af0ec0df34e66a4880c4ef09f21d39b651386a8a65d2c91aed1d54fd598f95a50260ecb4&amp;scene=126&amp;sessionid=0#rd&quot;,
&quot;pic_url&quot;: &quot;https://mmbiz.qpic.cn/sz_mmbiz_jpg/haySDMRphfnDIlfwjeZjBt7GibgwnEsaicqaRSOSJAzEtzYFffHm0V8cbauVMN6eCEelicOHWSBUq8Xm1pcFhJZ6w/640?wxtype=jpeg&amp;wxfrom=0&quot;
},
{
&quot;pub_time&quot;: &quot;2025-02-16 20:10:57&quot;,
&quot;title&quot;: &quot;饺子,逆天改命&quot;,
&quot;sn&quot;: &quot;4e7d756cb0f2f1b4841a78645190ac3f&quot;,
&quot;art_url&quot;: &quot;http://mp.weixin.qq.com/s?__biz=Mzg2Nzc0MDM3Nw==&amp;mid=2248424397&amp;idx=2&amp;sn=4e7d756cb0f2f1b4841a78645190ac3f&amp;chksm=cc619dc1680bbb6b9cae46407ba55103fbf509bb833e792726b21bffe516f1e7644aa3a437cb&amp;scene=126&amp;sessionid=0#rd&quot;,
&quot;pic_url&quot;: &quot;https://mmbiz.qpic.cn/sz_mmbiz_jpg/haySDMRphfnDIlfwjeZjBt7GibgwnEsaicd5iciaBLTw84DqbvpYwOZ8nV3EvXoPj5Oxt3Aq9GC9e0nSJqAqZOb5oA/300?wxtype=jpeg&amp;wxfrom=0&quot;
},
{
&quot;pub_time&quot;: &quot;2025-02-16 20:10:57&quot;,
&quot;title&quot;: &quot;金价突然下跌,有人排队8小时抢购&quot;,
&quot;sn&quot;: &quot;af0bca72c57fc29d6c84d2fd1afab40b&quot;,
&quot;art_url&quot;: &quot;http://mp.weixin.qq.com/s?__biz=Mzg2Nzc0MDM3Nw==&amp;mid=2248424397&amp;idx=3&amp;sn=af0bca72c57fc29d6c84d2fd1afab40b&amp;chksm=cc2965cf8bf9c88dbb35bbc146f81c0786a8bfd86f31bd2698b0bd7e97c97db3ed07d9616a51&amp;scene=126&amp;sessionid=0#rd&quot;,
&quot;pic_url&quot;: &quot;https://mmbiz.qpic.cn/sz_mmbiz_jpg/haySDMRphfnDIlfwjeZjBt7GibgwnEsaicKYrUJXJ0PwqzeyfTf8WjApYl5ZpEbN0Ltt6lz2yAk3GuuQyjK896nw/300?wxtype=jpeg&amp;wxfrom=0&quot;
}
],
&quot;wxid&quot;: &quot;gh_e036770fc439&quot;,
&quot;cursor&quot;: &quot;ZlM4Yk9jWlRXNnBwZE5iTGl6Nm43cUtiMVpCQ2daM2VtRi90amJmTzYyQT0=&quot;
},
&quot;msg&quot;: &quot;剩余32653积分&quot;
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">list.pub_time</td>
<td style="text-align: left;">timestamp</td>
<td>文章发布时间</td>
</tr>
<tr>
<td style="text-align: left;">list.art_url</td>
<td style="text-align: left;">string</td>
<td>文章发布链接</td>
</tr>
<tr>
<td style="text-align: left;">list.pic_url</td>
<td style="text-align: left;">string</td>
<td>文章配图链接</td>
</tr>
<tr>
<td style="text-align: left;">list.title</td>
<td style="text-align: left;">string</td>
<td>文章标题</td>
</tr>
<tr>
<td style="text-align: left;">list.sn</td>
<td style="text-align: left;">string</td>
<td>文章唯一值,不会重复</td>
</tr>
<tr>
<td style="text-align: left;">wxid</td>
<td style="text-align: left;">string</td>
<td>公众号原始ID,一般以gh开头</td>
</tr>
<tr>
<td style="text-align: left;">cursor</td>
<td style="text-align: left;">string</td>
<td>分页游标(首页传空,传当前页cursor来获取下一页)</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<p>> <code>code 状态判断:</code></p>
<ul>
<li>0:获取成功</li>
<li>1000:积分不足</li>
<li>1001:wxid不能为空</li>
<li>1002:wxid验证失败</li>
<li>1003:cursor校验失败</li>
<li>1004:请求失败,请重试</li>
<li>1005:请求超时,请重试</li>
<li>9999:QPS超过上限,请稍后再试(每秒不能超过10个)</li>
</ul>
<p>> 提醒:code=0,扣积分</p>