Download your smart meter data (half-hourly)

Octopus customers can let the Fortyeight calculator fetch a year of half-hourly readings using their account number and the API key from Developer settings, or download a CSV from the online account. Customers of other suppliers can export half-hourly data from Bright (glowmarkt.com) or n3rgy, or upload any CSV with a time column and a kWh column. The file and the key stay in your browser and are not stored.

Short answer: if you are with Octopus, give the Fortyeight calculator your account number and the API key from your account’s Developer settings. Your browser then fetches up to a year of half-hourly readings straight from Octopus. Otherwise, download a CSV: from your Octopus account, from Bright/Glowmarkt (glowmarkt.com) or from n3rgy. Any other supplier’s file also works if it has a time column and a kWh column. The data is processed in your browser, and the key is not stored.

Why half-hourly data matters

A battery earns money by moving electricity from cheap half-hours to expensive ones. Annual kWh cannot tell you how much of your use falls in the 16:00–19:00 peak, how much happens overnight when Octopus Go or Flux is cheap, or how big your winter evenings are. Two homes that both use 2,500 kWh a year, Ofgem’s typical figure from 1 July 2026, can get very different results from the same battery.

Without your data, Fortyeight uses a standard load shape (Elexon Profile Class 1). That shape describes the average home, not yours. Your own readings take the guesswork out of battery sizing and of whether a battery is worth it at all.

Route 1: Octopus API key (quickest)

Octopus publishes a REST API that returns half-hourly consumption for each meter, identified by MPAN and meter serial number.

  1. Account number. It looks like A-1234ABCD and is on your bills and at the top of your online account.
  2. API key. Log in, open Developer settings, and copy the key. It starts with sk_live_.
  3. Paste both into the calculator. It reads your account to find the electricity meter points, and an export meter if you have one. It works out your region and current tariff from the tariff code, then downloads the half-hourly readings page by page.

How the key is handled: the request goes from your browser directly to api.octopus.energy. The key is used only in that request’s authorisation header. It is not stored and not sent to Fortyeight or anyone else. The key can read your account details and consumption, so treat it like a password.

If a meter was replaced, the readings still live under the same MPAN. The calculator merges the old and new serial numbers and keeps whichever has more data for each half-hour.

If the API returns little or no data, your meter may be sending only daily or monthly readings, or not communicating at all. Ask Octopus whether half-hourly readings are being collected for your meter.

Route 2: Octopus dashboard CSV

You can also download your usage from the Octopus online account as a CSV. The file has these columns:

Consumption (kwh), Estimated Cost Inc. Tax (p), Start, End

The timestamps are UK local time with an offset, and Start marks the beginning of each half-hour. Upload the file and the calculator recognises it automatically. This route is useful if you would rather not paste an API key anywhere.

Route 3: Bright app / Glowmarkt

If your supplier is not Octopus, the free Bright app reads smart meter data through the Glowmarkt platform. Log in at glowmarkt.com with your Bright details and use the energy data page to download a CSV. Menu names may differ from what we describe. The file looks like this:

epochTimestamp,kWh,dateTime

Timestamps are UTC and mark the start of each interval. The epoch can be in seconds or milliseconds, and both are handled. Some exports come at 15-minute or hourly resolution. The calculator adds 15-minute readings up into half-hours and splits hourly readings in two.

Route 4: n3rgy

n3rgy (data.n3rgy.com) offers consumer access to smart meter data. As far as we have been able to check, you register with your MPAN (on your bill, a 13-digit number) and the MAC or GUID of your in-home display,. Data comes as a ZIP of CSV files in batches. The sign-up steps may have changed, so follow n3rgy’s own instructions.

Two things to know about the files:

  • The columns are "timestamp (UTC)","energyConsumption (kWh)", and the timestamp marks the end of each half-hour, in UTC. A reading stamped 00:30 covers 00:00 to 00:30. The calculator shifts these so they line up with other sources.
  • A value of 16777.215 is a meter error code, not real consumption. Those rows are skipped.

Route 5: any other CSV

Many suppliers offer a usage download in their online account, and their formats vary. The calculator looks for a header row, then guesses which column is the time and which is the kWh. You confirm or correct the guess. Check whether your supplier’s timestamps mark the start or the end of each interval. Rows that cannot be read, negative values and implausibly large readings are counted and skipped, so one bad line does not reject the file.

