Currency and finance

geoPlugin Currency Converter

by geoplugin.com

Currency and finance Added on February 12th, 2011 Checked and working on November 15th, 2026
Visit geoplugin.com →

What it does

All calls to any of geoPlugin's web services provide you with an accurate currency converter function, as well as currency details about your visitor (what is their local currency code and symbol), that is updated daily.

This allows you to easily and accurately provide geolocalized prices in your visitors' local currency on any and all of your pages. That way, if your visitors are from another country, they know how much your products will cost them.

The default base rate returned when calling our web services is $US. If you trade goods in a currency other than $US, you can change this by tagging the variable base_currency=XXX to the web service call, where XXX is a valid ISO 4217 3-letter code.

PHP, JSON, and XML webservices all return the exchange rate within the variable geoplugin_currencyConverter.
  • HTTP-GET
  • JSON
  • Javascript
  • REST
  • XML

At a glance

Formats
JSON, XML
Interface
REST, HTTP-GET, Javascript
Provider
geoplugin.com
Last checked
Working on November 15th, 2026

More information: https://www.geoplugin.com/webservices/currency

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

geoplugin.com
geoPlugin Currency Converter

Example request

curl

curl 'http://www.geoplugin.net/json.gp?ip=8.8.8.8&base_currency=USD'

JavaScript

const response = await fetch("http://www.geoplugin.net/json.gp?ip=8.8.8.8&base_currency=USD");
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "http://www.geoplugin.net/json.gp?ip=8.8.8.8&base_currency=USD",
    timeout=30,
)
print(response.json())

Did it work for you?

Tell us what you found when you tried geoPlugin Currency Converter.