- Takes: IP address
- Passive: the target is not contacted
- Cost: 1 request against the monthly quota
Returns location, network (ASN, organisation, CIDR, RIR) and boolean traits. Free keys omit the risk flags.
Path parameters
ipIPv4 or IPv6 address
Response fields · 16ShowHide
ip
The address looked up
country_code
Country code
country
Country name
region
Region
city
City
latitude
Latitude
longitude
Longitude
accuracy_radius_km
Accuracy radius in km
confidence
high, medium, low or unknown
asn
Autonomous system number
as_org
AS organisation
network
CIDR range
rir
Regional internet registry
is_vpn
VPN (paid plans)
is_tor
Tor exit (paid plans)
is_hosting
Hosting provider (paid plans)
curl 'https://api.networkdatalabs.com/v0/ip/203.0.113.7' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"ip": "203.0.113.7",
"location": {
"country_code": "NL",
"country": "Netherlands",
"city": "Amsterdam",
"latitude": 52.37,
"longitude": 4.89,
"accuracy_radius_km": 50,
"confidence": "medium"
},
"network": {
"asn": 64496,
"as_org": "Example Networks",
"network": "203.0.113.0/24",
"rir": "RIPE"
},
"traits": {
"is_vpn": false,
"is_tor": false,
"is_hosting": true
}
}