Overview
IPstack is a real-time IP geolocation API that lets you look up the geographic location of any IP address, including country, city, latitude, and longitude. You get a free tier with 100 requests per month to get started without a credit card. It is commonly used to personalize content, detect fraud, or restrict access by region.
Beginner Tip
Sign up for a free API key at ipstack.com, then append ?access_key=YOUR_API_KEY to every request URL. The free plan supports HTTP only — upgrade to a paid plan if you need HTTPS.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from IPstack",
"description": "Locate and identify website visitors by IP address",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
ip The IP address that was looked up. country_name Full name of the country associated with the IP address. city City name associated with the IP address, if available. latitude Latitude coordinate of the IP location. longitude Longitude coordinate of the IP location. currency Currency information for the country, including code and symbol. Implementation Example
const url = "https://ipstack.com/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
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
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Alternatives to IPstack
Technical alternatives for different use cases.
Free tier available with basic geolocation data
Basic country/city detection on a budget
Detailed ISP and connection type data
Generous free tier with 1K lookups/day, no API key needed
Small projects that want no-signup IP lookup
Enterprise-scale IP intelligence with SLA
Similar IP geolocation with real-time currency and timezone data
Projects needing currency info alongside geolocation
Batch IP lookups at scale
Similar APIs
View All →Actinia Grass GIS
Actinia Grass GIS provides programmatic access to actinia is an open source rest api for geographical data that uses grass gis via REST API.
Apiip
Apiip is an IP geolocation API that returns detailed location data including city, country, timezone, and currency for any IP address.
Battuta
Battuta is a hierarchical location API that lets you browse countries, regions, and cities in a cascade, making it easy to build location pickers with dependent dropdowns.
BigDataCloud
⭐ Beginner's PickBigDataCloud offers a fast and highly accurate IP geolocation API that also includes network security checks and a confidence area metric to indicate how precise the location is.
Bing Maps
Bing Maps (now Azure Maps) is Microsoft's mapping platform that lets you geocode addresses, reverse geocode coordinates, get routes, and embed interactive maps in your applications.