IP to location APIs

ip-api

by ip-api.com

IP to location APIs Added on October 31st, 2026 Checked and working on November 15th, 2026
Visit ip-api.com →

What it does

ip-api finds the location of an IP address or domain: country, region, city, ZIP code, coordinates, time zone, ISP, organisation and AS number, and whether it is a mobile, proxy or hosting address. Responses are JSON, XML, CSV or other formats, and batch requests of up to 100 addresses are supported. Free for non-commercial use without a key, at up to 45 requests per minute over HTTP; commercial use and HTTPS need the paid Pro plan.
  • API
  • HTTP-GET
  • JSON
  • REST

At a glance

API key
Not needed · More APIs with no key
Pricing
Free for non-commercial use without a key, at up to 45 requests per minute over HTTP; commercial use and HTTPS need the paid Pro plan.
Commercial use
Not on the free plan
From the browser
Yes (CORS)
Formats
JSON
Interface
REST, HTTP-GET
Provider
ip-api.com
Last checked
Working on November 15th, 2026

More information: https://ip-api.com/docs

Compare: ip-api vs ipinfo.io · ip-api vs ipapi.co

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

ip-api.com
ip-api

Example request

curl

curl 'http://ip-api.com/json/8.8.8.8'

JavaScript

const response = await fetch("http://ip-api.com/json/8.8.8.8");
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "http://ip-api.com/json/8.8.8.8",
    timeout=30,
)
print(response.json())

The JavaScript works in a web page as well as in Node.js 18 or newer.

Did it work for you?

Tell us what you found when you tried ip-api.