Exchange Rates All docs

Exchange Rates API Reference

2 routes under /v1/exchange-rates. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request. Coverage and licence are on the Exchange Rates page.

GET/v1/exchange-rates

List central bank exchange rates with filters and paging.

ParameterInTypeRules
pagequeryintegermin 1 · default 1
limitqueryinteger1 to 200 · default 50
countryquerystringISO 3166-1 alpha-2
currencyquerystringNone
datequerystringNone
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 · 200
{
  "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"
    }
  ]
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable
GET/v1/exchange-rates/{id}

Find central bank exchange rates by identifier.

ParameterInTypeRules
id *pathstringNone
GET/v1/exchange-rates/{id}
curl 'https://api.apifor.dev/v1/exchange-rates/{id}' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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"
  }
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable

Error handling · Rate limits · Source licences