geoPlugin API
Overview
geoPlugin is a free IP geolocation API that also includes real-time currency conversion data alongside the location information. It identifies a visitor country, city, and local currency from their IP address without requiring any API key or registration. This makes it one of the simplest APIs to add to any web project.
Beginner Tip
Passing no IP to the endpoint automatically looks up the requester IP, and the response includes currency data — so you can localize both language and pricing in a single API call.
Available Data
Example Response
{
"ip": "203.0.113.42",
"city": "San Francisco",
"region": "California",
"country_code": "US",
"latitude": 37.7749,
"longitude": -122.4194,
"timezone": "America/Los_Angeles",
"isp": "Example ISP"
} Field Reference
geoplugin_request The IP address that was looked up. geoplugin_countryName Full country name for the IP address. geoplugin_city Approximate city name for the IP address. geoplugin_currencyCode ISO 4217 currency code for the country (e.g. USD, EUR). geoplugin_currencyConverter Exchange rate from USD to the local currency. geoplugin_latitude Approximate latitude of the IP address location. Implementation Example
const url = "https://www.geoplugin.com/";
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.