Skip to main content

Rates API — Live Currency Rates in JSON

XRates is a simple Rates API that returns live and historical currency exchange rates for 45+ currencies via a JSON REST interface. Built for developers who need dependable rate data without complex setup.

What the Rates API Can Do

  • Latest rates: get current rates for any base currency, filter by symbols. /api/v1/latest
  • Historical rates: fetch rates for any past date since data collection began. /api/v1/{date}
  • Currency conversion: convert an amount between two currencies in one request. /api/v1/convert
  • Time-series: daily rates across a date range for trend analysis. /api/v1/timeseries
  • Fluctuation: rate deltas and percent change between two dates. /api/v1/fluctuation

Get Rates in One Call

curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://xratesapi.com/api/v1/latest?base=USD"

Returns a JSON object with base, date, and rates map for all 45+ currencies. Response times typically under 50ms.

Who Uses a Rates API

E-commerce & marketplaces

Display product prices in local currency, accept multi-currency checkout, reconcile refunds at historical rates.

Fintech & accounting

Automate multi-currency bookkeeping, journal entries with period-end rates, treasury dashboards.

Travel & booking

Show trip budgets in home currency, estimate foreign fees, currency converters on site.

Data & analytics

Build dashboards, charts, and ML features on top of historical and time-series rate data.

Rates API — FAQ

What is a Rates API?

A Rates API is a REST service that returns real-time and historical currency exchange rates in JSON format, usable by any programming language via a simple HTTP request.

Which sources power the XRates Rates API?

Rates are aggregated from the European Central Bank (ECB), Central Bank of Russia (CBR), FloatRates, fawazahmed0 and IMF with priority-based fallback for maximum reliability.

Is the Rates API free?

Yes. The free plan includes 100 requests per month with no credit card required. Paid plans start at $9/month for 10,000 requests.

How do I authenticate?

Send your API key as a Bearer token in the Authorization header: Authorization: Bearer YOUR_API_KEY.

Rates API — Free to Start

100 free requests · 45+ currencies · ECB & CBR data

Get Your Free API Key