调用示例
GET 请求
https://ping.4759.cn/api/get_web_info.php?key=你的授权码&url=https://ping.4759.cn
PHP 示例
<?php
// ==============================================
// 网页标题关键词获取 - 完整可运行PHP示例
// ==============================================
$api_key = "你的KEY";
$url = "https://ping.4759.cn";
$api = "https://ping.4759.cn/api/get_web_info.php?key=$api_key&url=$url";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $api,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => false,
]);
$res = curl_exec($ch);
curl_close($ch);
echo $res;
?>
成功返回示例
{
"code": 200,
"msg": "获取成功",
"data": {
"url": "https://ping.4759.cn",
"title": "超级Ping检测 - 多线路在线ping检测工具 | 网络延迟检测 | ping.4759.cn",
"keywords": "超级TCPing,在线ping检测,多地ping检测,多线路ping,ping.4759.cn",
"description": "ping.4759.cn超级Ping检测工具,提供多地区、多运营商网络延迟检测,一键诊断网络连通性问题!"
},
"call_stats": {
"used_day": 12,
"remaining_day": 988,
"tips": "小时调用次数暂不统计"
},
"used_api": "ping.4759.cn 网页标题关键词获取接口"
}