1. Datasets
  2. Exchange Rates

Exchange Rates API

Get daily central bank reference rates by currency and date. 1,767 records across 1 countries and territories, from Bank Indonesia.

GET /v1/exchange-ratesPublisher terms1 countries28 Nov 2026

Request and response

The response below is the example from our OpenAPI document, so it shows the exact shape you get, though the record itself may come from another country.

GET/v1/exchange-rates
curl 'https://api.apifor.dev/v1/exchange-rates' \
  -G -d country=ID -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · application/json
{
  "success": true,
  "data": [
    {
      "country_code": "ID",
      "quote_currency": "IDR",
      "id": "bi_2026-11-27_AED_transaksi",
      "date": "2026-11-27",
      "currency": "AED",
      "rate_type": "transaksi",
      "buy_rate": 4981.64,
      "sell_rate": 5031.84,
      "mid_rate": 5006.74,
      "fetched_at": "2026-11-27T09:14:28.619Z"
    }
  ]
}

Fields

Each record in data has these fields. A nullable field can hold null for some records.

FieldTypeExample
country_codestring"ID"
quote_currencystring"IDR"
idstring"bi_2026-11-27_AED_transaksi"
datestring (date)"2026-11-27"
currencystring"AED"
rate_typestring"transaksi"
buy_ratenumber4981.64
sell_ratenumber5031.84
mid_ratenumber5006.74
fetched_atstring (date-time)"2026-11-27T09:14:28.619Z"

Filters and paging

Query parameters accepted by GET /v1/exchange-rates. Full detail, including the single-record route, is in the endpoint reference.

ParameterTypeRules
pageintegermin 1 · default 1
limitinteger1 to 200 · default 50
countrystringISO 3166-1 alpha-2
currencystringNone
datestringNone

Coverage by country

1 countries and territories have records in the 28 Nov 2026 snapshot. Each one has its own page with filters and counts.