Currency conversion API
Currency Converter API
Send an amount and a base currency, and the convert endpoint returns that amount in every currency you ask for, at the latest rate or at the rate of a past date. No rate math in your code.
Example request and response
12 USD converted at the rates of 1 January 2022, the example from the /v3/convert documentation. Leave out date to convert at the latest rates.
curl "https://api.currencyapi.com/v3/convert?value=12&base_currency=USD¤cies=AED,EUR&date=2022-01-01" \
-H "apikey: YOUR-API-KEY"
{
"meta": {
"last_updated_at": "2022-01-01T23:59:59Z"
},
"data": {
"AED": { "code": "AED", "value": 44.07672 },
"EUR": { "code": "EUR", "value": 11.021472 }
}
}
Response fields
- value
- The amount to convert (request parameter, greater than 0).
- base_currency
- The currency of the amount (request parameter, default USD).
- date
- Optional past date (YYYY-MM-DD) to convert at historical rates.
- data.{CODE}.value
- The converted amount in each currency.
- meta.last_updated_at
- When the rates used were last updated (UTC).
Use cases
Checkout and invoices
Convert order totals and invoice amounts into the customer's currency on the server.
Expense and travel apps
Convert receipts at the rate of the day they were paid, with the date parameter.
Marketplaces
Show sellers and buyers the same price in their own currencies.
Convert endpoint from the Small plan
The convert endpoint is included from the Small plan ($9.99 a month, 15,000 requests, hourly updates). On the free plan, convert with the latest endpoint: multiply your amount by the returned rate.
Frequently asked questions
Can I convert into several currencies in one request?
Can I convert at a historical rate?
Is the convert endpoint on the free plan?
Is there a free currency converter without code?
Related
More currency data
Free tools: currency converter · historical converter · bulk converter · converter widget