ip-api API
Overview
ip-api provides fast, free IP geolocation data including country, city, region, ISP, and coordinates for any public IP or domain name. It requires no API key for basic usage and supports both JSON and XML responses. The free tier is limited to 45 requests per minute from non-commercial use.
Beginner Tip
You can look up your own IP by calling http://ip-api.com/json (no IP needed) — great for testing. Note that ip-api requires HTTP (not HTTPS) on the free tier; HTTPS is only available on paid plans.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from ip-api",
"description": "Find location with IP address or domain",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
status "success" if the lookup worked, "fail" if the IP was invalid or private. country Full country name for the IP address. countryCode ISO 3166-1 alpha-2 two-letter country code. city Estimated city name for the IP location. isp Internet Service Provider name for the IP. lat Approximate latitude of the IP location. lon Approximate longitude of the IP location. Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://ip-api.com/docs";
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
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.