IP geolocation API that just works
City, region, coordinates, timezone and ASN for any IPv4 or IPv6 address. HTTPS, CORS, JSON. Try it with no signup; get 50,000 requests a month with a free key. Commercial use is fine.
Try it
Loading…
Or: curl https://api.ipatlas.dev/v1/me · curl https://api.ipatlas.dev/v1/8.8.8.8
Get a free API key
50,000 requests/month, 50 req/s. We only store your email and request counts. The key is shown once on this page.
Without a key you get 1,000 requests per day per IP address at 10 req/s.
Why ipatlas
Not only country. No plain-HTTP-only endpoint.
Free tier needs only an attribution link to DB-IP.
One lookup is one request. Hitting the limit returns 429, never a bill.
Guides
- Show the visitor's country and city in JavaScript
- Redirect or set the locale by country in Next.js middleware
- Server-side country lookup with caching (Express or nginx)
- IP lookup in a Cloudflare Worker
- Get a visitor's country from an IP address in Python
- Get a visitor's country from an IP address in PHP
- IP geolocation middleware for Node.js and Express
Copy-paste examples for curl, JavaScript, Python, Go, PHP and Ruby are in the docs.
Pricing
Only the free plan exists today. Paid plans are planned; tell us which one you would use and we will email you once when they open. No payment is taken.
- 500,000 requests / month
- No attribution required
- 3,000,000 requests / month
- No attribution required
- 15,000,000 requests / month
- No attribution required