FreeAPIHub
HomeAPIsAI ModelsAI ToolsBlog
Favorites
FreeAPIHub

The central hub for discovering, testing, and integrating the world's best AI models and APIs.

Platform

  • Categories
  • AI Models
  • APIs

Company

  • About Us
  • Contact
  • FAQ

Help

  • Terms of Service
  • Privacy Policy
  • Cookies

© 2026 FreeAPIHub. All rights reserved.

GitHubTwitterLinkedIn
  1. Home
  2. Categories
  3. Geolocation & Mapping
  4. ip-api Geolocation
published

ip-api Geolocation

The ip-api Geolocation API enables developers to retrieve precise location data from public IP addresses without requiring an API key, supporting multiple output formats.

Developed by ip-api.com

Live API
99.90%Uptime
150msLatency
0Stars
No AuthAuth
NoCredit Card
RESTStyle
1.0Version

Reference

API Endpoints

Endpoints

Available routes, request structures, and code examples.

Retrieves geolocation data for an IP address

Endpoint URL
http://ip-api.com/json
Code 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

Integration

Quick Start

cURL ExampleREST
curl -X GET "http://ip-api.com/json/24.48.0.1"

Docs

Technical Documentation

What this API does

The ip-api Geolocation API provides a simple and fast way to retrieve detailed location data based on public IP addresses. Developers can easily integrate this API to obtain information such as city, region, country, ZIP code, timezone, ISP, and geographical coordinates (latitude and longitude). Designed for high performance, it responds quickly with data in JSON, XML, or CSV formats.

How it works

This API allows developers to send HTTP GET requests to retrieve geographical information related to IP addresses. Each request returns structured data containing various location details. The service is designed for high throughput and can handle multiple requests simultaneously.

It supports batch queries which can be used to fetch data for up to 100 IPs in a single API call, making it efficient for large-scale applications.

Authentication

No authentication is required to access the ip-api Geolocation API. Developers can start using the service immediately without the need for an API key or signup process.

Example usage

  • http://ip-api.com/json/{ip} - Retrieves geolocation data for a specific IP address.
  • http://ip-api.com/batch - Accepts a batch of up to 100 IP addresses and returns location data for all.
  • http://ip-api.com/xml/{ip} - Retrieves geolocation data in XML format for a specific IP.
  • http://ip-api.com/csv/{ip} - Retrieves geolocation data in CSV format for a specific IP.

Limits

The ip-api Geolocation API allows up to 45 free requests per minute. For batch queries, the limit is set to a maximum of 100 IPs per request.

Ideal use cases

  • Building security applications to identify user locations.
  • Enhancing analytics tools to provide geo-based insights.
  • Enabling content localization based on user location.
  • Implementing fraud prevention mechanisms by analyzing IP data.

Examples

Real-World Applications

  • Fraud detection by identifying user locations
  • Content localization based on user's geographical position
  • Enhancing analytics with detailed user location data
  • Improving security measures by tracking user IP addresses

Evaluation

Advantages & Limitations

Advantages
  • ✓ No signup or API key required for free tier
  • ✓ Supports batch querying of up to 100 IPs
  • ✓ Multiple output formats: JSON, XML, CSV
  • ✓ Fast response times with high uptime
Limitations
  • ✗ Rate limit of 45 requests per minute on free tier
  • ✗ No official SDKs available
  • ✗ Limited advanced features compared to paid geolocation services
  • ✗ Accuracy may vary for some IP ranges

Support

Frequently Asked Questions

Important Notice

Verify Before You Decide

Last verified · Apr 30, 2026

The details on this page — including pricing, features, and availability — are based on our last review and may not reflect the provider's current offering. Providers update their products frequently, sometimes without prior notice.

What may have changed

Pricing Plans
Features & Limits
Availability
Terms & Policies

Always visit the official provider website to confirm the latest pricing, terms, and feature availability before subscribing or integrating.

Check official site

External Resources

Documentation Official Website Pricing Details Postman Collection

API Specifications

1.0
Pricing Model
Freemium
Credit Card
Not Required
Response Formats
JSON, XML, CSV
Supported Languages
7 Languages
SDK Support
REST Only
Rate Limit

45 requests per minute (free tier)

Time to Hello World

Less than 5 minutes

Free Tier

Allows 45 requests per minute with batch queries up to 100 IPs; no signup or API key required

Best For

Developers seeking quick, no-auth IP geolocation services for small to medium usage

Not Ideal For

High volume applications needing enterprise-level SLA or high accuracy

Tags

#batch#proxy-detection#ip-api#isp#no-auth#free-api#timezone#geolocation

You Might Also Like

More APIs Similar to ip-api Geolocation

Zippopotam.us API

The Zippopotam.us API offers developers free access to geographic data based on postal codes, ideal for address validation and auto-fill applications.

publicREST

REST Countries API

The REST Countries API offers free access to comprehensive data for over 250 countries, making it ideal for applications that require reliable country information.

publicREST

Countries Now API

The Countries Now API offers developers straightforward access to comprehensive country data, enhancing applications that require location-specific information.

publicREST