List non-cumulative data

List non-cumulative data for the given parameters

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

Retrieve a paginated list of non-cumulative (interval) consumption data from the Consumption model.

Note: This endpoint does not automatically filter by half-hourly data. To retrieve only half-hourly records, include the isHalfHourly=true query parameter.

Endpoint

GET /2.0/non-cumulative

Query Parameters

Pagination & Sorting

ParameterTypeDefaultDescription
limitnumber100Number of results per page
pagenumber1Page number (1-based)
sortstring-Sort field and direction. Format: field:asc or field:desc (e.g. startTimestamp:desc)

Filters

Any field listed in the Consumption object can be used as a query parameter to filter results.

Date range filters: Date fields support range operators using dot notation:

  • field.gte - Greater than or equal to
  • field.lte - Less than or equal to
  • field.gt - Greater than
  • field.lt - Less than

Example: startTimestamp.gte=2024-01-01&startTimestamp.lte=2024-01-31

Common filters:

ParameterTypeDescription
accountIdstringFilter by account (meter) ID
entityIdstringFilter by entity ID
typestringFilter by utility type: electricity, gas, water, waste, solar, heating, flow, cooling, temperature, other
unitstringFilter by unit (e.g. kwh, m3)
sourcestringFilter by data source
isHalfHourlybooleanFilter by half-hourly data (true) or non-half-hourly data (false)
isEstimatedbooleanFilter estimated data
isGridDatabooleanFilter grid data

Response

{
  "total": 1000,
  "limit": 100,
  "skip": 0,
  "data": [
    {
      "_id": "507f1f77bcf86cd799439011",
      "value": 5.23,
      "startTimestamp": "2024-01-15T00:00:00.000Z",
      "endTimestamp": "2024-01-15T00:30:00.000Z",
      "type": "electricity",
      "unit": "kwh",
      "readType": "A",
      "isHalfHourly": true,
      "isEstimated": false,
      "isGridData": true,
      "accountId": "507f1f77bcf86cd799439012",
      "entityId": "507f1f77bcf86cd799439013",
      "createdAt": "2024-01-16T09:00:00.000Z",
      "updatedAt": "2024-01-16T09:00:00.000Z"
    }
  ]
}

Example Request

curl -X GET "https://api.etainabl.com/2.0/non-cumulative?accountId=507f1f77bcf86cd799439012&startTimestamp.gte=2024-01-01&startTimestamp.lte=2024-01-31&isHalfHourly=true&type=electricity&sort=startTimestamp:asc" \
  -H "x-api-key: YOUR_API_KEY"

Scope Required

read:consumptions

Query Params
int32
Defaults to 100

Maximum number of invoices to return

int32
Defaults to 1

Page number to return when there are more results than the given limit

string

Sort order in the following format submittedAt:asc or submittedAt:desc

string
required

The account ID you wish to view readings for

date-time

Dates must be in ISO format. You can use special parameters with this such as gte, lte, gt, lt (greater than etc) by appending to the parameter startTimestamp.gte

date-time

Dates must be in ISO format. You can use special parameters with this such as gte, lte, gt, lt (greater than etc) by appending to the parameter endTimestamp.gte

float

Reading value

string

The source of the reading: invoice, manual, app, import

string

View readings for a specific invoice

boolean

When a meter is reset to 0, the first reading will have this set to true

boolean

Set to true to only view half hourly readings

boolean

Has this data come directly from an electricity or gas grid operator

boolean

Was this data apportioned before being imported into Etainabl?

string

The read type for this data. e.g. E for estimated data, A for actual data.

string

Filter data to a specific category (currently only used for waste data)

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json