IP-API.io - Free IP Address Lookup Location Database and IP Geolocation API

Free Geo IP location API to identify country, region, city, latitude & longitude, ZIP code, time zone, country code, area code, network, ASN, country name, country flag, country phone code, language, currency.

Your ip address is 192.30.253.113. Search for any ip address.

Below are the lookup results by IP-API.io geolocation provider. Feel free to test the accuracy of the geo location and other data and decide whether our IP Address API works for you.

Try yourself now for free https://ip-api.io/json/1.2.3.4?api_key={YOUR_API_KEY}

{
  "ip": "192.30.253.113",
  "country_code": "US",
  "country_name": "United States",
  "region_code": "CA",
  "region_name": "California",
  "city": "San Francisco",
  "zip_code": "94107",
  "time_zone": "America/Los_Angeles",
  "latitude": 37.7697,
  "longitude": -122.3933,
  "metro_code": 1,
  "organisation": "ACME LLC",
  "flagUrl": "https://ip-api.io/images/flags/us.svg",
  "emojiFlag": "🇺🇸",
  "currencySymbol": "$",
  "currency": "USD,USN,USS",
  "callingCode": "1",
  "countryCapital": "Washington D.C.",
  "suspicious_factors": {
    "is_proxy": true,
    "is_tor_node": true,
    "is_spam": true,
    "is_suspicious": true
  }
}
Mukilteo, WA, USA
Features

All the IP location data in one API

Accurate Geolocation

Determine the location of your customers by IP address without requiring their explicit consent.

Simple integration

We provide simple JSON responses for every IP search. You can integrate IP-API.io in a few minutes.

Secure

All requests to IP-API.io are securely encrypted with HTTPS / SSL.

Network, ASN, ISP data

Find out ASN or Internet Service Provider based on the customer's IP.

Geotargeting your clients with IP Location API

You can provide ad targeting, digital rights management, geotargeting, content personalization and geofencing with IP Address Geolocation.

Increase your brand outreach and reach new target audiences.

Geo IP Location information via the API or database helps you to reach out to the greater audience. Easily work with customers who live across the oceans. Interact with them and become a recognized international brand.

Create personalized content and increase conversions

Localization of content can increase the conversion rate by 75%, and simply displaying prices in local currency alone increases the conversion rate to 45%. Thus our IP lookup service was developed for such personalization. It shows you city, state/province, country, emoji flag, currency, time zone and much more in order to help you dynamically personalize your content.

Improve customer satisfaction and experience through automatic completion

Filling out large forms is a tedious process and is a known issue for users. But it is usually necessary for your business to operate correctly and in the end to better serve your customers. Automatically complete country, state, city, zip code, postal code, currency, area code and even more on registration, checkout and lead generation forms with IP-API.io.

Bring the secure online experience to the new level.

Reduce development work with consistent and straight-forward time zone API. Dealing with multiple time zones is a challenging and cumbersome task for any organization. We make it simple by providing a unified Time Zone API. It returns you with up-to-date year, time, date, time zone and geolocation information by lat/long, country, city, time zone or IP address information. The API remains the same regardless of which programming language you use.

Security details and threat information

Discover VPN, proxy, tor, anonymous traffic, bot and threat information with our advanced API. IP-API.io returns probability of ip address to be a spammer, bot, proxy, crawler or a tor node.

Geolocation code examples

How to use IP-API.io

How to get user's geo location with Jquery

$.ajax({
  type: "GET",
  dataType: "json",
  url: 'https://ip-api.io/json?api_key={YOUR_API_KEY}',
  success: function(data) {
    console.log(
      'Your ip address is ' + data.ip
        + ' city: ' + data.city
        + ' region: ' + data.region_name
        + ' country: ' + data.country_name
    );
    
  }
});

Node.js get IP geo location

const request = require('request-promise')

request('http://ip-api.io/api/json?api_key=YOUR_API_KEY')
  .then(response => console.log(JSON.parse(response)))
  .catch(err => console.log(err))

PHP get visitor's location

$data = json_decode(file_get_contents('https://ip-api.io/api/json?api_key=YOUR_API_KEY'));
var_dump($data);

Get user location by IP in Python

requests.get('https://ip-api.io/api/json?api_key=YOUR_API_KEY')

Ruby get country by ip

require 'json'
require 'open-uri'

JSON.parse(open('https://ip-api.io/api/json?api_key=YOUR_API_KEY').read)

Kotlin ip geo location example

val result = URL("https://ip-api.io/api/json?api_key=YOUR_API_KEY").readText()
TESTIMONIALS

What our Customers Say

PRICING

Subscribe to one of our geo API products

Small €10/m
    100.000 queries
    Location data
    Currency data
    Time zone data
    Threat data
    Unlimited support
    HTTPS encryption
Large €49/m
    1.000.000 queries
    Location data
    Currency data
    Time zone data
    Threat data
    Unlimited support
    HTTPS encryption

Free plan ‐ 12000 queries per month, limited support. Obtain an api key!