FPRates API

Free JSON API for EDF FreePhase Dynamic predicted rates across all GB regions. Updated daily. Ideal for battery storage systems, home automation, and energy optimisation.

Base URL: https://fprates.online


Endpoints

GET /api/rates/<region>

Returns the current 48 half-hourly slots for the specified region, ordered most recent first.

Example: /api/rates/G

[
  {
    "slot_time_utc": "2026-06-13T22:00:00Z",
    "fp_rate": 0.6699,
    "cost_price": 0.6699,
    "period_class": "table-warning",
    "source": "edf"
  },
  ...
]

GET /api/rates/<region>/best

Returns the cheapest N slots of the day, sorted by price ascending. Free (0p) slots always appear first. Ideal for scheduling battery charging.

Parameter: slots — number of half-hour slots to return (default: 8 = 4 hours)

Example: /api/rates/G/best?slots=8

[
  {
    "slot_time_utc": "2026-06-13T11:00:00Z",
    "fp_rate": 0.0,
    "cost_price": 0.0,
    "period_class": "table-warning",
    "source": "edf"
  },
  ...
]

GET /api/rates/<region>/history

Returns all stored half-hourly slots for a specific date, ordered chronologically.

Parameter: date — date in YYYY-MM-DD format (required)

Example: /api/rates/G/history?date=2026-06-12

[
  {
    "slot_time_utc": "2026-06-12T00:00:00Z",
    "fp_rate": 7.53,
    "cost_price": 7.53,
    "period_class": "table-success",
    "source": "edf"
  },
  ...
]

GET /api/rates/<region>/download

Downloads a CSV file of all stored half-hourly slots for a specific date.

Parameter: date — date in YYYY-MM-DD format (required)

Example: /api/rates/G/download?date=2026-06-12


Response Fields

FieldTypeDescription
slot_time_utcstringStart time of the half-hour slot in UTC (ISO 8601)
fp_ratefloatPredicted EDF FreePhase rate in pence per kWh (inc. VAT)
cost_pricefloatUnderlying wholesale cost price in pence per kWh
period_classstringTime band — see below
sourcestringData source used: edf, elexon, or agile

Time Bands

period_classBandBST Hours
table-success🟢 Green23:00 – 06:00
table-amber🟡 Amber06:00 – 16:00 and 19:00 – 23:00
table-danger🔴 Red16:00 – 19:00

Data Sources

SourceDescription
edfLive rates direct from EDF Kraken API — most accurate
elexonDerived from Elexon wholesale market prices with EUR/GBP conversion
agileEstimated from Octopus Agile rates using regional multipliers — least accurate

Regions

CodeRegion
GNorth West England
AEastern
BEast Midlands
CLondon
DMerseyside & North Wales
EMidlands
FNorthern
HSouthern
JSouth Eastern
KSouth Wales
LSouth Western
MYorkshire
NSouth of Scotland
PNorth of Scotland

Data is updated daily. Rates are predictions based on wholesale prices and may differ slightly from your actual EDF bill. This API is provided free of charge with no guarantees.

Terms & Conditions

← Back to rate viewer


FPRates is an independent service and is not affiliated with, endorsed by, or connected to EDF Energy in any way. EDF and FreePhase are trademarks of EDF Energy.