ipapi.co API
Overview
ipapi.co is a simple REST API that returns the geolocation of any IP address, including country, city, and currency. It requires no authentication for up to 30,000 requests per day, making it ideal for quick prototypes. Just call the URL with an IP or leave it blank to look up the caller own address.
Beginner Tip
To get your own IP location, call https://ipapi.co/json/ with no IP in the URL and the API automatically detects the caller. For production use, add your API key to avoid rate limits.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from ipapi.co",
"description": "Find IP address location information",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
ip The IP address that was looked up. country_name Full name of the country, e.g. United States. city Name of the city associated with the IP address. timezone IANA time zone string such as America/Chicago. currency Three-letter ISO 4217 currency code for the country, e.g. USD. org Organization or ISP name associated with the IP, often prefixed by AS number. Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://ipapi.co/api/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Alternatives to ipapi.co
Technical alternatives for different use cases.
Basic IP geolocation with free tier
Budget-friendly IP geolocation
Data accuracy and field coverage
Free tier without API key for basic lookups
Bulk lookups and enterprise-grade reliability
No-signup IP geolocation for prototyping
More data fields including security and connection info
Comprehensive IP intelligence with security data
Free no-auth lookups for quick prototyping
Similar APIs
View All →administrative-divisons-db
⭐ Beginner's PickThe Administrative Divisions DB API provides a structured list of all administrative divisions (states, provinces, regions, cities) for countries around the world.
adresse.data.gouv.fr
adresse.data.gouv.fr provides programmatic access to address database of france, geocoding and reverse via REST API.
Airtel IP
⭐ Beginner's PickAirtel IP is a free, no-auth IP geolocation API that aggregates data from multiple sources to return the country associated with any given IP address.
bng2latlong
⭐ Beginner's Pickbng2latlong is a simple, free API that converts British National Grid (OSGB36) easting and northing coordinates into standard WGS84 latitude and longitude.
Cartes.io
⭐ Beginner's PickCartes.io is a free API that lets you create maps and add custom markers without signing up.