IPs
This page documenents API Endpoints for quering IP data
JSON
GET /api/public/ip/{ip}
Parameters
| Parameter | Type | Description |
|---|---|---|
| ip | string | Any IPv4 or IPv6 to query. |
Query Parameters
| Parameter | Type | Description | Optional |
|---|---|---|---|
| domain | boolean | If present, return the domain of the managing authority. | yes |
| vpn | boolean | If present, return a "vpn" array which will detect basic VPNs. | yes |
| nohostname | boolean | If present, do not return the Hostname. | yes |
INFO
You can use self as the ip parameter to query the IP of the requesting client.
INFO
Example JSON:
json
{
"ip": "8.8.8.8",
"is6": false,
"hostname": "dns.google",
"accuracy_radius": 1000,
"country": "United States",
"continent": "North America",
"loc": "37.751,-97.822",
"lat": 37.751,
"lon": -97.822,
"asn": "15169",
"aso": "Google LLC",
"isp": "Google",
"org": "Google",
"registered_country": "United States",
"timezone": "America/Chicago",
"cc": "us",
"mobile": [],
"bgp": {
"path": [
"15169"
],
"route": "8.8.8.0/24"
},
"vpn": {
"is_vpn": false
}
}