API Reference

/rates Endpoint

Fetch the full exchange-rate snapshot for a date, or rebased to any base currency.


Endpoints

GET https://api.currency-core.com/v1/rates
GET https://api.currency-core.com/v1/rates/:base

/v1/rates returns the full snapshot with USD as the base. /v1/rates/:base returns the same snapshot re-expressed against any base currency — handy when your product thinks in EUR, INR, or anything other than USD. Neither endpoint converts a specific amount; for that, use /v1/convert.

Parameters

ParameterInDescription
:basepathBase currency (3-letter ISO 4217), e.g. USD, EUR.
datequeryYYYY-MM-DD. Defaults to the latest available date.

Rates for a base currency

Every value is units of that currency per 1 unit of the base — the base itself is always 1.

curl "https://api.currency-core.com/v1/rates/EUR?date=2024-11-01" \
  -H "Authorization: Bearer cc_live_your_key"
{
  "base": "EUR",
  "date": "2024-11-01",
  "rates": {
    "EUR": 1,
    "USD": 1.0861,
    "INR": 91.62,
    "GBP": 0.835
  }
}

Rebasing is exact: units-per-base = (units-per-USD) / (base-units-per-USD).

Errors

StatusCodeWhen
400invalid_inputBase isn’t a 3-letter code.
400unknown_currencyThe base currency isn’t in the snapshot.
404rate_not_foundNo rates for the requested date.