200+
Countries covered
99%
of European offers
3,700+
Suppliers
23,000+
Offers

Why does a device need to know next hour's price?

To bring more renewable power onto the grid, it is demand that has to follow generation, not the other way round. That job falls to controllable devices: an EV charger, a hot-water cylinder, a home battery or heating driven by an app.

The signal that links supply to demand is the price — but the device has to be able to read it. A hot-water cylinder cannot interpret an electricity tariff, and its manufacturer cannot keep thousands of a country's offers up to date, let alone fifteen countries'. That is exactly the gap this API fills: it turns a commercial offer, with its options and local quirks, into a sequence of priced time slots a machine can consume.

A cylinder that heats during a household's Economy 7 hours, a charger that delays a session by an hour because the kWh is 40% cheaper, or a battery that holds its charge for peak time: in each case the decision needs the upcoming price, not the average price.

What does Selectra's planning API do?

It qualifies the consumer and then exposes the price for the coming periods. Three endpoints, called in this order:

1
Qualify
Postcode, supplier, tariff & option
2
Detect the tariff
Tariff and option are identified automatically
3
Plan the price
JSON response with periods, prices & indices

One word on qualification: the API builds the questionnaire itself, market by market. It returns the next question and the allowed answers, and the integrator simply displays them. No one on the client side has to maintain a country's list of suppliers or their options, which change constantly.

What data does the API return?

The response is a table of successive periods. Each carries a start date, an end date, a kWh price, the name of the band exactly as the supplier labels it, and the reference of the matching meter index — which lets you tie a price to a consumption reading from a smart meter. The response also states the currency and the time the plan will next refresh.

{
  "prices": [
    {
      "name": "Peak",
      "price": 0.2695,
      "start": "2026-09-09T16:00:00+01:00",
      "end": "2026-09-09T19:00:00+01:00",
      "distributor_reference": "1"
    },
    {
      "name": "Off-peak",
      "price": 0.0850,
      "start": "2026-09-10T00:30:00+01:00",
      "end": "2026-09-10T07:30:00+01:00",
      "distributor_reference": "2"
    }
  ],
  "next_update": "2026-09-10T16:00:00+01:00",
  "currency": "GBP"
}
Sample response from Selectra's electricity price planning API. Contiguous periods with the same price and label are merged.

Which countries are covered?

Selectra's planning API is now live in over 200 countries. Across Europe it covers 99% of all published offers — from flat rates and time-of-use tariffs to dynamic and demand-response pricing — and extends well beyond Europe into the Americas, Asia, Africa, the Middle East and Oceania. The UK is fully integrated.

Worldwide, the API spans over 3,700 suppliers and more than 23,000 offers, with new markets added regularly. Coverage focuses on residential and small business segments — the only segments with published prices — as larger power requirements typically receive customised pricing.

Import and export price

In 38 markets, the UK included, the API also returns the export price — what a customer earns for electricity sent back to the grid, for instance under the Smart Export Guarantee. A home with solar has two prices, not one: optimising without the second is flying half-blind.

And in detail about the UK?

In the United Kingdom, the API covers the published residential offers of the main suppliers, which adds up to 93% of households. Coverage does not stop at Great Britain: Power NI in Northern Ireland, Jersey, Guernsey, Sark and the Isle of Man, as well as Saint Helena and the Falkland Islands, are covered too. It handles:

  • single-rate (24-hour) tariffs, whose unit rate already includes energy, network and policy costs plus VAT, with the daily standing charge billed separately;
  • multi-rate tariffs such as Economy 7, Economy 8, Economy 12 and Economy 20, whose off-peak windows are set by the distribution network rather than by the supplier;
  • prepayment (pay-as-you-go) tariffs;
  • smart, off-peak, weekend and EV tariffs, from Super Off Peak to Tide Smart;
  • three dynamic tariffs indexed to the wholesale price: Octopus Agile, Octopus Tracker and EDF FreePhase Dynamic, with EPEX SPOT as the licensed source for wholesale prices;
  • export prices for customers with solar panels, whether they joined the closed Feed-in Tariff or are paid a supplier's own Smart Export Guarantee rate.
Selectra currently covers 31 UK suppliers in the planning API — from the largest incumbents to regional and island utilities.
UK supplier coverage in Selectra's planning API
Supplier Offers covered
100Green 6
British Gas 5
Budget Energy 7
Click Energy 7
Co-op Energy 6
Connect Saint Helena Ltd 1
E 1
E.ON Next 9
Ecotricity 2
EDF Energy 8
Fuse Energy 9
Good Energy 3
Government Falkland Islands 1
Guernsey Electricity 5
Home Energy 1
Jersey Electricity 4
London Power 1
Manx Utilities 4
Octopus Energy 8
Outfox Energy 4
OVO Energy 3
Power NI 9
Sainsbury's Energy 4
Sark Electricity Ltd 1
Scottish Power 5
Share Energy 5
So Energy 6
SSE Airtricity 10
Tulo Energy 5
Utilita 2
Utility Warehouse 3
Residential electricity offers covered by Selectra's planning API, by supplier. Source: Selectra (energy-core). Figures update automatically.

Full UK coverage, pricing and a test console are on the United Kingdom page of the API catalogue.

What about ranking every UK offer? The Comparator API

The planning API answers "what will my tariff cost over the next few hours?". Selectra's Comparator API answers a different question: what would every offer on the market cost this particular customer, from cheapest to most expensive? It powers comparison pages, switching tools and billing systems, and it is live in eight European markets, the United Kingdom included (electricity only in the UK).

