Geolocation and network details for one IPv4 or IPv6 address.
GET/{apiKey}/{ipAddress}
- Takes: IP address
- Passive: the target is not contacted
- Cost: 1 query
Returns the fields your plan includes. Use self as the address to look up the caller. Free keys return basic location fields only; paid tiers add network, proxy and threat fields.
Path parameters
apiKeyYour API key, or free for the free tier
ipAddressIPv4 or IPv6 address, or self
Response fields · 16ShowHide
ipAddress
The address looked up
continentCode
Two-letter continent code
continentName
Continent name
countryCode
ISO 3166-1 alpha-2 country code
countryName
Country name
stateProv
State or province
city
City
latitude
Latitude (paid tiers)
longitude
Longitude (paid tiers)
timeZone
IANA time zone name (paid tiers)
asNumber
Autonomous system number (paid tiers)
asName
Autonomous system name (paid tiers)
isp
Internet service provider (paid tiers)
isProxy
Whether the address is a proxy (paid tiers)
threatLevel
low, medium or high (paid tiers)
threatDetails[]
Threat flags such as anonymous-proxy or port-scan (paid tiers)
curl 'https://api.db-ip.com/v2/free/203.0.113.7'{
"ipAddress": "203.0.113.7",
"continentCode": "EU",
"continentName": "Europe",
"countryCode": "NL",
"countryName": "Netherlands",
"stateProv": "Noord-Holland",
"city": "Amsterdam"
}