IP to location

Find Geo location, country and city for any IP address
Location on map
JSON response
          
          
        
Try our JSON API
api.id-api.com/ip/location
			
$ curl --compressed api.id-api.com/ip/location/
			
		
			
const request = require('request');

request('http://api.id-api.com/ip/location/', function(error, res, body) {
	console.log(JSON.parse(body));
})
			
		
			
$.getJSON('http://api.id-api.com/ip/location/', function(data){
  console.log(data)
})
			
		
			
$request = file_get_contents('http://api.id-api.com/ip/location/');
$response = gzdecode($request);
$result = json_decode($response);
			
		
			
requests.get('http://api.id-api.com/ip/location/')
			
		
			
require 'json'
require 'open-uri'

JSON.parse(open('http://api.id-api.com/ip/location/').read)
			
		
Why use us?
server
IPV4 & IPV6 Geolocation

Ability to get coordinates for any IP address, anywhere in the world. Both ipv4 and ipv6 formats are supported.

server
Fast Geolocation API

We have optimised our geolocation queries, so they take less than 20 milliseconds. If performance is critical to you then look no further.

server
We're up to date

Our database is updated regularly ensuring we are always up to date.

Disclaimer

The Geo location coordinates provided in this result should not be used to identidy exact address or household. Use the 'accuracy' value from the response JSON as an indication of geolocation accuracy radius. The actual location of the IP address is likely within the area defined by this radius and the latitude and longitude coordinates.

Use our API to query the location of any IP address and get response in JSON containing geolocation coordinates, accuracy radius, city, region, country and country code. For more details please consult our documentation
$5.00
Monthly Payment
  • code 50 requests/hour

  • email Email support

  • lock_open HTTP

  • https HTTPS

  • done Soft limits *
$10.00
Monthly Payment
  • code 100 requests/hour

  • email Email support

  • lock_open HTTP

  • https HTTPS

  • done Soft limits *
$20.00
Monthly Payment
  • code 300 requests/hour

  • email Email support

  • lock_open HTTP

  • https HTTPS

  • done Soft limits *
$50.00
Monthly Payment
  • code 1000 requests/hour

  • email Email support

  • lock_open HTTP

  • https HTTPS

  • done Soft limits *
$80.00
Monthly Payment
  • code 2000 requests/hour

  • email Email support

  • lock_open HTTP

  • https HTTPS

  • done Soft limits *

Soft limit: buffers extra 10% on top of the subscription limit before returning '429 - Too many requests' allowing you to make extra requests without any service interruption.