Get all electricity records for a Site

Request

GET https://backend.net0.com/v1/sites/{siteId}/energy

This endpoint allows you to retrieve a list of all electricity consumption records for any given site.

curl --location --request GET 'https://backend.net0.com/v1/sites/8fd23068-139b-44db-be74-1f8513715e9e/energy' \
--header 'x-api-key: <API_KEY>'

Field Parameters

AttributeTypeDescriptionIn
siteIdStringThe id of the site to fetch it's energy consumptionpath

Response

The response returns an array of all the electricity consumption records for a given site.

[
    {
        "id": "19428d6d-377e-4220-9ac7-439884048361",
        "totalEmission": 0,
        "value": 12,
        "percentageOfCleanEnergy": 0,
        "comment": "",
        "startDate": "2021-11-01T19:00:00.000Z",
        "endDate": "2021-11-02T19:00:00.000Z",
        "createdAt": "2021-11-24T03:55:56.485Z",
        "updatedAt": "2021-11-24T03:55:56.485Z",
        "emissionId": "72ad703b-1ed5-452b-a968-9224e9b2390f",
        "emissionKindId": "d8af12de-026a-4bd9-9dc6-a3f7404fbd1c",
        "siteId": "8fd23068-139b-44db-be74-1f8513715e9e",
        "companyId": 2,
        "vendorId": null,
        "unitId": 4,
        "customEmissionFactorId": null,
        "files": [],
        "unit": {
            "id": 4,
            "name": "Kilowatt hour",
            "short_name": "kWh",
            "multiplier": 1,
            "parent_id": null,
            "typeUnit": "ELECTRICITY",
            "createdAt": "2021-11-19T13:19:25.410Z",
            "updatedAt": "2021-11-19T13:19:25.410Z"
        },
        "offsets": []
    },
    {
        "id": "cf634fcf-304c-495e-9b81-e98590dbe370",
        "totalEmission": 17.02,
        "value": 73,
        "percentageOfCleanEnergy": 0,
        "comment": null,
        "startDate": "2021-11-16T00:00:00.000Z",
        "endDate": "2021-11-22T20:43:40.000Z",
        "createdAt": "2021-11-22T20:43:57.663Z",
        "updatedAt": "2021-11-22T20:43:57.663Z",
        "emissionId": "6ef705d3-5817-495b-a595-401c11cbf74b",
        "emissionKindId": "371c65d8-2a3f-48e5-a24c-d6ca6929faba",
        "siteId": "8fd23068-139b-44db-be74-1f8513715e9e",
        "companyId": 2,
        "vendorId": "5144968f-1e1c-4106-96ff-ebd06b09d442",
        "unitId": 4,
        "customEmissionFactorId": null,
        "files": [
            {
                "id": "661f2098-c629-4331-acfb-20ae6234b6bb",
                "name": "73kwh",
                "url": "https://proton-uploads-production.s3.amazonaws.com/f2a1ab17b842ca01a064712d4463d02dc5d3852e6805e578bf30427fafd5b056.jpg?orient",
                "createdAt": "2021-11-22T20:43:57.663Z",
                "updatedAt": "2021-11-22T20:43:57.663Z",
                "deletedAt": null
            }
        ],
        "unit": {
            "id": 4,
            "name": "Kilowatt hour",
            "short_name": "kWh",
            "multiplier": 1,
            "parent_id": null,
            "typeUnit": "ELECTRICITY",
            "createdAt": "2021-11-19T13:19:25.410Z",
            "updatedAt": "2021-11-19T13:19:25.410Z"
        },
        "offsets": []
    },