微信文章阅读数、点赞数、在看数

接口地址: http://vip.http110.cn/api/wxArticleRead

返回格式: json

请求方式: http(s) get/post

请求示例: http://vip.http110.cn/api/wxArticleRead?token=&link=www.baidu.com

请求参数说明:

参数名称 必填 类型 说明
tokenstring用户token,请联系客服!
linkstring微信文章链接(get请求时,用urlEncode编码)

返回参数说明:

参数名称 类型 说明
code number 系统返回状态码
msg string 系统返回提示信息!
data string 微信文章阅读数、点赞数、在看数

响应文本:

{
						"code":200,
						"msg":"OK",
						"data":{
							"readNum":999,
							"zanNum":200,
							"lookingNum":100
						}
					}

状态码参考:

  状态码 说明
  200 请求成功
  201 余额不足!
免费!
var settings = {
	"url": "http://vip.http110.cn/api/wxArticleRead",
	"method": "POST",
	"timeout": 0,
	"headers": {
	  "Content-Type": "application/json"
	},
	"data": JSON.stringify({
	  "token": "",
	  "link": "http://baidu.com"
	}),
  };
  
  $.ajax(settings).done(function (response) {
	console.log(response);
});
					
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
  curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
  curl_easy_setopt(curl, CURLOPT_URL, "http://vip.http110.cn/api/wxArticleRead");
  curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
  curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
  struct curl_slist *headers = NULL;
  headers = curl_slist_append(headers, "Content-Type: application/json");
  curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
  const char *data = "{\n    \"token\":\"\",\"link\":\"http://baidu.com\"\n}";
  curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data);
  res = curl_easy_perform(curl);
}
curl_easy_cleanup(curl);
						
					
setUrl('http://vip.http110.cn/api/wxArticleRead');
$request->setMethod(HTTP_Request2::METHOD_POST);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
$request->setHeader(array(
  'Content-Type' => 'application/json'
));
$request->setBody('{\n    "token":"","link":"http://baidu.com"\n}');
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
	echo $response->getBody();
  }
  else {
	echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
	$response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}
						
					
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n    \"token\":\"\",\"link\":\"http://baidu.com\"\n}");
Request request = new Request.Builder()
	.url("http://vip.http110.cn/api/wxArticleRead")
	.method("POST", body)
	.addHeader("Content-Type", "application/json")
	.build();
Response response = client.newCall(request).execute();		
					
import requests
import json

url = "http://vip.http110.cn/api/wxArticleRead"

payload = json.dumps({
  "token": "",
  "link": "http://baidu.com"
})
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)									
					
package main
import (
	"fmt"
	"io/ioutil"
	"log"
	"net/http"
	"strings"
)

func main() {
	client := &http.Client{}
	var data = strings.NewReader(`{ "token":"","link":"baidu.com" }`)
	req, err := http.NewRequest("POST", "http://vip.http110.cn/api/wxArticleRead", data)
	if err != nil {
		log.Fatal(err)
	}
	req.Header.Set("Content-Type", "application/json")
	resp, err := client.Do(req)
	if err != nil {
		log.Fatal(err)
	}
	bodyText, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%s\n", bodyText)
}										
					
curl --location --request POST 'http://vip.http110.cn/api/wxArticleRead' \
--header 'Content-Type: application/json' \
--data-raw '{
	"token":"","link":"http://baidu.com"
}'