# Bank of England API
> Live official UK monetary data from the Bank of England's Interactive Database — no key, nothing cached. The bank-rate endpoint returns Bank Rate, the official interest rate the Bank of England sets to steer the UK economy (currently 3.75%), with the date it took effect and recent history. The sonia endpoint returns SONIA, the Sterling Overnight Index Average — the sterling overnight benchmark that has replaced GBP LIBOR and underpins trillions of pounds of contracts — with its recent path. The gilt-yields endpoint returns the UK government bond (gilt) nominal par-yield curve at 5, 10 and 20 years with the 20y-5y slope. Everything is the Bank of England's own published series. This is the sterling-rates layer for any fixed-income, forex, UK-markets or macro app that needs authoritative GBP rates. Live from the Bank of England, nothing stored. Distinct from the ECB, Fed, Bank of Canada and Norges Bank APIs — this is the UK's Bank Rate, the SONIA benchmark and gilt yields. 4 endpoints.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/boe-api/..."
```

## Pricing
- **Free** (Free) — 12,700 calls/Mo, 3 req/s
- **Starter** ($8/Mo) — 138,500 calls/Mo, 8 req/s
- **Pro** ($20/Mo) — 652,000 calls/Mo, 15 req/s
- **Scale** ($49/Mo) — 3,230,000 calls/Mo, 30 req/s

## Endpoints

### Rates

#### `GET /v1/bank_rate` — UK official Bank Rate

**Parameters:**
- `history` (query, optional, string) — Past values (1-30) Example: `3`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/boe-api/v1/bank_rate?history=3"
```

**Response:**
```json
{
    "data": {
        "date": "2026-06-08",
        "name": "Official Bank Rate",
        "source": "Bank of England",
        "history": [
            {
                "date": "2026-06-04",
                "rate_pct": 3.75
            },
            {
                "date": "2026-06-05",
                "rate_pct": 3.75
            },
            {
                "date": "2026-06-08",
                "rate_pct": 3.75
            }
        ],
        "rate_pct": 3.75
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:47.515Z",
        "request_id": "976c30f6-2dc1-43d3-b87d-f1fd4016d00b"
    },
    "status": "ok",
    "message": "Bank rate retrieved successfully",
    "success": true
}
```

#### `GET /v1/gilt_yields` — UK gilt yield curve

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/boe-api/v1/gilt_yields"
```

**Response:**
```json
{
    "data": {
        "date": "2026-06-05",
        "count": 3,
        "curve": [
            {
                "tenor": "5Y",
                "months": 60,
                "yield_pct": 4.4309
            },
            {
                "tenor": "10Y",
                "months": 120,
                "yield_pct": 4.8773
            },
            {
                "tenor": "20Y",
                "months": 240,
                "yield_pct": 5.3633
            }
        ],
        "issuer": "UK Government gilts, nominal par yield",
        "source": "Bank of England",
        "country": "United Kingdom",
        "spread_20y_5y_bps": 93
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:47.966Z",
        "request_id": "4da3a416-ddb9-43c4-b689-2f2970df30c5"
    },
    "status": "ok",
    "message": "Gilt yields retrieved successfully",
    "success": true
}
```

#### `GET /v1/sonia` — SONIA overnight benchmark

**Parameters:**
- `history` (query, optional, string) — Past values (1-60) Example: `10`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/boe-api/v1/sonia?history=10"
```

**Response:**
```json
{
    "data": {
        "date": "2026-06-05",
        "name": "SONIA — Sterling Overnight Index Average",
        "source": "Bank of England",
        "history": [
            {
                "date": "2026-05-22",
                "rate_pct": 3.7301
            },
            {
                "date": "2026-05-26",
                "rate_pct": 3.729
            },
            {
                "date": "2026-05-27",
                "rate_pct": 3.729
            },
            {
                "date": "2026-05-28",
                "rate_pct": 3.7295
            },
            {
                "date": "2026-05-29",
                "rate_pct": 3.7302
            },
            {
                "date": "2026-06-01",
                "rate_pct": 3.7291
            },
            {
                "date": "2026-06-02",
                "rate_pct": 3.7308
            },
            {
                "date": "2026-06-03",
                "rate_pct": 3.7306
            },
            {
                "date": "2026-06-04",
                "rate_pct": 3.7308
            },
            {
                "date": "2026-06-05",
                "rate_pct": 3.7312
            }
        ],
        "rate_pct": 3.7312
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:48.345Z",
        "request_id": "f27a2be1-3d38-448b-b7f4-f6947584b372"
    },
    "status": "ok",
    "message": "SONIA retrieved successfully",
    "success": true
}
```

### Meta

#### `GET /v1/meta` — Spec

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/boe-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "source": "Bank of England Interactive Database (live)",
        "service": "boe-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/sonia": "SONIA overnight benchmark, current + recent history.",
            "GET /v1/bank_rate": "Official Bank Rate (history=N for past values).",
            "GET /v1/gilt_yields": "UK gilt nominal par-yield curve (5Y/10Y/20Y) + 20y-5y spread."
        },
        "description": "Live official UK monetary data from the Bank of England's Interactive Database: Bank Rate (the official interest rate) with effective date and history; SONIA, the sterling overnight benchmark that replaced GBP LIBOR, with its recent path; and the UK government gilt nominal par-yield curve at 5, 10 and 20 years with the 20y-5y slope. Live, no key, nothing stored. Distinct from the ECB, Fed, Bank of Canada and Norges Bank APIs — this is the UK's Bank Rate, the SONIA benchmark and gilt yields.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:48.700Z",
        "request_id": "a29ce7d3-bccb-4006-8fe8-f70920eceb85"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


---
Marketplace page: https://www.oanor.com/api/boe-api
OpenAPI spec: https://www.oanor.com/api/boe-api/openapi.json
