Country data for an IP address, or for the caller with `me`.
GET/country/{ip_address}
- Takes: IP address
- Passive: the target is not contacted
Returns the country, registered country, continent and basic traits for the address.
Path parameters
ip_addressIPv4 or IPv6 address, or
me
Response fields · 7ShowHide
code
Continent code
iso_code
Country ISO code
names
Country names by locale
is_in_european_union
Whether the country is in the EU
iso_code
Country where the network is registered
ip_address
The address looked up
network
Network the address belongs to
curl 'https://geolite.info/geoip/v2.1/country/203.0.113.7' \
-u 'USERNAME:PASSWORD'{
"continent": {
"code": "EU"
},
"country": {
"iso_code": "NL",
"is_in_european_union": true,
"names": {
"en": "Netherlands"
}
},
"registered_country": {
"iso_code": "NL"
},
"traits": {
"ip_address": "203.0.113.7",
"network": "203.0.113.0/24"
}
}