Get emissions

DEPRECATED - You can now use the emissions=true parameter on the GET /consumption endpoint.

This is a general purpose endpoint for getting emissions for accounts, assets, entities and portfolios. Consumptuon units are converted to kWh or m3 (water only), and emission units are all in Kg CO2e.

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

Deprecated: This endpoint is deprecated. We recommend using the Get consumption endpoint with emissions=true, which returns emissions data alongside consumption metrics.

Retrieve aggregated emissions data for a given date range, calculated from consumption data using emission factors. Data can be retrieved at the account or asset level.

Unlike the consumption endpoint, this returns an emissions-only response (no consumption, cost, or rate data).

Endpoint

GET /2.0/emissions

Query Parameters

ParameterTypeRequiredDefaultDescription
startDatestringYes-Start date (ISO 8601 format, e.g. 2024-01-01). Normalised to start of day UTC.
endDatestringYes-End date (ISO 8601 format, e.g. 2024-12-31). Normalised to start of day UTC.
granularitystringNomonthlyTime granularity: halfhourly, hourly, daily, weekly, quarterly, monthly, yearly
sourcestringNocombinedData source: hh, invoice, reading, custom, combined, reading-hh
accountTypestringNo-Filter by utility type (comma-separated). Values: electricity, gas, water, waste, solar, heating, flow, cooling, temperature
accountIdstringNo-Retrieve emissions for a specific account. Automatically sets data type to account-level.
assetIdstringNo-Retrieve emissions for a specific asset. Automatically sets data type to asset-level.
assetGroupIdstringNo-Retrieve emissions for a specific asset group

Response

The response contains only emissions-related data. Consumption, cost, and rate fields are excluded. The units field is always set to kgco2e (kilograms of CO2 equivalent).

{
  "startDate": "2024-01-01T00:00:00.000Z",
  "endDate": "2024-12-31T00:00:00.000Z",
  "granularity": "monthly",
  "units": "kgco2e",
  "isMissing": false,
  "emissions": {
    "total": 12500,
    "scope1": 1000,
    "scope2": 10500,
    "scope3": 1000
  },
  "data": [
    {
      "date": "2024-01-01",
      "startDate": "2024-01-01T00:00:00.000Z",
      "endDate": "2024-02-01T00:00:00.000Z",
      "isMissing": false,
      "emissions": {
        "total": 1050,
        "scope1": 85,
        "scope2": 880,
        "scope3": 85
      }
    },
    {
      "date": "2024-02-01",
      "startDate": "2024-02-01T00:00:00.000Z",
      "endDate": "2024-03-01T00:00:00.000Z",
      "isMissing": false,
      "emissions": {
        "total": 980,
        "scope1": 78,
        "scope2": 824,
        "scope3": 78
      }
    }
  ]
}

Response Fields

Emissions Object

FieldTypeDescription
totalnumberTotal emissions (kgCO2e)
scope1numberScope 1 emissions - direct emissions (kgCO2e)
scope2numberScope 2 emissions - indirect from energy (kgCO2e)
scope3numberScope 3 emissions - other indirect (kgCO2e)

Top-level Fields

FieldTypeDescription
startDatestringQuery period start date (ISO 8601 UTC)
endDatestringQuery period end date (ISO 8601 UTC)
granularitystringRequested time granularity
unitsstringAlways kgco2e
isMissingbooleanWhether complete data coverage exists
emissionsobjectAggregated emissions for the entire period
dataarrayArray of granular results, one per time period

Granular Data Array (data)

Each element contains:

FieldTypeDescription
datestringFormatted date for the period
startDatestringPeriod start (ISO 8601 UTC)
endDatestringPeriod end (ISO 8601 UTC)
isMissingbooleanWhether data coverage exists for this period
emissionsobjectEmissions for this period (total, scope1, scope2, scope3)

Example Request

curl -X GET "https://api.etainabl.com/2.0/emissions?startDate=2024-01-01&endDate=2024-12-31&assetId=507f1f77bcf86cd799439011&granularity=monthly" \
  -H "x-api-key: YOUR_API_KEY"

Scope Required

read:accounts

Query Params
date
required

A timestamp in ISO format (e.g. 2024-01-21 or 2024-01-21T01:30:00)

date
required

A timestamp in ISO format (e.g. 2024-01-21 or 2024-01-21T01:30:00)

string
required

The type of data you are looking to get consumption for: account, asset or entity

string

Optional account/utility type: electricity, gas, water, waste, solar, heating, flow, cooling, temperature

string
Defaults to monthly

The granularity of data: halfhourly, hourly, daily, weekly, quarterly, monthly, yearly

string
Defaults to combined

The source of data: combined, reading, hh, invoice, custom

string
required

If dataType is account this must be set to an accountId

string
required

If dataType is asset this must be set to an assetId

string
required

If dataType is entity this must be set to an entityId

Responses

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