1. Indonesia
  2. Exchange rates

Indonesia Exchange rates API

Indonesian exchange rates from Bank Indonesia, served through the same key and JSON format as the world datasets.

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/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 · application/json
{
  "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"
    }
  ]
}

Fields

Each record in data has these fields. Types are read from the example values; a nullable field can hold null for some records.

FieldTypeExample
idstring"bi_2026-07-15_USD_transaksi"
datestring (date)"2026-07-15"
currencystring"USD"
rate_typestring"transaksi"
buy_ratenumber18008.51
sell_ratenumber18189.49
mid_rateinteger18099
fetched_atstring (date-time)"2026-07-15T03:43:23.385Z"

Filters and paging

Query parameters accepted by GET /v1/id/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