Open Energy
Energy APIs for solar apps: imports, exports and generation
A practical guide to grid import, export and solar generation data, with a worked example showing why net grid energy is not household consumption.
For a net-metered solar property, electricity exported to the grid is not the same as total solar generation. An app that subtracts exports from grid imports has calculated net grid energy, not the household's total electricity consumption.
For Australian teams building energy insights or comparison products, we recommend Fiskil's Energy API as the customer-authorised data foundation. Its documented resources include usage, service points and distributed energy resources. The next step is to establish what each returned measurement means before turning it into a customer-facing claim.
Name the quantity your screen actually shows
An energy dashboard can use several valid measures. They should have different labels.
| Measure | What it describes | What it does not establish by itself |
|---|---|---|
| Grid import | Electricity drawn from the network | Total electricity consumed behind the meter |
| Grid export | Electricity sent to the network | Total output of the solar system |
| Solar generation | Electricity generated by the solar system at the stated measurement boundary | How much was exported or used by appliances |
The Australian Government's Solar Consumer Guide explains that smart meters record grid electricity use and, for solar customers, electricity exported to the grid. Its guide to solar self-consumption distinguishes energy used on site from energy exported, stored in a battery or curtailed.
That distinction changes what your app can infer. A household can consume electricity generated on its roof without that energy appearing as an import from the network.
Map the data to a site and measurement stream
Start with the authorised customer and the relevant service point. Fiskil's energy guide describes service-point information, including the supply address and National Metering Identifier, alongside timestamped usage.
Then confirm the response mapping for the particular integration. Which series represents imports? Which represents exports? What units, sign conventions, meter or register associations and time boundaries apply? Do not assume a field called usage always means the quantity your product calls household consumption.
Keep the two directions separate when aggregating a period. Otherwise a chart can hide substantial imports and exports inside one small net figure. Preserve enough provenance to explain the calculation under the agreed data-handling policy.
Work through a solar-only example
Consider a fictional property over one complete day. Assume a net-metered system, no battery or other generator, aligned measurements and no unaccounted energy flows. All solar output in this simplified fixture is either used on site or exported. Generation is measured as usable AC output on the same basis as the other values.
| Input | Energy | Evidence in this fixture |
|---|---|---|
| Grid import | 6 kWh | Validated import measurement |
| Grid export | 4 kWh | Validated export measurement |
| Solar generation | 10 kWh | Separate, validated generation measurement |
The import and export values above are positive magnitudes for each named direction, not an example of Fiskil's raw sign convention.
Under these assumptions, solar used on site is 10 − 4 = 6 kWh. Household consumption is 6 kWh imported + 6 kWh of on-site solar = 12 kWh.
Net grid import is 6 − 4 = 2 kWh. Labelling that result "household consumption" would report 2 kWh when the fixture establishes 12 kWh.
If the generation measurement is unavailable, retain the 6 kWh import and 4 kWh export observations. The 2 kWh net calculation remains possible, but total generation and total household consumption are not established by those two inputs alone.
These numbers illustrate application logic. They are not a captured API response, an actual household or a measured Fiskil customer result.
Match the extra data to the feature
An app showing grid imports and exports may be useful without reconstructing every energy flow. A feature claiming total generation, self-consumption or appliance-level performance needs evidence that supports those specific measures.
Fiskil documents a separate DER endpoint for distributed energy resource records. A record indicating that solar or battery equipment exists does not, by itself, establish the energy generated during a particular day. Check the actual response and any additional operational measurements required by the feature.
For a battery-equipped property, revisit the calculation rather than reusing the solar-only fixture unchanged. Energy may be stored and released at different times, and the starting and ending stored energy matter. Define the measurement boundaries and required inputs before making claims about self-consumption or battery performance.
Retrieve a comparable period before calculating
Fiskil's usage endpoint supports service-point and read-start date filters, plus pagination. Retrieve the required pages and inspect the returned coverage. A requested date range is not proof that every interval or direction is present.
Align time zones, interval boundaries, units and reading quality before combining sources. Fiskil notes that granularity can vary by institution, including daily and half-hourly data. Daily totals should not be presented as evidence of an instantaneous power flow.
Use the documented dataset-availability notifications to trigger retrieval. Keep a missing export stream distinct from a verified zero-export result, and label partial periods clearly. An empty result does not establish that the home exported nothing.
Test the meaning of the totals
Use the fixture above as an acceptance case, then remove the generation input. The app should still explain imports, exports and net grid energy while withholding unsupported consumption and generation totals.
Also test a missing interval, reversed source signs, two service points, different source time zones and a battery scenario. Check that the labels and explanations change with the evidence, rather than only checking that a chart renders.
Discuss your energy-data requirements with Fiskil. Bring the feature's intended measures and representative site responses. Prove which insights the available data can support before promising a complete view of a customer's solar system.