Planning API vs Comparator API
Planning API Comparator API
Question answered When is electricity cheapest on my tariff? Which offer is cheapest for me?
Input The customer's current supplier, tariff and option An annual consumption, or the meter's own readings
Output Priced time slots for the coming hours A ranking of every offer, with its yearly cost
Typical user Device makers, HEMS, EV charging Comparison sites, suppliers, energy advisers
Coverage Over 200 countries 8 European markets

Method 1: rank from an annual consumption

This is what a comparison page needs: the visitor knows roughly how much they use in a year, not when they use it. A single GET call takes the annual figure in kWh and the customer's postcode, and returns the whole market ranked, cheapest first. For an Economy 7 meter given one annual figure, an optional parameter sets the share of consumption falling in the off-peak hours.

GET /v3/uk/compare?energy_type=electricity&client_type=domestic&postcode=SW1A&car_base=4200

Method 2: rank from the meter's load curve

A smart meter records consumption every half hour. Send those readings (up to a full year, inline or as a CSV file) and each interval is priced in the band it actually falls in. That is the only fair way to compare a time-of-use or dynamic tariff with a flat one: Octopus Agile, Octopus Tracker and EDF FreePhase Dynamic are priced half hour by half hour against their published rates.

It also settles a very British puzzle. On an Economy 7 meter, the seven off-peak hours belong to the network, not to the tariff: every mainland network publishes several candidate windows, and which one a meter follows is written on no bill. The load-curve method prices every candidate window and returns the cheapest, or just the one you name if you know it. It even handles old dial-clock meters that stay on GMT all year.

Why the postcode matters in the UK

Ofgem sets the price cap by distribution region, so a supplier publishes the same offer once per network: fourteen different prices on the mainland alone, plus one for each island network, and no national price at all. The Comparator API resolves the network from the customer's postcode (the outward half such as SW1A is enough) across all 21 UK networks. Prices come back in pounds, VAT included, with the standing charge and the unit rate as separate lines.

The full UK integration guide, with every parameter and edge case, is published at api.selectra.com/comparator/uk/guide. The technical reference for all eight markets is at api.selectra.com/comparator/v3/reference.

How do you access the API, and what does it cost?

Access runs through the catalogue at api.selectra.com, which hosts the documentation, a test console and the subscription. A free tier, with no card required, opens all three endpoints across every covered market — enough to build a first integration and judge the data before discussing a contract.

Beyond that, billing combines three parts: a monthly subscription to the markets you need (market by market, or a Europe bundle), a per-call price that decreases with volume, and a set-up fee that includes technical support through to production. Current amounts are shown live on the catalogue's pricing page, since they are read from billing itself.

The Comparator API follows the same model: a monthly subscription per market (the UK is sold on its own), a per-call price, and a free tier of test calls to try it on real data first. Its markets and prices are listed on the Comparator API page. Repeat requests are cheap by design: when an answer has not changed since your last call, it comes back empty and is not counted against your quota.

Who is the API for?

Integrators fall into four families: manufacturers of controllable devices and home energy management system (HEMS) vendors, who need the price to decide when to switch on; energy suppliers, who want to offer smart control without rebuilding a tariff database; flexibility and demand-response players, who arbitrate between retail price and grid signal; and EV charging operators, whose value lies precisely in shifting a charge by a few hours.

What these four have in common: none has any interest in becoming a tariff-data publisher. Maintaining a single country's tariffs already takes a full-time team, and the difficulty is not the number of suppliers but the speed at which options change.

Why does Selectra offer this API?

Selectra has compared electricity offers since 2007. Its founders, Xavier Pinon and Aurian de Maupeou, saw from the start of market liberalisation that offers would grow more complex and that consumers would need better information based on pricing data. The planning API follows the same logic: simplifying a complex subject to support the electrification of energy use.

Selectra operates in 15 countries with a team of 50 energy-market specialists who keep its websites and databases up to date in real time. With more than €100 million in revenue in 2024 and 2,000 employees, it has the means to sustain that upkeep over time — the only question that matters when you trust tariff data to a third party.

Frequently asked questions

It lets smart devices — EV chargers, hot-water cylinders, storage heaters or home energy management systems — retrieve the current and upcoming electricity price for a given tariff. They can then move consumption automatically to the cheapest periods and make better use of renewable generation.

A JSON table of successive periods. Each entry contains a start date, an end date, the kWh price, the name of the rate band exactly as the supplier labels it (for example "off-peak") and the corresponding meter index, plus the currency and the time of the next update.

It doesn't guess — it asks. The first call opens a short questionnaire whose questions and answers the API builds itself, market by market. The integrator never has to maintain the list of a country's suppliers or their options: it simply displays what the API returns.

Yes. The API covers the published residential tariffs of the main UK suppliers, 93% of households, from Great Britain to Northern Ireland and the island networks. That includes single-rate tariffs, multi-rate tariffs such as Economy 7 (whose off-peak windows are set by the distribution network), prepayment tariffs, EV tariffs, export prices, and the three dynamic tariffs indexed to the wholesale price: Octopus Agile, Octopus Tracker and EDF FreePhase Dynamic.

The planning API starts from the tariff a customer already has and tells a device when electricity will be cheapest over the coming hours. The Comparator API starts from the customer's consumption, either an annual figure or the smart meter's half-hourly readings, and ranks every offer on the market by what it would cost them. The first serves smart devices; the second serves comparison and switching tools.

The catalogue at api.selectra.com opens a free tier, no card required, with a monthly call quota across every market and all three endpoints — enough to build a first integration and judge the data before talking contract. The Comparator API has its own free tier of test calls.