VX文章正文内容文本

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

返回格式: json

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

请求示例: http://vip.http110.cn/api/gzhArticleDetailText?token=yourToken&link=https%3A%2F%2Fmp.weixin.qq.com%2Fs%2Fve7nKsDmPTmSNsLgyVWC8A

请求参数说明:

参数名称 必填 类型 说明
tokenstring用户token,注册即可获得试用token
linkstring微信文章链接(get请求时,用urlEncode编码)

返回参数说明:

参数名称 类型 说明
code number 系统返回状态码
msg string 系统返回提示信息!
data string 微信文章内容文本

响应文本:

{
						"code": 200,
						"msg": "OK",
						"data": {
							"title": "国泰航空紧急道歉!将严肃调查——",
							"contenTxt": "近日,有网友在网络平台举报国泰航空空乘歧视非英语乘客....",
							"nickname": "中央政法委长安剑"
						}
					}

状态码参考:

  状态码 说明
  200 请求成功
  201 余额不足!
免费!
var settings = {
	"url": "http://vip.http110.cn/api/gzhArticleDetailText?token=yourToken&link=https%3A%2F%2Fmp.weixin.qq.com%2Fs%2Fve7nKsDmPTmSNsLgyVWC8A",
	"method": "GET",
	"timeout": 0,
	};
	
	$.ajax(settings).done(function (response) {
	console.log(response);
	});
					
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
	curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
	curl_easy_setopt(curl, CURLOPT_URL, "http://vip.http110.cn/api/gzhArticleDetailText?token=yourToken&link=https%253A%252F%252Fmp.weixin.qq.com%252Fs%252Fve7nKsDmPTmSNsLgyVWC8A");
	curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
	curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
	struct curl_slist *headers = NULL;
	curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
	res = curl_easy_perform(curl);
}
curl_easy_cleanup(curl);


					
	require_once 'HTTP/Request2.php';
	$request = new HTTP_Request2();
	$request->setUrl('http://vip.http110.cn/api/gzhArticleDetailText?token=yourToken&link=https%3A%2F%2Fmp.weixin.qq.com%2Fs%2Fve7nKsDmPTmSNsLgyVWC8A');
	$request->setMethod(HTTP_Request2::METHOD_GET);
	$request->setConfig(array(
		'follow_redirects' => TRUE
	));
	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("text/plain");
	RequestBody body = RequestBody.create(mediaType, "");
	Request request = new Request.Builder()
	.url("http://vip.http110.cn/api/gzhArticleDetailText?token=yourToken&link=https%3A%2F%2Fmp.weixin.qq.com%2Fs%2Fve7nKsDmPTmSNsLgyVWC8A")
	.method("GET", body)
	.build();
	Response response = client.newCall(request).execute();		
					
	import requests

	url = "http://vip.http110.cn/api/gzhArticleDetailText?token=yourToken&link=https%3A%2F%2Fmp.weixin.qq.com%2Fs%2Fve7nKsDmPTmSNsLgyVWC8A"
	
	payload={}
	headers = {}
	
	response = requests.request("GET", url, headers=headers, data=payload)
	
	print(response.text)
														
					
	package main

	import (
		"fmt"
		"net/http"
		"io/ioutil"
	)
	
	func main() {
	
		url := "http://vip.http110.cn/api/gzhArticleDetailText?token=yourToken&link=https%253A%252F%252Fmp.weixin.qq.com%252Fs%252Fve7nKsDmPTmSNsLgyVWC8A"
		method := "GET"
	
		client := &http.Client {
		}
		req, err := http.NewRequest(method, url, nil)
	
		if err != nil {
		fmt.Println(err)
		return
		}
		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))
	}									
					
						curl --location --request GET 'http://vip.http110.cn/api/gzhArticleDetailText?token=yourToken&link=https%3A%2F%2Fmp.weixin.qq.com%2Fs%2Fve7nKsDmPTmSNsLgyVWC8A'