# Bank Indonesia API

> Returns JISDOR USD/IDR reference rates, foreign currency transaction rates and history, and BI-Rate policy decisions.

Category: Finance & Crypto. Region: ID. 7 endpoints at `https://api.hoshime.com/v1/bankindonesia/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/bankindonesia
## GET /v1/bankindonesia/jisdor

JISDOR, the official USD/IDR reference rate, for the days the Bank Indonesia page lists (about a month).

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `date` | string | no | One day, YYYY-MM-DD. Omit for every day the page lists. |
| `startDate` | string | no | Keep days on or after this date, YYYY-MM-DD. Days the page lists only. |
| `endDate` | string | no | Keep days on or before this date, YYYY-MM-DD. Days the page lists only. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `date` (string), `rate` (number (double))

```bash
curl "https://api.hoshime.com/v1/bankindonesia/jisdor" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bankindonesia/jisdorHistory

The JISDOR reference rate (USD/IDR) for every day of a date range, newest day first.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `startDate` | string | yes | First day of the range, YYYY-MM-DD. (e.g. 2025-01-02) |
| `endDate` | string | yes | Last day of the range, YYYY-MM-DD. The range can span at most one year. (e.g. 2025-01-10) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `date` (string), `rate` (number (double))

```bash
curl "https://api.hoshime.com/v1/bankindonesia/jisdorHistory?startDate=2025-01-02&endDate=2025-01-10" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bankindonesia/transactionRates

Bank Indonesia's transaction rates today: the buy and sell rate in rupiah for each foreign currency.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Currency code to keep, such as USD. Case-insensitive; omit for every currency. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `buyRate` (number (double)), `currency` (string), `quantity` (number (double)), `sellRate` (number (double))

```bash
curl "https://api.hoshime.com/v1/bankindonesia/transactionRates" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bankindonesia/transactionRateHistory

Bank Indonesia's daily transaction rates of one currency over a date range (buy, sell and middle rate), newest day first.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `currency` | string | yes | Currency code, such as USD. (e.g. USD) |
| `startDate` | string | yes | First day of the range, YYYY-MM-DD. (e.g. 2025-01-02) |
| `endDate` | string | yes | Last day of the range, YYYY-MM-DD. The range can span at most one year. (e.g. 2025-01-10) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `buyRate` (number (double)), `currency` (string), `date` (string), `middleRate` (number (double)), `quantity` (number (double)), `sellRate` (number (double))

```bash
curl "https://api.hoshime.com/v1/bankindonesia/transactionRateHistory?currency=USD&startDate=2025-01-02&endDate=2025-01-10" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bankindonesia/currencies

The foreign currencies Bank Indonesia publishes transaction rates for, with their names.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Currency code to keep, such as USD. Case-insensitive; omit for every currency. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `code` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/bankindonesia/currencies" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bankindonesia/policyRate

The latest Bank Indonesia policy rate (BI-Rate) decisions, newest first.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 10. (default 10) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `date` (string), `rate` (number (double))

```bash
curl "https://api.hoshime.com/v1/bankindonesia/policyRate" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bankindonesia/inflation

The latest monthly inflation figures Bank Indonesia publishes, newest first.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 10. (default 10) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `period` (string), `rate` (number (double))

```bash
curl "https://api.hoshime.com/v1/bankindonesia/inflation" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
