耐撅、耐撅、还是耐撅的 ASS 接口服务
共收录了
61 个姿势 · 今日被掘 521015 次
全球IPv4归属地详情
接口地址: https://api.vore.top/api/IPv4+
返回格式: JSON
请求方式: GET
请求示例: https://api.vore.top/api/IPv4+?v4=14.210.18.172
请求参数说明:
返回参数说明:
返回示例:
{
"code": 200,
"msg": "SUCCESS",
"ipdata": {
"ipv4": "14.210.18.172",
"continent": "亚洲",
"country": "中国",
"province": "广东",
"city": "湛江",
"district": "吴川",
"isp": "电信",
"area_code": "440883",
"country_english": "China",
"country_code": "CN",
"longitude": "110.77703",
"latitude": "21.44584",
".time-cost": "26.03ms"
},
"time": 1640615119
}
请求详情设置:
请求参数设置:
| 参数名 | 参数值 | 操作 |
|---|---|---|
返回结果:
null
返回码表:
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 200-请求正常 | 500-请求错误 |
| msg | string | SUCCESS-请求正常 | ERROR-请求错误 |
| data -> info/tips | string | 描述当前请求信息(如果存在) |
代码示例:
<?php
//要查询的IPv4地址
$IPv4 = "14.210.18.172";
//拼接url
$url = "https://api.vore.top/api/IPv4+?v4=".$ip;
//请求数据并解码
$result = json_decode(file_get_contents($url),true);
//输出IPv4信息
print_r($result);
?>
当前文档浏览次数:
![]()