正在加载内容...

IP查询API测试

测试IP查询API接口的功能和性能

API接口信息
接口地址:
https://www.dxnt.com/api/ip_query.php?api=1&ip={IP}
请求方法: GET
访问限制: 1次/秒

参数说明:
api=1 - 启用API模式
ip={IP} - 要查询的IP地址(可选,默认为访问者IP)
返回格式: JSON
字符编码: UTF-8
API测试
调用示例
curl -X GET "https://www.dxnt.com/api/ip_query.php?api=1&ip=8.8.8.8"
fetch('https://www.dxnt.com/api/ip_query.php?api=1&ip=8.8.8.8') .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error));
$url = 'https://www.dxnt.com/api/ip_query.php?api=1&ip=8.8.8.8'; $response = file_get_contents($url); $data = json_decode($response, true); print_r($data);