Troubleshoot website, network, and CDN issues for fast resolutions.
IP lookup or IP address lookup with detailed IP geolocation data
IP geolocation is the mapping of an IP address to the geographic location of the internet from the connected device. By geographically mapping the IP address, it provides you with location information such as the country, state, city, zip code, latitude/longitude, ISP, area code, and other information.
ARIN's WHOIS service gives contact and registration information for the IP address lookup and is freely available to access. When a company acquires a block of IP addresses, a request is submitted and then those IPs are assigned to the requested ISP.
The IP geolocation data gets updated automatically based on the databases of the regional Internet registry (RIR). Manual updates are not possible.
There are many different IP location databases in which you can pull from. Most vendors claim a 98% or higher accuracy. IP mapping to specific cities can sometimes vary slightly based upon the location of the nearest ISP provider's network hub.
Yes, IPv6 geoloaction is supported as well. Just enter a valid address above to perform the IPv6 lookup.
Get the IP geolocation data through the simple REST API. All the responses are JSON encoded. We are rate limiting requests (3r/s) to avoid overload of the system.
Please note that the use of this service requires a link back in your project: [IP Location Finder by KeyCDN](https://tools.keycdn.com/geo)
It is required to set the request header User-Agent
in the format keycdn-tools:https?://.*
, which must include the website you are using the API for. Missing attributions or invalid values will be blocked.
GEThttps://tools.keycdn.com/geo.json?host={IP or hostname}
Parameter | Value | Default |
---|---|---|
host required |
{alphanumeric} |
Parameter |
---|
host |
ip |
rdns |
asn |
country_name |
country_code |
region_name |
region_code |
city |
postal_code |
contitent_code |
latitude |
longitude |
metro_code |
timezone |
datetime |
$ curl -H "User-Agent: keycdn-tools:https://www.example.com" "https://tools.keycdn.com/geo.json?host=www.example.com"
{
"status":"success",
"description":"Data successfully received.",
"data":{
"geo":{
"host":"www.example.com",
"ip":"93.184.216.34",
"rdns":"93.184.216.34",
"asn":15133,
"isp":"MCI Communications Services, Inc. d\/b\/a Verizon Business",
"country_name":"United States",
"country_code":"US",
"region_name":"Massachusetts",
"region_code":"MA",
"city":"Norwell",
"postal_code":"02061",
"continent_name":"North America",
"continent_code":"NA",
"latitude":42.1596,
"longitude":-70.8217,
"metro_code":506,
"timezone":"America\/New_York",
"datetime":"2019-06-01 00:00:00"
}
}
}
Try KeyCDN with a free 14 day trial, no credit card required.
Get startedPricing