UK · Data hub · API & snippets Checked 20 May 2026

API and embeddable snippets

Programmatic access to the data hub is in development. This page tracks what's available now, what's coming next, and how to integrate the figures into your own product.

How to read this page
  • A read-only JSON API is in development; no live endpoint yet.
  • Embeddable chart snippets will be available per-figure once the API ships.
  • Need a bulk export today? Email the data desk.
1.

Current status

A read-only JSON API is in development. This page tracks what's available now and what's coming next.

The data hub is currently published as fully-formed HTML pages with the figures rendered server-side. There is no public API endpoint yet. in development

If you need machine-readable figures today, the cleanest path is to scrape the figure tables from the published pages — every figure is bound to a stable HTML structure with a data-source attribute on its parent element. Contact the data desk if you need a bulk export.

2.

Planned API endpoints

JSON read endpoints scoped to one figure or one dataset per request.

The shipped API will follow a stable URL shape:

GET /api/data/payments/{slug}/figures.json

Returns an array of figure objects with id, label, value, unit, period, last_checked, and source fields. Each id is stable across refreshes — once shipped, it is the safe handle for embedding a figure in a third-party article.

Versioning is via a v query parameter; the current data shape is v1. verify

3.

Embeddable chart snippets

Drop-in HTML snippets that render a single chart with attribution baked in.

Each chart card on the hub will eventually expose a one-line snippet, like:

<iframe src="https://www.businessexpert.co.uk/embed/chart/ch-apr" width="100%" height="420" loading="lazy"></iframe>

The iframe renders a single chart with axis labels, source line and "Powered by Business Expert" footer. The host page only needs the iframe — no script tag, no CSS.

Snippets honour the data licence; the embedded footer counts as the required attribution.