Get Savings

Returns cost savings for a site broken down by time bucket over the requested interval. Savings are a counterfactual: the real cost of running with the Lunar system versus what the same household consumption would have cost without it (consumptionOnlyTotal - realTotal). A negative value is valid and means the counterfactual bill would have been cheaper. P1M (monthly) is the only supported resolution.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Unique identifier of the site. Must start with site- (the canonical SiteId format); anything else fails the server-side decode check and returns a 400 rather than falling through to the authz / not-found path.

Query Params
string
required

ISO 8601 time interval. Two forms are accepted:

  • Start/end: 2026-01-01T00:00:00Z/2026-06-01T00:00:00Z
  • Start + duration: 2026-01-01T00:00:00Z/P6M

Times must be UTC.

string
enum
required

Time bucket size for the returned entries.

  • P1M — one entry per calendar month.
Allowed:
Responses

Language
URL
LoadingLoading…
Response
Choose an example:
application/json