Currency conversion guides
Tutorials for converting currencies and getting exchange rates in Python, JavaScript, PHP and Power BI, with the currencyapi API.
Tutorial · Python
Python currency converter with live and historical rates
Build a Python currency converter: live and historical rates with requests, exact Decimal math, rounding to minor units, caching, pandas and a small CLI.
Tutorial · Power BI
Power BI currency conversion with live and historical rates
Power BI currency conversion step by step: load daily or monthly exchange rates with Power Query, match them to sales by date and currency, convert with DAX.
Tutorial · PHP
PHP currency converter in plain PHP and Laravel
Build a PHP currency converter: live rates with cURL or Laravel's HTTP client, caching, exact bcmath arithmetic and rounding to each currency's minor units.
Tutorial · JavaScript
Currency converter in JavaScript and Node.js
Build a currency converter in JavaScript: live rates in Node.js, the API key kept on the server, exact BigInt math, rounding to minor units and Intl formatting.
Exchange rate API
Get these rates in your app
currencyapi delivers real-time and historical exchange rates for 170+ currencies, crypto and metals as JSON, updated as often as every 60 seconds.
Read the documentation300 free requests every month. No credit card required.
GET https://api.currencyapi.com/v3/latest?base_currency=USD¤cies=EUR,GBP,JPY
{
"meta": { "last_updated_at": "2026-09-30T23:59:59Z" },
"data": {
"EUR": { "code": "EUR", "value": 0.8828 },
"GBP": { "code": "GBP", "value": 0.7556 },
"JPY": { "code": "JPY", "value": 157.98 }
}
}