API
A free JSON API for Agile prices across all 14 GB regions — for battery storage, home automation and energy optimisation, or for pulling prices into a spreadsheet.
Base URL: https://agile.fprates.online
Endpoints
GET/api/<region>/standard-unit-rates/
Half-hourly prices for yesterday, today and tomorrow (as far as published), most recent first, in the standard Octopus/Kraken tariff-rates format used by home-automation tools such as predbat.
Example: /api/G/standard-unit-rates/
{
"count": 140,
"next": null,
"previous": null,
"results": [
{
"value_exc_vat": 21.34,
"value_inc_vat": 21.34,
"valid_from": "2026-10-27T00:00:00Z",
"valid_to": "2026-10-27T00:30:00Z",
"payment_method": null,
"source": "Octopus"
},
...
]
}
GET/api/<region>/rates/
Half-hourly prices in time order, for pulling into Excel or similar. With no parameters it returns today (UK local day). Add start and end for a date range.
Parameters
start— start date, YYYY-MM-DD (optional)end— end date, YYYY-MM-DD (optional)local— set to1to getvalid_fromandvalid_toas plain UK local time, with no UTC/BST conversion needed on your end. Leave it out for UTC (the default).
Examples
/api/G/rates/— today, UTC/api/G/rates/?local=1— today, UK local time/api/G/rates/?start=2026-10-01&end=2026-10-15— a date range, UTC
{
"count": 48,
"results": [
{
"valid_from": "2026-10-27T00:00:00Z",
"valid_to": "2026-10-27T00:30:00Z",
"value_exc_vat": 23.96,
"value_inc_vat": 23.96,
"source": "Octopus"
},
...
]
}
Response fields
| Field | Type | Description |
|---|---|---|
valid_from | string | Start of the half-hour slot, UTC (ISO 8601) |
valid_to | string | End of the half-hour slot, UTC (ISO 8601) |
value_exc_vat | number | Price in pence per kWh, excluding VAT |
value_inc_vat | number | Price in pence per kWh, including VAT |
source | string | Where the slot's price came from: N2EX (early estimate, from ~09:50), EPEX-30 (firmer estimate, from ~16:00) or Octopus (Octopus's own published price) |
Regions
| Code | Region |
|---|---|
A | Eastern |
B | East Midlands |
C | London |
D | Merseyside & North Wales |
E | Midlands |
F | Northern |
G | North West England |
H | Southern |
J | South Eastern |
K | South Wales |
L | South Western |
M | Yorkshire |
N | South of Scotland |
P | North of Scotland |
Region codes are capital letters.
Data updates automatically. Prices come from Octopus's own published Agile prices once available, and before that are estimated from N2EX and EPEX-30 day-ahead wholesale prices. The API is free, with no guarantees — see the terms.