Contact Us
Back top
Current Location : APIs > 微信公众号文章高级版
微信公众号文章高级版 Transactions( 912 )

微信公众号文章高级版

Intro. : 获取的文章链接为永久链接,但无法获取浏览数和评论等互动数据

Tag : 新闻 On Shelves Time : 2019-03-29

Type :

文章 列表

Tutorials

Total invocations(updated per hour)

微信公众号文章高级版 ¥ 3.00 yuan/100calls 辅助工具

API Areas

API Mark

Example

注: 该接口为实时数据接口,可能受目标平台或网络状态影响,会存在一定的错误率,建议在程序中加入出错重试机制。
Error Code
-- 请求示例 url 默认请求参数已经做URL编码 curl -i "http://api02.idataapi.cn:8000/post/weixinpro3?apikey=&"
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.net.URL; import java.nio.charset.Charset; import org.json.JSONException; import org.json.JSONObject; import java.io.PrintWriter; import java.net.URLConnection; public class Example { private static String readAll(Reader rd) throws IOException { StringBuilder sb = new StringBuilder(); int cp; while ((cp = rd.read()) != -1) { sb.append((char) cp); } return sb.toString(); } public static JSONObject postRequestFromUrl(String url, String body) throws IOException, JSONException { URL realUrl = new URL(url); URLConnection conn = realUrl.openConnection(); conn.setDoOutput(true); conn.setDoInput(true); PrintWriter out = new PrintWriter(conn.getOutputStream()); out.print(body); out.flush(); InputStream instream = conn.getInputStream(); try { BufferedReader rd = new BufferedReader(new InputStreamReader(instream, Charset.forName("UTF-8"))); String jsonText = readAll(rd); JSONObject json = new JSONObject(jsonText); return json; } finally { instream.close(); } } public static JSONObject getRequestFromUrl(String url) throws IOException, JSONException { URL realUrl = new URL(url); URLConnection conn = realUrl.openConnection(); InputStream instream = conn.getInputStream(); try { BufferedReader rd = new BufferedReader(new InputStreamReader(instream, Charset.forName("UTF-8"))); String jsonText = readAll(rd); JSONObject json = new JSONObject(jsonText); return json; } finally { instream.close(); } } public static void main(String[] args) throws IOException, JSONException { // 请求示例 url 默认请求参数已经做URL编码 String url = "http://api02.idataapi.cn:8000/post/weixinpro3?apikey=&"; JSONObject json = getRequestFromUrl(url);; System.out.println(json.toString()); } }
//using System.Net.Security; //using System.Security.Cryptography.X509Certificates; private const String method = "GET"; static void Main(string[] args) { String bodys = ""; // 请求示例 url 默认请求参数已经做URL编码 String url = "http://api02.idataapi.cn:8000/post/weixinpro3?apikey=&"; HttpWebRequest httpRequest = null; HttpWebResponse httpResponse = null; if (url.Contains("https://")) { ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult); httpRequest = (HttpWebRequest)WebRequest.CreateDefault(new Uri(url)); } else { httpRequest = (HttpWebRequest)WebRequest.Create(url); } httpRequest.Method = method; if (0 < bodys.Length) { byte[] data = Encoding.UTF8.GetBytes(bodys); using (Stream stream = httpRequest.GetRequestStream()) { stream.Write(data, 0, data.Length); } } try { httpResponse = (HttpWebResponse)httpRequest.GetResponse(); } catch (WebException ex) { httpResponse = (HttpWebResponse)ex.Response; } Console.WriteLine(httpResponse.StatusCode); Console.WriteLine(httpResponse.Method); Console.WriteLine(httpResponse.Headers); Stream st = httpResponse.GetResponseStream(); StreamReader reader = new StreamReader(st, Encoding.GetEncoding("utf-8")); Console.WriteLine(reader.ReadToEnd()); Console.WriteLine("\n"); } public static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors) { return true; }
<?php $method = "GET"; // 请求示例 url 默认请求参数已经做URL编码 $url = "http://api02.idataapi.cn:8000/post/weixinpro3?apikey=&"; $curl = curl_init(); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_FAILONERROR, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HEADER, true); curl_setopt($curl, CURLOPT_ENCODING, "gzip"); var_dump(curl_exec($curl)); ?>
# coding:utf-8 """ Compatible for python2.x and python3.x requirement: pip install requests """ from __future__ import print_function import requests # 请求示例 url 默认请求参数已经做URL编码 url = "http://api02.idataapi.cn:8000/post/weixinpro3?apikey=&" headers = { "Accept-Encoding": "gzip", "Connection": "close" } if __name__ == "__main__": r = requests.get(url, headers=headers) json_obj = r.json() print(json_obj)

Request Field( Params marked* means users should choose one from the each marked items to fill in.)

Property Name Type Mandatory Example Description
biz string * MzIwOTU1Mzk3OQ==
link string *
pageToken string

Response Fields

Property Name Type Example Description
  • dataType string post 数据类型
  • -
    data array [...] 数据内容列表
    • id string B655BB2DFA525B364B7115C8DE19A2CBBB6D7A10 评论id
    • likeCount number 16 点赞数
    • token string 659541278387994624,d775c02d692d320b150c0 采集数据的token参数
    • publishDateStr string 2019-01-31T04:00:00 公示日期
    • title string u65b0u6625u798fu5229uff5cu5c0fu76aeu6765 产品名称
    • originUrl string null 原创url
    • publishDate number 1548907200 发布时间:UTC时间戳格式
    • abstract string u5317u65b9u997au5b50u5357u65b9u996duff0c 摘要
    • videoUrls string null 视频链接列表
    • appCode string weixinpro 平台代码
    • posterId string littlefreddie 发布者id
    • content string u5148u95eeu4e00u53e5 评价文本内容
    • posterScreenName string u4eb2u7231u7684u5c0fu76ae 发布者名称
    • isTop boolean true 是否置顶
    • viewCount number 5290 观看数
    • audioUrls string null 音频链接列表
    • biz string MzIwOTU1Mzk3OQ== 微信公众平台唯一ID
    • +
      comments array [...] 评论列表
      • id string 1080050100165673207 文章id
      • likeCount number 29 点赞数
      • replies string null 评论的回复列表
      • publishDateStr string 2019-01-31T16:59:27 公示日期
      • content string ... 评价文本内容
      • publishDate number 1548953967 发布时间:UTC时间戳格式
      • commenterScreenName string u5c0fu4e56 评论者名称
      • commentCount number 0 评论数
      • avatarUrl string http://wx.qlogo.cn/mmopen/Q3auHgzwzM7O2VezCEy1R5hgwwENb13QqgJa5vv6PoSzribGbrn4y9OTNkAxhMN2ibnhVZQzahQEIgPGgpmFrI7LDOIkibh1YXmxPQT1ibibcKXY/132 相关物图片url
    • +
      writers array [...] 作者列表
      • name string u7c73u76aeu5988 处置单位名字
    • commentCount number 100 评论数
    • original boolean true original
    • imageUrls array [...] 图片链接列表
    • updateDate number 1553950308 更新时间
    • posterOriginId string gh_bb506fb21bec 发布者原始id
    • idx string 1 当次发布的第几条消息
    • mid string 2247492240 图文消息ID
    • coverUrls array [...] coverUrls
    • url string http://mp.weixin.qq.com/s?__biz=MzIwOTU1Mzk3OQ== 菜的url
    • html string *** content对应的html代码,包含格式标签等
    • shareCount string null 转发数
  • pageToken string 10 翻页值
  • retcode string 000000 返回状态码
  • hasNext boolean true 是否有下一页
  • appCode string weixinpro3 平台代码

Returns The Sample

null

Detailed Data

No Details

状态码

Status Code Return Value Format : JSON

{

message:"API rate limit exceeded",

retcode:100703

}

The API in our platform is only paid on number of calls. For the detail, please refer to the below table.

Status Code Code Meaning Detailed Description Need paid or not?
000000 invoke successfully(data is not null) 成功调用并返回数据
100002 Search no result 目标参数搜索没结果
100301 Account not found 用户帐号不存在
200001 The article was sealed 文章封了
200002 Article deletion 文章删除
200003 Sogou abnormal 搜狗异常
200004 The public number was sealed 公众号封号
200005 Public number migration 公众号迁移
200006 Public number cancellation 公众号注销
200007 Public number freeze 公众号冻结
200008 Public number stop 公众号停止
100000 Server internal error 服务器内部错误
100001 Network error 网络错误
100004 Target server error 目标服务器错误
100005 Param error 用户输入参数错误
100700 Invalid authentication credentials 授权失败
100701 API stopped 您的当前API已停用
100702 Account stopped 您的账户已停用
100703 API rate limit exceeded 并发已达上限
100704 API maintenance API维护中
100705 API not found with these values API不存在
100706 Please add api first 请先添加api
100707 Number of calls exceeded 调用次数超限
100802 Missing url param 'time' or uri path is not equal to 2 请求路径错误或者缺少"time"参数
100803 Wrong pageToken 参数pageToken有误

Often With The Purchase Of Data