Exchange rates All docs

Indonesia Exchange rates API Reference

2 routes under /v1/id/exchange-rates. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request.

GET/v1/id/exchange-rates

List bank indonesia 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/id/exchange-rates
curl 'https://api.apifor.dev/v1/id/exchange-rates' \
  -G -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "id": "bi_2026-07-15_USD_transaksi",
      "date": "2026-07-15",
      "currency": "USD",
      "rate_type": "transaksi",
      "buy_rate": 18008.51,
      "sell_rate": 18189.49,
      "mid_rate": 18099,
      "fetched_at": "2026-07-15T03:43:23.385Z"
    }
  ]
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable
GET/v1/id/exchange-rates/{id}

Find bank indonesia exchange rates by identifier.

ParameterInTypeRules
id *pathstringNone
GET/v1/id/exchange-rates/{id}
curl 'https://api.apifor.dev/v1/id/exchange-rates/{id}' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "id": "bi_2026-07-15_USD_transaksi",
    "date": "2026-07-15",
    "currency": "USD",
    "rate_type": "transaksi",
    "buy_rate": 18008.51,
    "sell_rate": 18189.49,
    "mid_rate": 18099,
    "fetched_at": "2026-07-15T03:43:23.385Z"
  }
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable

Error handling · Rate limits · Source licences