published

IP Geolocation

The IP Geolocation API provides developers with access to precise location data, including city, region, and ISP, for public IP addresses, ideal for app integration.

Developed by ip-api.com

99.98%Uptime
50msLatency
0Stars
No AuthAuth
NoCredit Card
RESTStyle
v1Version
API Endpoints

Reference for available routes, request structures, and live examples.

Retrieves geolocation data for an IP address

Full Endpoint URL
http://ip-api.com/json
Implementation Example
curl -X GET 'http://ip-api.com/json'
Request Payload
{
  "fields": "status,message,country,city,lat,lon,isp"
}
Expected Response
{
  "isp": "Google Cloud",
  "lat": 37.40599,
  "lon": -122.078514,
  "city": "Mountain View",
  "status": "success",
  "country": "United States"
}
Version:v1
Limit:45 requests/minute
Real-World Applications
  • Fraud detection and prevention based on user locationOptimized Capability
  • Personalizing content or language based on user’s country or cityOptimized Capability
  • Network security and logging user access locationsOptimized Capability
  • Geo-targeted analytics and reportingOptimized Capability
  • Restricting or allowing access based on geographic regionOptimized Capability
Advantages
  • No API key or signup required for free usage
  • Low latency and fast global response times
  • Simple, easy-to-use RESTful endpoints
  • Comprehensive location data per IP
  • Good documentation and real-world usage examples
Limitations
  • Free tier limited to HTTP (no HTTPS)
  • Strict rate limits on free plan
  • No official SDKs; integration is manual
  • Does not provide carrier or mobile geodata
  • Paid plan required for commercial or high-traffic sites

FAQs

API Specifications

v1
Pricing Model
Pay-as-you-go and monthly subscription
Credit Card
Not Required
Response Formats
JSON
Supported Languages
9 Languages
SDK Support
REST Only
Time to Hello World

Less than 10 minutes

Rate Limit

45 requests per minute (free tier), higher with paid plans

Free Tier Usage

45 HTTP requests per minute, 1,500 requests per IP per day, no API key required, access to all fields (JSON). No HTTPS support on the free tier.

Use Case: Best For

Developers needing quick, reliable, and affordable IP geolocation for websites, apps, analytics, or fraud detection.

Not Recommended For

Apps requiring real-time mobile network geolocation, privacy-protected HTTPS on the free tier, or carrier-specific data.

#networking#geolocation

Explore Related APIs

Discover similar APIs to IP Geolocation

View All APIs
OPEN SOURCE

REST Countries API

The REST Countries API offers developers free, no-key-required access to detailed country information, suitable for various applications.

Geolocation & MappingView Details
OPEN SOURCE

Countries Now API

The Countries Now API provides developers with structured geolocation data about countries and cities, making it ideal for enhancing international features in applications.

Geolocation & MappingView Details
OPEN SOURCE

Zippopotam.us

The Zippopotam.us API provides free access to postal and ZIP code information from over 60 countries, suitable for enhancing address lookup and geocoding functionality in applications.

Geolocation & MappingView Details