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 to 1 to get valid_from and valid_to as plain UK local time, with no UTC/BST conversion needed on your end. Leave it out for UTC (the default).

Examples

{
  "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

FieldTypeDescription
valid_fromstringStart of the half-hour slot, UTC (ISO 8601)
valid_tostringEnd of the half-hour slot, UTC (ISO 8601)
value_exc_vatnumberPrice in pence per kWh, excluding VAT
value_inc_vatnumberPrice in pence per kWh, including VAT
sourcestringWhere 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

CodeRegion
AEastern
BEast Midlands
CLondon
DMerseyside & North Wales
EMidlands
FNorthern
GNorth West England
HSouthern
JSouth Eastern
KSouth Wales
LSouth Western
MYorkshire
NSouth of Scotland
PNorth 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.