# Bank of England API

> Returns the Bank Rate, SONIA and Interactive Database series values from the Bank of England, newest first.

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

The Bank of England Bank Rate, the policy rate the MPC sets, by day, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `from` | string | no | First day, YYYY-MM-DD. Default 90 days ago. |
| `to` | string | no | Last day, YYYY-MM-DD. Default today. |
| `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), `value` (number (double) | null)

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

## GET /v1/boe/exchangeRate

Sterling spot exchange rate against one currency (USD, EUR, JPY or CAD): units of the currency per pound, by day, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `currency` | string | yes | Currency the pound is priced in: USD, EUR, JPY or CAD. (one of USD, EUR, JPY, CAD; e.g. USD) |
| `from` | string | no | First day, YYYY-MM-DD. Default 90 days ago. |
| `to` | string | no | Last day, YYYY-MM-DD. Default today. |
| `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), `value` (number (double) | null)

```bash
curl "https://api.hoshime.com/v1/boe/exchangeRate?currency=USD" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/boe/series

Series of the Bank of England's Interactive Database by code, one item per series with its dated values, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `series` | string | no | Interactive Database series codes, comma-separated, up to 40 in one call. Default IUDBEDR (Bank Rate). (default IUDBEDR; e.g. IUDBEDR,IUDSOIA) |
| `from` | string | no | First day, YYYY-MM-DD. Default 30 days ago. |
| `to` | string | no | Last day, YYYY-MM-DD. Default today. |
| `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), `observations` (Observation[]), `observations[].date` (string), `observations[].value` (number (double) | null)

```bash
curl "https://api.hoshime.com/v1/boe/series?series=IUDBEDR%2CIUDSOIA" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/boe/seriesWide

Series of the Bank of England's Interactive Database by code, one item per day carrying every requested series, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `series` | string | no | Interactive Database series codes, comma-separated, up to 40 in one call. Default IUDBEDR (Bank Rate). (default IUDBEDR; e.g. IUDBEDR,IUDSOIA) |
| `from` | string | no | First day, YYYY-MM-DD. Default 30 days ago. |
| `to` | string | no | Last day, YYYY-MM-DD. Default today. |
| `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), `values` (map)

```bash
curl "https://api.hoshime.com/v1/boe/seriesWide?series=IUDBEDR%2CIUDSOIA" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/boe/sonia

SONIA, the sterling overnight index average and the UK's risk-free rate, by day, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `from` | string | no | First day, YYYY-MM-DD. Default 90 days ago. |
| `to` | string | no | Last day, YYYY-MM-DD. Default today. |
| `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), `value` (number (double) | null)

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