# Czech National Bank API

> Returns Czech National Bank exchange rate fixings by day, year or date range, and the currencies it quotes.

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

The Czech National Bank exchange rate fixing of a day, or of the latest working day.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `date` | string | no | Day in YYYY-MM-DD form. Omit it for the latest fixing. (e.g. 2024-01-02) |
| `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), `items` (Rate[]), `items[].amount` (integer (int64)), `items[].code` (string), `items[].country` (string), `items[].currency` (string), `items[].rate` (number (double)), `number` (string)

```bash
curl "https://api.hoshime.com/v1/cnb/daily?date=2024-01-02" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/cnb/year

The Czech National Bank exchange rate fixings of one year, day by day, oldest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `year` | integer | yes | Calendar year, such as 2024. (e.g. 2024) |
| `code` | string | no | Three-letter currency code to keep, such as USD. Omit it for every currency. (e.g. USD) |
| `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: `days` (DayRates[]), `days[].date` (string), `days[].items` (DayEntry[]), `year` (string)

```bash
curl "https://api.hoshime.com/v1/cnb/year?year=2024&code=USD" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/cnb/currencies

The currencies the latest Czech National Bank fixing quotes, with their country and quoted amount.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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: `amount` (integer (int64)), `code` (string), `country` (string), `currency` (string)

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

## GET /v1/cnb/range

The Czech National Bank exchange rate fixings between two days, oldest first. The range is at most 366 days.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `start` | string | yes | First day in YYYY-MM-DD form. (e.g. 2024-01-02) |
| `end` | string | yes | Last day in YYYY-MM-DD form. (e.g. 2024-01-04) |
| `code` | string | no | Three-letter currency code to keep, such as USD. Omit it for every currency. (e.g. USD) |
| `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: `days` (DayRates[]), `days[].date` (string), `days[].items` (DayEntry[]), `end` (string), `start` (string)

```bash
curl "https://api.hoshime.com/v1/cnb/range?start=2024-01-02&end=2024-01-04&code=USD" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/cnb/monthlyRates

The Czech National Bank month-end exchange rates of the about 120 currencies that the daily fixing does not quote, for one year, oldest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `year` | integer | yes | Calendar year, such as 2025. (e.g. 2025) |
| `code` | string | no | Three-letter currency code to keep, such as AED. Omit it for every currency. (e.g. AED) |
| `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: `amount` (integer (int64)), `code` (string), `country` (string), `currency` (string), `date` (string), `rate` (number (double))

```bash
curl "https://api.hoshime.com/v1/cnb/monthlyRates?year=2025&code=AED" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
