Bank of England
Discover Bank of England statistical series and retrieve observations with original periods, units and source metadata
- Connector software
- Free and open source
- Service credentials
- Not needed
- Query Farm hosting
- Available · $10/month organization minimum
Use with an agent
Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.
npx skills add Query-farm/vgi-skills --skill orchard
Copy this request into your coding agent to get started.
Use https://query.farm/products/orchard/connectors/boe/index.md to help me query Bank of England with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.
bank_rate_series
Example output · captured
- Connector release
- v0.2.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
SELECT series_code, title
FROM boe.main.datasets(query := 'bank rate')
ORDER BY series_code;
| series_code | title |
|---|---|
| IUDBEDR | Official Bank Rate |
Quick start
Choose where to run Bank of England, then follow the steps below.
The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.
1. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
2. Attach the connector
Attach with uvx
Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.
ATTACH 'boe' AS boe (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-boe-worker'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'boe' AS boe (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-boe:0.2.0'
);
3. Run a query
SELECT series_code, title
FROM boe.main.datasets(query := 'bank rate')
ORDER BY series_code;
Run the connector on a server you manage. You operate the service and choose who can connect.
1. Deploy the connector on your server
Follow the connector’s deployment instructions. Use its supported HTTP transport, or launch it remotely over SSH. The connection guide explains both options.
2. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach the connector
For an HTTP deployment, replace the example URL with your endpoint. Add the authentication options your deployment requires. For SSH, use the SSH connection instructions.
ATTACH 'boe' AS boe
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT series_code, title
FROM boe.main.datasets(query := 'bank rate')
ORDER BY series_code;
Query Farm operates Bank of England for your team. Hosting has a $10 monthly minimum per organization; usage counts toward it. From $2.97 per instance-month ($10 monthly minimum).
1. Create your hosted connector
Open the console, choose your organization and deployment size, and add any service credentials there.
2. Install the vgi extension
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach your deployment
Copy the ATTACH statement from your deployment in the console and run it in DuckDB or Haybarn. Use boe as the catalog alias for the query below.
4. Run a query
SELECT series_code, title
FROM boe.main.datasets(query := 'bank rate')
ORDER BY series_code;
Technical details
- Verified connector release
- v0.2.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
- Verified on
- December 1, 2026
Pin a version for production
When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.
Attach with uvx
Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.
ATTACH 'boe' AS boe (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-boe-worker'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'boe' AS boe (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-boe:0.2.0'
);
Overview
Bank of England statistics as SQL tables: interest rates, money, credit and other time series from the Bank of England Database, with series metadata and published revision history. No API key needed.
Discover Bank of England statistical series and retrieve observations with original periods, units and source metadata. The upstream public data service needs no API key. SQL NULL arguments are rejected; missing source values become NULL. Use function arguments for source filtering; SQL WHERE filters are local. HTTP worker access can require a bearer token.
Queries use bounded HTTP responses and retries. Credentials stay out of continuation state. See README.md for deployment and operational limits.
Sources and references
Catalog
Everything boe exposes once attached — read straight from the worker's
released build.
main 5 functions
Bank of England Database series as table functions: series discovery, metadata and observations.
Schema examples (6)
Discover BoE series examples
SELECT series_code, title
FROM boe.main.datasets(query := 'rate')
ORDER BY series_code;
Inspect BoE series metadata
SELECT series_code, title, frequency
FROM boe.main.series(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY series_code;
Read BoE observations
SELECT period, value
FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY period;
Read BoE publication history
SELECT period, published_at, value
FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-03-31', updated_since := '2024-01-01')
ORDER BY period, published_at;
2 more examples
Compare each 2024 month's first-published and current M4 change (LPMAUZI revisions) with that month's average Bank Rate (IUDBEDR observations), showing how much each estimate was revised
WITH m4 AS (SELECT observation_date AS month_end, arg_min(value, published_at) AS first_published, max(value) FILTER (WHERE is_current) AS current_value FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-12-31', updated_since := '2024-01-01') GROUP BY observation_date), rate AS (SELECT date_trunc('month', observation_date) AS month_start, round(avg(value), 3) AS avg_bank_rate FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-01', end_date := '2024-12-31') GROUP BY ALL) SELECT strftime(m.month_end, '%Y-%m') AS month, r.avg_bank_rate, m.first_published, m.current_value, m.current_value - m.first_published AS total_revision
FROM m4 AS m
JOIN rate AS r ON r.month_start = date_trunc('month', m.month_end)
ORDER BY month;
Discover the BoE series added in September 2024
SELECT series_code, title
FROM boe.main.new_series(start_date := '2024-09-01', end_date := '2024-09-30')
ORDER BY series_code;
datasets (max_rows := BIGINT, query := VARCHAR)
Search a small curated list of official series. This is not the complete BoE catalog; use the linked interactive database for all codes. No network request is made.
Discover BoE series examples
SELECT series_code, title
FROM boe.main.datasets(query := 'rate')
ORDER BY series_code;
new_series (end_date := VARCHAR, max_rows := BIGINT, start_date := VARCHAR)
Use the official SeriesCodes=all mode to list series added within the required start_date/end_date window. This discovers additions, not every existing series and not observations. Both dates are named arguments.
Discover the BoE series added in September 2024
SELECT series_code, title
FROM boe.main.new_series(start_date := '2024-09-01', end_date := '2024-09-30')
ORDER BY series_code;
observations (series_codes VARCHAR[], end_date := VARCHAR, include_provisional := BOOLEAN, max_rows := BIGINT, start_date := VARCHAR, updated_since := VARCHAR, updates_only := BOOLEAN)
Retrieve current observations in published units with exact numeric text, footnotes and publication timestamps. Provisional values occupy separate columns. Source timestamps have no inferred timezone. series_codes is positional; dates and controls are named.
Read BoE observations
SELECT period, value
FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY period;
revisions (series_codes VARCHAR[], end_date := VARCHAR, include_provisional := BOOLEAN, max_rows := BIGINT, start_date := VARCHAR, updated_since := VARCHAR, updates_only := BOOLEAN)
Flatten the revision entries returned by the XML service and include the current release once. Set updated_since to a historical baseline to request earlier revisions; empty uses the source's previous-release comparison. Coverage depends on the source and is not a complete ALFRED-style archive. series_codes is positional; dates and controls are named.
Read BoE publication history
SELECT period, published_at, value
FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-03-31', updated_since := '2024-01-01')
ORDER BY period, published_at;
Compare each 2024 month's first-published and current M4 change (LPMAUZI revisions) with that month's average Bank Rate (IUDBEDR observations), showing how much each estimate was revised
WITH m4 AS (SELECT observation_date AS month_end, arg_min(value, published_at) AS first_published, max(value) FILTER (WHERE is_current) AS current_value FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-12-31', updated_since := '2024-01-01') GROUP BY observation_date), rate AS (SELECT date_trunc('month', observation_date) AS month_start, round(avg(value), 3) AS avg_bank_rate FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-01', end_date := '2024-12-31') GROUP BY ALL) SELECT strftime(m.month_end, '%Y-%m') AS month, r.avg_bank_rate, m.first_published, m.current_value, m.current_value - m.first_published AS total_revision
FROM m4 AS m
JOIN rate AS r ON r.month_start = date_trunc('month', m.month_end)
ORDER BY month;
series (series_codes VARCHAR[], end_date := VARCHAR, include_provisional := BOOLEAN, max_rows := BIGINT, start_date := VARCHAR, updated_since := VARCHAR, updates_only := BOOLEAN)
Retrieve titles, frequencies, categories, notes and definition links for selected codes within a required date window. Metadata is taken from the same XML download as observations; narrow dates reduce download size. series_codes is positional; dates and controls are named.
Inspect BoE series metadata
SELECT series_code, title, frequency
FROM boe.main.series(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY series_code;
Try these queries
Discover BoE series examples
SELECT series_code, title
FROM boe.main.datasets(query := 'rate')
ORDER BY series_code
Uses datasets
Inspect BoE series metadata
SELECT series_code, title, frequency
FROM boe.main.series(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY series_code
Uses series
Read BoE observations
SELECT period, value
FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY period
Uses observations
Read BoE publication history
SELECT period, published_at, value
FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-03-31', updated_since := '2024-01-01')
ORDER BY period, published_at
Uses revisions
Compare each 2024 month's first-published and current M4 change (LPMAUZI revisions) with that month's average Bank Rate (IUDBEDR observations), showing how much each estimate was revised
WITH m4 AS (SELECT observation_date AS month_end, arg_min(value, published_at) AS first_published, max(value) FILTER (WHERE is_current) AS current_value FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-12-31', updated_since := '2024-01-01') GROUP BY observation_date), rate AS (SELECT date_trunc('month', observation_date) AS month_start, round(avg(value), 3) AS avg_bank_rate FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-01', end_date := '2024-12-31') GROUP BY ALL) SELECT strftime(m.month_end, '%Y-%m') AS month, r.avg_bank_rate, m.first_published, m.current_value, m.current_value - m.first_published AS total_revision
FROM m4 AS m
JOIN rate AS r ON r.month_start = date_trunc('month', m.month_end)
ORDER BY month
Discover the BoE series added in September 2024
SELECT series_code, title
FROM boe.main.new_series(start_date := '2024-09-01', end_date := '2024-09-30')
ORDER BY series_code
Uses new_series
Bank of England is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.
Related workers
BEA
Economy & labour
Discover BEA datasets, parameters and parameter values, then retrieve national, regional, industry and international economic accounts
BLS
Economy & labour
Retrieve labor, employment, price and productivity series with period codes, footnotes, calculations and survey metadata
Bank of Japan
Economy & labour
Discover Bank of Japan statistical series and retrieve observations with original periods, units and source metadata