接口地址: http://vip.http110.cn/api/gzhHistoryArticle
返回格式: json
请求方式: http(s) get/post
请求示例: http://vip.http110.cn/api/gzhHistoryArticle?token=&gzhNameOrGzhId=%E5%85%AB%E9%9B%B6%E5%8D%8A%E5%9B%BE%E6%96%87&page=1
请求参数说明:
参数名称 | 必填 | 类型 | 说明 |
---|---|---|---|
token | 否 | string | 用户token,注册即可获得试用token |
gzhNameOrGzhId | 是 | string | 公众号微信id和公众号名称 |
gzhBiz | 是 | string | 公众号文章网址中的__biz参数 |
gzhArticleUrl | 是 | string | 公众号任意一个文章网址(如果调用不成功请尝试UrlEncode编码后再调用)(gzhNameOrGzhId、gzhBiz、gzhArticleUrl任选其中一个即可) |
gzhNameOrGzhId | 是 | string | gzhNameOrGzhId |
page | 是 | string | 页码(默认为1,每页5次最近公众号发文) |
返回参数说明:
参数名称 | 类型 | 说明 |
---|---|---|
code | number | 系统返回状态码 |
msg | string | 系统返回提示信息! |
data | string | 公众号历史文章数据 |
totalPage | number | 总页数 |
nowPage | number | 当前页 |
totalNum | number | 总发文次数(1次可以最多8篇) |
thisPageArticlesCount | number | 当前页文章篇数 |
coverUrl | string | 文章封面 |
postTime | string | 发文时间戳 |
prePostTime | string | 定时发文时间戳 |
position | string | 发文位置(头条|二条|三条|四条|五条|六条|七条|八条|) |
url | string | 文章链接 |
title | string | 文章标题 |
digest | string | 文章摘要 |
original | string | 1:原创 100或0:未声明原创 101或2:转载 |
itemShowType | string | 0:图文 5:纯视频 7:纯音乐 8:纯图片 10:纯文字 11:转载文章 |
响应文本:
{
"code": 200,
"msg": "OK",
"data": {
"totalPage": 5,
"nowPage": 1,
"totalNum": 20,
"thisPageArticlesCount": 39,
"list": [{
"coverUrl": "https://mmbiz.qlogo.cn/sz_mmbiz_jpg/EY9SibfkUu9GkmpiakAhB4jlZ3JmxyAAsbU6rIwADJ59AdrJPT4nCOLqQT5kqQApevc2k4iaugXo7OgsrgSbHL0Xw/0?wx_fmt=jpeg",
"postTime": "1669606111",
"prePostTime": "1669606111",
"position": "1",
"url": "http://mp.weixin.qq.com/s?__biz=MzkyNDI1MDA5Nw==&mid=2247484303&idx=1&sn=495a28ff8d94d5234a246613f61cc02d&chksm=c1d9f911f6ae70070eb32ff3b15bd374d192be52551696cdcafc499778690a4e72e71eda5cad#rd",
"title": "他山之石,可以攻玉",
"digest": "点击上方蓝字发现更多精彩!2022.SUMMER夏,是个特别的季节雨声,蛙声,蝉鸣声一窗浓荫渐起,几株芭蕉正",
"original": "0",
"itemShowType": "0"
},
{
"coverUrl": "...",
"postTime": "...",
"prePostTime": "...",
"position": "...",
"url": "...",
"title": "...",
"digest": "...",
"original": "...",
"itemShowType": "..."
}
]
}
}
状态码参考:
状态码 | 说明 | |
---|---|---|
200 | 请求成功 | |
201 | 余额不足! |
免费!
var settings = { "url": "http://vip.http110.cn/api/gzhHistoryArticle", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json" }, "data": JSON.stringify({ "token": "您的token", "gzhNameOrGzhId": "八零半图文", "gzhArticleUrl": "", "page": "1" }), }; $.ajax(settings).done(function (response) { console.log(response); });
curl --location --request POST 'http://vip.http110.cn/api/gzhHistoryArticle' \ --header 'Content-Type: application/json' \ --data '{ "token":您的token","gzhNameOrGzhId":"八零半图文","gzhArticleUrl":"","page":"1" }'
$client = new Client(); $headers = [ 'Content-Type' => 'application/json' ]; $body = '{ "token": "您的token", "gzhNameOrGzhId": "八零半图文", "gzhArticleUrl": "", "page": "1" }'; $request = new Request('POST', 'http://vip.http110.cn/api/gzhHistoryArticle', $headers, $body); $res = $client->sendAsync($request)->wait(); echo $res->getBody();
Request request = Request.Post("http://vip.http110.cn/api/gzhHistoryArticle"); String body = "{\n \"token\":您的token\",\"gzhNameOrGzhId\":\"八零半图文\",\"gzhArticleUrl\":\"\",\"page\":\"1\"\n}"; request.bodyString(body,ContentType.APPLICATION_JSON); request.setHeader("Content-Type", "application/json"); HttpResponse httpResponse = request.execute().returnResponse(); System.out.println(httpResponse.getStatusLine()); if (httpResponse.getEntity() != null) { String html = EntityUtils.toString(httpResponse.getEntity()); System.out.println(html); }
import requests headers = { 'Content-Type': 'application/json', } data = '{ "token":您的token","gzhNameOrGzhId":"八零半图文","gzhArticleUrl":"","page":"1" }' response = requests.post('http://vip.http110.cn/api/gzhHistoryArticle', headers=headers, data=data)
package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "http://vip.http110.cn/api/gzhHistoryArticle" method := "POST" payload := strings.NewReader(`{ "token":"您的token","gzhNameOrGzhId":"八零半图文","gzhArticleUrl":"","page":"1" }`) client := &http.Client { } req, err := http.NewRequest(method, url, payload) if err != nil { fmt.Println(err) return } req.Header.Add("Content-Type", "application/json") res, err := client.Do(req) if err != nil { fmt.Println(err) return } defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) }
var settings = { "url": "http://vip.http110.cn/api/gzhHistoryArticle", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json" }, "data": JSON.stringify({ "token": "您的token", "gzhNameOrGzhId": "八零半图文", "gzhArticleUrl": "", "page": "1" }), }; $.ajax(settings).done(function (response) { console.log(response); });