Returns all usage data between the start and end dates. The API can only return 90-days worth of data.
Path parameters
ID of the site you are fetching usage for. Can be found using the /sites enpoint
Query parameters
Return all usage for each interval on and after this day.
Return all usage for each interval on and before this day.
Specify the required interval duration resolution. Valid options: 30. Default: 30
Response
Usage for the requested period.<br><br>Return Order: General > Controlled Load > Feed In.<br><br>NOTE: If a channel is added or removed the index offset will change. It is best to filter or group the array by channel type.
Example response
[
{
"spotPerKwh": 6.12,
"perKwh": 24.33,
"date": "2021-05-05",
"nemTime": "2021-05-06T12:30:00+10:00",
"startTime": "2021-05-05T02:00:01Z",
"endTime": "2021-05-05T02:30:00Z",
"renewables": 45,
"channelType": "general",
"channelIdentifier": "E1"
}
]Changes
Changed in 10 of the 28 revisions of this API.4823
- ○
api operation id
getUsagewas addedapi-operation-id-added
- ○
- ○
the response property
//became required for the statusresponse-property-became-required
- ○
- ▲
the response property
//became optional for the statusresponse-property-became-optional
- ▲
the
/////response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ○
added to the
/////response propertyallOflist for the response statusresponse-property-all-of-added
- ▲
- ▲
the
/////response's property type changed from no type toobjectfor statusresponse-property-type-changed
- ○
added the optional property
//////to the response with the statusresponse-optional-property-added
- ○
added the optional property
//////to the response with the statusresponse-optional-property-added
- ○
added the optional property
//////to the response with the statusresponse-optional-property-added
- ○
added the optional property
//////to the response with the statusresponse-optional-property-added
- ○
removed from the
/////response propertyallOflist for the response statusresponse-property-all-of-removed
- ○
the response property
//became required for the statusresponse-property-became-required
- ▲
- ▲
the
/////response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ○
added to the
/////response propertyallOflist for the response statusresponse-property-all-of-added
- ▲
- ○
for the
queryrequest parameterendDate, the type was generalized from no type tostring, and format fromdate-timetodaterequest-parameter-type-generalized
- ○
for the
queryrequest parameterstartDate, the type was generalized from no type tostringrequest-parameter-type-generalized
- ○
- ○
for the
queryrequest parameterendDate, the type was generalized fromstringto no typerequest-parameter-type-generalized
- ○
for the
queryrequest parameterstartDate, the type was generalized fromstringto no typerequest-parameter-type-generalized
- ○
- ○
for the
queryrequest parameterendDate, the type was generalized from no type tostringrequest-parameter-type-generalized
- ○
for the
queryrequest parameterstartDate, the type was generalized from no type tostringrequest-parameter-type-generalized
- ○
- ○
added to the
response propertyallOflist for the response statusresponse-property-all-of-added
- ○
removed
subschema #1from theresponse propertyallOflist for the response statusresponse-property-all-of-removed
- ○
- ○
api operation id
getUsageremoved and replaced withapi-operation-id-removed
- ○
for the
queryrequest parameterendDate, the type was generalized fromstringto no type, and format fromdatetodate-timerequest-parameter-type-generalized
- ○
for the
queryrequest parameterstartDate, the type was generalized fromstringto no typerequest-parameter-type-generalized
- ○
added
subschema #1subschema #2to theresponse propertyallOflist for the response statusresponse-property-all-of-added
- ○
removed
subschema #2from theresponse propertyallOflist for the response statusresponse-property-all-of-removed
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○