GET
数据查询
IP信息查询
IP信息查询 接口,点击查看请求参数与调用示例。
累计调用 9
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/ipxx
响应示例
200 OK
{"code":200,"msg":"请求成功!","time":"2026-10-16 19:56:53","api_source":"https:\/\/api.528sq.cn\/","data":{"ip":"183.131.83.189","country":"中国","province":"浙江","district":"","city":"绍兴","isp":"电信","lng":"120.582112","lat":"29.997117","continent":"亚洲","en_country":"China","en_short_code":"CN"},"cached_time":"2026-10-16 19:56:53"}
在线测试
该接口无需参数,直接发送即可。
代码示例
cURL · GET
curl "https://itapi.top/api/ipxx"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/ipxx");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/ipxx");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/ipxx", timeout=10)
print(r.json())