Source Header Timezone Timestamp marks
Octopus dashboard Consumption (kwh), Estimated Cost Inc. Tax (p), Start, End UK local, with offset Start
Bright / Glowmarkt epochTimestamp, kWh, dateTime UTC Start
n3rgy “timestamp (UTC)”, “energyConsumption (kWh)” UTC End
Other Any time column plus a kWh column You confirm You confirm

How much data, and what happens to gaps

Twelve months is best. A battery that looks good on summer data can look very different in January, and the reverse. The calculator uses the most recent 365 days in your file or API response. It fills any missing half-hours from the same half-hour on the nearest day that has data. The fewer gaps, the better the result. Six months of data gives a result, but treat it as rougher.

If you have solar with an export meter, the Octopus route also fetches your export readings. That matters for export tariff choices and for modelling how much surplus a battery can soak up.

Common problems

Symptom Likely cause What to try
“Octopus rejected the API key” Key copied with a missing character, or an old key Copy it again from Developer settings. It should start with sk_live_.
“Could not find that account number” Typo, or a gas-only or old account Check the A- number on a recent electricity bill.
Very low annual total Several months missing, or the file covers only part of the year Check the date range in the file and download a longer period.
Usage appears an hour out Timezone mismatch in a generic CSV Check whether the times are UTC or UK local, and start or end of interval.
Totals twice as high as your bill Import and export, or two meters, in one file Upload the import meter’s data only.

As a sense check, compare the annual kWh the calculator reports with the annual usage on your bill. Ofgem’s typical values for single-rate electricity run from 1,600 kWh (low) to 3,800 kWh (high). Heat pumps and electric cars push that much higher. If the two figures are far apart, the file is probably incomplete or mapped wrongly.

Privacy

Fortyeight does the processing in your browser. Uploaded CSVs are parsed on your device, and API calls go straight from your browser to Octopus. Fortyeight does not receive or store your meter readings or your key. The privacy page has the details.

Once your data is loaded, the calculator compares Flexible, Agile, Go, Intelligent Octopus Go, Cosy and Flux, with and without a battery and plug-in solar, using your actual half-hours. To understand the results, see the best Octopus tariff for a battery.

Download your smart meter data (half-hourly): step by step

  1. Octopus customers - find your account number. Copy your account number (A- followed by eight characters) from a bill or the top of your online account.
  2. Octopus customers - copy your API key. In your Octopus online account open Developer settings and copy the API key, which starts with sk_live_.
  3. Run the calculator. Paste both into the Fortyeight calculator. It fetches your half-hourly import (and export, if you have an export meter) straight from Octopus in your browser.
  4. Other suppliers - export a CSV. Download half-hourly consumption from your supplier, Bright/Glowmarkt or n3rgy, covering the last twelve months if possible.
  5. Upload and check the mapping. Drop the CSV into the calculator. Known formats are recognised automatically. For anything else, confirm which column holds the time and which holds kWh.

Frequently asked questions

Where do I find my Octopus API key?

Log in to your Octopus account and open Developer settings. The key starts with sk_live_. Your account number, in the form A-1234ABCD, is on your bills.

Is it safe to paste my Octopus API key into Fortyeight?

The calculator sends the key only to api.octopus.energy, in the request header, directly from your browser. It is not stored or sent to Fortyeight. The key gives read access to your account data, so treat it like a password and do not paste it into sites you do not trust.

I'm not with Octopus. How do I get half-hourly data?

Try the Bright app's data platform at glowmarkt.com, which offers a CSV download, or n3rgy's consumer service, which needs your MPAN and your in-home display's MAC/GUID. Some suppliers also offer a CSV in their online account.

How much data do I need?

Ideally twelve months. The calculator uses the most recent 365 days and fills missing half-hours from the same half-hour on the nearest day with data, so a shorter history works but is less reliable.

Why does my CSV show 16777.215 kWh?

That value is a meter error code that appears in some n3rgy downloads. The calculator skips those rows.

Sources

  1. Octopus Energy: how do I access the Octopus API?
  2. Octopus Energy developer docs: REST API endpoints
  3. Glowmarkt (Bright app data platform)
  4. n3rgy consumer data access
  5. Ofgem: typical domestic consumption values decision (2026)

Run the battery calculator on your data

Tell us what to build next

Everything on Fortyeight is free while it is in beta. Leave your email and pick the feature you would pay for; we will write when it ships.

We only use your email for updates about this tool. Unsubscribe any time. Privacy.