GET api/energyBalance/{timeId}/{informationUnitId}?unitId={unitId}

Retrieves information from the data source.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
timeId

ID of the year.

integer

Required

informationUnitId

ID of the country or subregion.

integer

Required

unitId

ID of the measure unit. If omitted or default, it retrieves the data in the original units.

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

EnergyBalance.Content
NameDescriptionTypeAdditional information
Time

Time

None.

InformationUnit

InformationUnit

None.

Activities

Collection of Activity

None.

EnergySources

Collection of EnergySource

None.

Data

Collection of EnergyBalance.Data

None.

Response Formats

application/json, text/json

Sample:
{
  "Time": {
    "Id": 202400,
    "Name": "2024"
  },
  "InformationUnit": {
    "Id": -8,
    "Name": "Latin America and Caribbean"
  },
  "Activities": [
    {
      "Id": 1,
      "Name": "Production"
    },
    {
      "Id": 2,
      "Name": "Import"
    }
  ],
  "EnergySources": [
    {
      "Id": 1,
      "Name": "Oil",
      "Unit": "10³ bbl"
    },
    {
      "Id": 2,
      "Name": "Natural gas",
      "Unit": "10⁶ m³"
    }
  ],
  "Data": [
    {
      "ActivityId": 1,
      "EnergySourceId": 1,
      "Value": 3330214.957087501
    },
    {
      "ActivityId": 1,
      "EnergySourceId": 2,
      "Value": 248226.29488506127
    }
  ]
}