IP Geolocation API
IP Geolocation API — The IP2Location API provides a RESTful interface for de…
IP Geolocation API exposes the IP2Location API provides a RESTful interface for determining the geographical location of users based on their IP addresses in real time. It supports both IPv4 and IPv6 lookups, returning detailed information such as country, city, and coordinates without requiring an API key for up to 500 queries daily. We verified a keyless GET endpoint returning JSON (Open Data). Check the provider docs for rate limits and terms before production use.
GET https://api.ip2location.io/?ip=8.8.8.8
{
"ip": "8.8.8.8",
"country_code": "US",
"country_name": "United States of America",
"region_name": "California",
"city_name": "Mountain View",
"latitude": 37.38605,
"longitude": -122.08385,
"zip_code": "94035"
}curl "https://api.ip2location.io/?ip=8.8.8.8"const res = await fetch("https://api.ip2location.io/?ip=8.8.8.8");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://api.ip2location.io/?ip=8.8.8.8")
print(res.json())BROWSER CALLS BLOCKED (NO CORS/HTTPS) — USE THE CURL SNIPPET
/?ip=8.8.8.8PROBEDIP Geolocation API — The IP2Location API provides a RESTful interface for de…
/?limit=5IP Geolocation API root or index route.
/?page=1IP Geolocation API root or index route.
/?ip=8.8.8.8&key={YOUR_API_KEY}API root or index route.
/?key={YOUR_API_KEY}&ip=8.8.8.8&format=jsonAPI root or index route.
/?key={YOUR_API_KEY}&ip=8.8.8.8&format=xmlAPI root or index route.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
IP Geolocation API: common questions
Is IP Geolocation API free to use?
Yes — IP Geolocation API is a free open data API. Free tier: Free — limits not published. Whether the free tier allows commercial use is unclear — check the provider docs.
Does IP Geolocation API need an API key?
No — IP Geolocation API needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).
Can I call IP Geolocation API from the browser?
Not directly — IP Geolocation API doesn't send browser-friendly CORS headers, so call it from a server or proxy instead. Copy the curl or Python snippet on this page to get started.
Is IP Geolocation API up right now?
As of our last scheduled check, IP Geolocation API is healthy with 94.1% uptime over 90 days and a 257 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.