* API接口可能会因为各种网络原因和攻击都可能产生阻断,请开发时做好冗余和异常处理

* 所有接口同时兼容IPv4和IPv6

iP查询接口文档说明

接口地址

http协议:http://www.paoto.com/api.php
https协议:https://www.paoto.com/api.php

请求方式

get

请求参数

q

1、请求示例(IPv4)

https://www.paoto.com/api.php?q=8.8.8.8  

JSON返回示例(IPv4)

{
"ipv6":"false",
"myip":"8.8.8.8",
"ipstart":"8.8.8.8",
"ipend":"8.8.8.8",
"country":"美国",
"location":"美国 加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器",
"local":"加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器",
"author":"[email protected]",
"website":"https://www.paoto.com"
}

2、请求示例(IPv6)

http://www.paoto.com/api.php?q=2406:840::1 

JSON返回示例(IPv6)

{
"ipv6":"true",
"myip":"2406:840::1",
"ipstart":"2406:840::",
"ipend":"2406:840:f:ffff::",
"country":"全球",
"location":"全球 ZX Network Anycast网段",
"local":"ZX Network Anycast网段",
"author":"[email protected]",
"website":"https://www.paoto.com"
}

3、请求示例(域名)

http://www.paoto.com/api.php?q=www.qq.com 

JSON返回示例(IPv6)

{
"ipv6":"true",
"myip":"240e:97c:2f:2::4c",
"ipstart":"240e:97c::",
"ipend":"240e:97c:fff:ffff::",
"country":"中国广东省广州市",
"location":"中国广东省广州市 中国电信IDC",
"local":"中国电信IDC",
"author":"[email protected]",
"website":"https://www.paoto.com"
}