Documentation

Getting started

From an empty account to a live quote in four steps.

The shape of the API

Six endpoints across two markets: fiat under /v1 and crypto under /v1/crypto. Both markets answer the same field names, so a single client can serve either one.

Every response carries date and updated_at. updated_at is the moment the rate was captured upstream, which is the value you should store next to a charge.

Four steps

  • Create an account. The free plan activates immediately, with no payment method.
  • Subscribe to the currency product from the billing page.
  • Create an API key. The full secret is displayed once, so store it right away.
  • Send the key as a bearer token on any /v1 request.

Your first quote

cURL
curl "https://api.currencyrates-api.com/v1/convert?from=USD&to=BRL&amount=100" \
  -H "Authorization: Bearer fx_live_xxxxxxxxxxxxxxxxxx"

Currency codes

Fiat currencies use ISO 4217 codes such as USD, BRL and EUR. Crypto assets use their ticker, such as BTC, ETH or USDT. Codes are case-insensitive on input and always uppercase in responses.

Not financial advice

Rates and conversions are informational. The API is not financial advice, a trading venue or a money-transmission service. Do not rely on a quote as the sole basis for executing a trade, settling a payment or meeting a regulatory obligation.

In your language

curl "https://api.currencyrates-api.com/v1/convert?from=USD&to=BRL&amount=100" \
  -H "Authorization: Bearer fx_live_xxxxxxxxxxxxxxxxxx"