Currency conversion guides
Tutorials for converting currencies and getting exchange rates in Python, JavaScript, PHP and Power BI, with the currencyapi API.
Tutorial · Power BI
Exchange rates in Power BI
Load live and historical exchange rates into Power BI with Power Query and the currencyapi API, and convert sales in multiple currencies to one reporting currency.
Tutorial · Python
Currency conversion in Python
Convert currencies in Python with live and historical exchange rates from the currencyapi API: requests, caching, Decimal rounding and a pandas example.
Tutorial · PHP
Currency conversion in PHP
Convert currencies in PHP and Laravel with live exchange rates from currencyapi: cURL and Laravel HTTP examples, caching and correct rounding with bcmath.
Tutorial · JavaScript
Currency conversion in JavaScript
Build a currency converter in JavaScript: fetch live exchange rates in Node.js, keep your API key on the server, format amounts with Intl.NumberFormat and cache rates.
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.
300 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 }
}
}