Currency Exchange Rates API
There are so many websites out there who can calculate Currency Exchange Rates for you, e.g. Google Search, Bing Search orYahoo Currency Converter. But what if you just want to have the exchange rate to use in your Desktop or Web Application? It would be kinda troublesome to extract the rate from one of the websites above, especially when they decide to change the layout of their HTML code.
That’s why I decided to create a very simple Currency Exchange Rates API. This API allows you to either get the conversion rate from US Dollar to your desired currency or can directly convert an entered value. The output is plain text, without HTML or XML attributes for easy access from all sources.
How does it work?
Just call the URL of the API with your desired exchange rate as parameter, e.g. index.php?curr=EUR for Euro. This will return the exchange rate from USD to EUR:
Which currencies are supported?
All in all, 126 different currencies are supported. See a list of all supported currencies on the index page.
Are the values up-to-date?
The API updates itself once an hour, so the values you’re getting may be up to 1h old. This should be good enough since these values are for information purposes only.
How does the calculator work?
The calculator works almost the same way as the API itself. Call calculator.php with three parameters: original, target and value.original and target are ISO codes of the currency, and value is the amount of orignal currency to convert. The output is the corresponding amout of target currency.
How accurate are the values?
The acuracy of the exchange rates can’t be guaranteed. All values are for informational purposes only. See the footer of the index page for more information.
Mirrors, Hosting and more Information
If you need support, search mirrors, want to host the script on your own server or if there are any questions, please visit the Currency API Support Page and contact me using the comments.
If there are any questions about the API, bug reports or feature requests, please feel free to comment!


Hey, nice work on the API. Another easy to use one I found was http://www.exchangerate-api.com .