微信数据接口


实时获取公众号推文列表

<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;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>&gt; <code>注意:wxid参数尽量采用原始ID(gh开头),微信号管理员是可以修改的,原始ID无法修改不会变</code> &gt; <code>注意:每页可以获取10次推文,每次推文最多是8篇文章,通过art_url字段中idx可以判断位于第几篇?</code></p> <h5>返回示例</h5> <pre><code>{ &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: { &amp;quot;list&amp;quot;: [ { &amp;quot;pub_time&amp;quot;: &amp;quot;2025-02-16 20:10:57&amp;quot;, &amp;quot;title&amp;quot;: &amp;quot;倪虹洁演短剧,开年就杀疯了&amp;quot;, &amp;quot;sn&amp;quot;: &amp;quot;8d2a99301e3a13fda90e36735ece3b7c&amp;quot;, &amp;quot;art_url&amp;quot;: &amp;quot;http://mp.weixin.qq.com/s?__biz=Mzg2Nzc0MDM3Nw==&amp;amp;mid=2248424397&amp;amp;idx=1&amp;amp;sn=8d2a99301e3a13fda90e36735ece3b7c&amp;amp;chksm=cc47af0ec0df34e66a4880c4ef09f21d39b651386a8a65d2c91aed1d54fd598f95a50260ecb4&amp;amp;scene=126&amp;amp;sessionid=0#rd&amp;quot;, &amp;quot;pic_url&amp;quot;: &amp;quot;https://mmbiz.qpic.cn/sz_mmbiz_jpg/haySDMRphfnDIlfwjeZjBt7GibgwnEsaicqaRSOSJAzEtzYFffHm0V8cbauVMN6eCEelicOHWSBUq8Xm1pcFhJZ6w/640?wxtype=jpeg&amp;amp;wxfrom=0&amp;quot; }, { &amp;quot;pub_time&amp;quot;: &amp;quot;2025-02-16 20:10:57&amp;quot;, &amp;quot;title&amp;quot;: &amp;quot;饺子,逆天改命&amp;quot;, &amp;quot;sn&amp;quot;: &amp;quot;4e7d756cb0f2f1b4841a78645190ac3f&amp;quot;, &amp;quot;art_url&amp;quot;: &amp;quot;http://mp.weixin.qq.com/s?__biz=Mzg2Nzc0MDM3Nw==&amp;amp;mid=2248424397&amp;amp;idx=2&amp;amp;sn=4e7d756cb0f2f1b4841a78645190ac3f&amp;amp;chksm=cc619dc1680bbb6b9cae46407ba55103fbf509bb833e792726b21bffe516f1e7644aa3a437cb&amp;amp;scene=126&amp;amp;sessionid=0#rd&amp;quot;, &amp;quot;pic_url&amp;quot;: &amp;quot;https://mmbiz.qpic.cn/sz_mmbiz_jpg/haySDMRphfnDIlfwjeZjBt7GibgwnEsaicd5iciaBLTw84DqbvpYwOZ8nV3EvXoPj5Oxt3Aq9GC9e0nSJqAqZOb5oA/300?wxtype=jpeg&amp;amp;wxfrom=0&amp;quot; }, { &amp;quot;pub_time&amp;quot;: &amp;quot;2025-02-16 20:10:57&amp;quot;, &amp;quot;title&amp;quot;: &amp;quot;金价突然下跌,有人排队8小时抢购&amp;quot;, &amp;quot;sn&amp;quot;: &amp;quot;af0bca72c57fc29d6c84d2fd1afab40b&amp;quot;, &amp;quot;art_url&amp;quot;: &amp;quot;http://mp.weixin.qq.com/s?__biz=Mzg2Nzc0MDM3Nw==&amp;amp;mid=2248424397&amp;amp;idx=3&amp;amp;sn=af0bca72c57fc29d6c84d2fd1afab40b&amp;amp;chksm=cc2965cf8bf9c88dbb35bbc146f81c0786a8bfd86f31bd2698b0bd7e97c97db3ed07d9616a51&amp;amp;scene=126&amp;amp;sessionid=0#rd&amp;quot;, &amp;quot;pic_url&amp;quot;: &amp;quot;https://mmbiz.qpic.cn/sz_mmbiz_jpg/haySDMRphfnDIlfwjeZjBt7GibgwnEsaicKYrUJXJ0PwqzeyfTf8WjApYl5ZpEbN0Ltt6lz2yAk3GuuQyjK896nw/300?wxtype=jpeg&amp;amp;wxfrom=0&amp;quot; } ], &amp;quot;wxid&amp;quot;: &amp;quot;gh_e036770fc439&amp;quot;, &amp;quot;cursor&amp;quot;: &amp;quot;ZlM4Yk9jWlRXNnBwZE5iTGl6Nm43cUtiMVpCQ2daM2VtRi90amJmTzYyQT0=&amp;quot; }, &amp;quot;msg&amp;quot;: &amp;quot;剩余32653积分&amp;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>&gt; <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>&gt; 提醒:code=0,扣积分</p>

页面列表

ITEM_HTML