IP Geolocation
Get the city, region, country, latitude and longitude, and time zone of any IPv4 or IPv6 address.
Good to know
- Country is reliable, city is approximate. Country-level results are accurate for most addresses. The city is often the network operator’s location, which can be far from the user, especially on mobile networks.
- Coordinates are a point in the city, not the user. Use them to place a pin or pick a nearby region, not to find a street address.
location.timezonecomes from the coordinates. It is the time zone of the nearest large city in the same country, or the country’s only time zone when the city is unknown.local_timeis the time there when you made the request.- The data is refreshed daily. Addresses that recently changed hands may show their previous location for a day or two.
reserved: trueusually means the wrong address. Private and loopback addresses such as10.0.0.5are not on the internet. Behind a load balancer, send the client address fromX-Forwarded-Forinstead.data_unavailableis free. If the IP data is still loading, the request returns503and is not charged. Try again after a few seconds.- Credit DB-IP if you show locations. The geolocation data is licensed under CC BY 4.0. If you display the city, region or country to users, include “IP geolocation by DB-IP” near it.
- Need to know if the address can be trusted? IP Intelligence adds the network, VPN, Tor, hosting and relay flags and a risk score, for the same 1 credit.
Authorizations
Your Finowl API key, for example finowl_3f9a.... Create keys in the dashboard under API Keys.
Body
An IPv4 or IPv6 address, such as 8.8.8.8 or 2001:4860:4860::8888. Ranges (CIDR), hostnames, ports and IPv6 zones such as fe80::1%eth0 return invalid_input.
64"8.8.8.8"
Response
The lookup completed. Unknown fields are empty or null.
The address in canonical form, for example IPv6 compressed and lowercased.
The IP version.
4, 6 ISO 3166-1 alpha-2 code of the country the address is registered to or used in. Empty when unknown or reserved.
The country name for country_code. Empty when unknown.
The state, province or region, such as California. null when unknown.
The nearest city. Often the location of the network operator rather than the user, especially for mobile networks. null when unknown.
true for private, loopback, link-local, carrier-grade NAT, documentation and other reserved addresses. These are not on the public internet, so all location fields are empty or null. Usually it means you sent your proxy's address instead of the client's.
Where city is, and the local time there. Every field is null for reserved addresses.
Show child attributes
Show child attributes
Details of country_code. null when country_code is empty.
Show child attributes
Show child attributes