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, at the rate of a past date or at a moment of the day. Convert up to 100 amounts in one request, round the results to shop prices such as 9.99, and get them as JSON, CSV or an Excel file. 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 }
}
}
Parameters and response fields
- value
- The amount to convert (request parameter, greater than 0).
- values
- Up to 100 amounts, comma-separated (
values=9.99,24.50,100), instead ofvalue.datathen holds one entry per amount, in the order sent, and the call costs one request however many amounts it holds. - base_currency
- The currency of the amount (request parameter, default USD).
- date
- Optional past date (YYYY-MM-DD) to convert at historical rates.
- datetime
- Convert at a moment of the day (ISO 8601, e.g.
2026-09-30T10:07:30Z): the rate of the minute, quarter hour or hour it falls in, at your plan's update interval. Minutes and quarter hours go back 7 days, hours 3 months. - round_step, price_ending, round_mode
- Shop prices:
round_steprounds to a multiple of a step (0.05,1,10),price_endingto a price ending such as0.99.round_modeisnearest(default),upordown. Both addroundednext to the exact value. - locale
- Adds
formatted: the amount as text in an ICU locale such asde_AToren-US, with the currency symbol, e.g.€ 1.233,99. - format
json(default),csv(one row per currency and amount) orxlsx, the same table as an Excel workbook.- data.{CODE}.value
- The converted amount in each currency, always the exact conversion.
- 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 date, or at the time of payment with datetime.
Marketplaces
Show sellers and buyers the same price in their own currencies: convert a whole price list in one request and round it to endings such as .99.
Convert endpoint from the Small plan
The convert endpoint is included from the Small plan ($12.99 a month, 15,000 requests, hourly updates), with every option on this page: several amounts, datetime, rounding, locale formatting, CSV and Excel. With datetime you get the rate of the hour on Small, of the quarter hour on Pro and of the minute from Medium. On the free plan, convert with the latest endpoint: multiply your amount by the returned rate.
Other currency APIs from Everapi
currencyapi.com is made by Everapi GmbH. Two sister products may fit your project better:
Frequently asked questions
Can I convert into several currencies in one request?
Can I convert at a historical rate?
Can I convert many amounts in one request?
Can the API round converted prices?
Can I convert at a specific time of day?
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