GET
数据查询
查询IP信息API
查询IP信息API 接口,点击查看请求参数与调用示例。
累计调用 10
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/ip_info
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| ip | string | 可选 | 上游提示需要 | 暂无 |
响应示例
200 OK
ip 参数为空
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/ip_info?ip=%E6%9A%82%E6%97%A0"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/ip_info?ip=%E6%9A%82%E6%97%A0");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/ip_info?ip=%E6%9A%82%E6%97%A0");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/ip_info?ip=%E6%9A%82%E6%97%A0", timeout=10)
print(r.json())