DEV Community

Алексей Спинов
Алексей Спинов

Posted on

IP Geolocation Without an API Key — Country, City, ISP in One Call

ip-api.com provides free IP geolocation with no key needed.

One API Call

http://ip-api.com/json/8.8.8.8?fields=country,city,isp,org,as,proxy,hosting
Enter fullscreen mode Exit fullscreen mode

What You Get

  • Country, city, region, zip
  • ISP and organization
  • ASN (Autonomous System Number)
  • Latitude/longitude
  • Timezone and UTC offset
  • VPN/proxy detection — identifies if IP is a proxy or hosting
  • Mobile detection — identifies mobile IPs

Rate Limit

45 requests/minute on free tier. For batch processing, use the batch endpoint.

Use Cases

  • Security: detect VPN/proxy usage
  • Analytics: geolocate your visitors
  • Fraud detection: flag suspicious IPs
  • Content: serve region-specific content

I built an IP Geolocation tool on Apify that also resolves domains to IPs — search knotless_cadence ip-geolocation.

Top comments (0)