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&currencies=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?

Yes. List them in currencies, or leave it out to convert into every supported currency.

Can I convert at a historical rate?

Yes. Add date=YYYY-MM-DD (at least one day in the past) to convert at that day's rates; history goes back to 1999.

Is the convert endpoint on the free plan?

No, it starts with the Small plan. Free accounts can request /v3/latest and multiply the amount by the rate.

Is there a free currency converter without code?

Yes: the currency converter on this site converts between 191 currencies at the live rate.

Related

More currency data

Free tools: currency converter · historical converter · bulk converter · converter widget

Get your free currency API key

Start with 300 free requests a month