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
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded 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
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://ipapi.co/8.8.8.8/json/";
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
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
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.