接口地址
https://api.xzzti.cn/api/gzhwz
返回格式
JSON
请求方式
GET
认证方式
API Key
请求示例
https://api.xzzti.cn/api/gzhwz?url=?apiKey=【替换成自己的APIKEY】
返回示例
{ "status": 200, "msg": "采集成功", "newstext": "
<\/p>\n\n
<\/p>", "nickname": "刘长和米粉研究院", "title": "创业开粉店,就选刘长和。", "url": "https:\/\/mp.weixin.qq.com\/s\/yCJ9rD6i8UgU5kIrOgHmjw", "titlepic": "https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/lhicAya69825BcacCVrwghJhIvTamlqOezaQoibytGxvb91TLKictbnKb8dnYNRgQLnCHrpJIhg9NE9vsR5D37NIA\/0?wx_fmt=jpeg", "smalltext": "非遗手工粉,认准刘长和。特许经营加盟电话:4000731626\/湖南刘长和米粉研究院", "head_img": "http:\/\/mmbiz.qpic.cn\/mmbiz_png\/lhicAya69824T4jAxXSWNRL06THRuVFLkia3h85NtdNMutFJEiayFshd1aYWqUhGM9nEMUcuKBC0LL4vrhI1FB85A\/0?wx_fmt=png", "time": "2024-10-07 10:33:14", "api_source": "官网地址:" }
暂无错误码定义
该接口暂时没有定义错误码,通常意味着接口调用简单稳定
JavaScript 示例
// 使用 fetch API
fetch('https://api.xzzti.cn/api/gzhwz?url=?apiKey=YOUR_API_KEY')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Python 示例
import requests
url = 'https://api.xzzti.cn/api/gzhwz?url='
params = {'apiKey': 'YOUR_API_KEY'}
response = requests.get(url, params=params)
data = response.json()
print(data)
PHP 示例
<?php
$url = 'https://api.xzzti.cn/api/gzhwz?url=?apiKey=YOUR_API_KEY';
$response = file_get_contents($url);
$data = json_decode($response, true);
print_r($data);
?>
Java 示例
import java.net.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
URL url = new URL("https://api.xzzti.cn/api/gzhwz?url=?apiKey=YOUR_API_KEY");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
}
}
cURL 示例
curl -X GET \
'https://api.xzzti.cn/api/gzhwz?url=?apiKey=YOUR_API_KEY' \
-H 'Accept: application/json'
在线测试工具
测试结果
就绪
点击"运行测试"按钮开始测试接口