ip-api
APIFree IP geocoding API for location and ISP data
Overview
ip-api is a RESTful geocoding API that retrieves location data via IP address or domain. Key endpoints include single lookup (country, region, city, coordinates, ISP, ASN) and batch lookup for multiple IPs. Responses are in JSON (default), XML, CSV, or newline formats. Use cases: geotargeting content, fraud prevention, ad optimization, and personalized user experiences. It supports IPv4/IPv6, with a free tier for non-commercial use (rate-limited) and pro tiers for HTTPS, higher limits, and priority support.
Example Integration (JavaScript)
fetch('https://ip-api.com/docs')
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err)); Key Features
- RESTful API design
- JSON/XML/CSV response formats
- IPv4 & IPv6 support
- Batch IP lookup
- No API key for free tier
- ISP & ASN data inclusion
Frequently Asked Questions
? Is ip-api free to use?
Yes, ip-api offers a free tier for non-commercial use with 45 requests per minute. Paid pro tiers unlock higher limits, HTTPS, and priority support.
? Does ip-api require an API key?
No API key is needed for the free tier. Pro tier users need an API key to access enhanced features and higher rate limits.
? What data does ip-api return?
Responses include country, region, city, ZIP code, coordinates, ISP, organization, ASN, and timezone. Optional parameters add more details like mobile carrier or proxy detection.
Top Alternatives
People Also Ask about ip-api
Tool Info
Pros
- ⊕ Generous free tier (45 requests/minute non-commercial)
- ⊕ Fast response times
- ⊕ Easy integration (no auth for basic use)
- ⊕ Comprehensive location data points
- ⊕ Supports multiple output formats
Cons
- ⊖ Rate limits on free tier
- ⊖ No SLA for free users
- ⊖ HTTPS locked to pro tier
- ⊖ Occasional minor data inaccuracies
- ⊖ Batch limits restricted in free tier