oneapi
Sign in
Energie v1 / Balanţe energetice

Energy balance nomenclature

Every code list of this zone in a single response — resources with their units, the 27 balance elements, the 19 industrial activities, the power plant categories, the fuels and the energy products — plus the carriers and the origins.

They come together because none of them can be inferred from the others: each family has a different dimension, and the same code list appears across three carriers, in different units.

GET
https://oneapi.ro/api/energie/v1/balante/nomenclator

Query parameters

This route accepts no query parameters.

How it behaves

  • Every nomenclature in the area in a single response: the 14 primary resources with their units, the 27 balance elements, the 19 industrial activities, the power plant categories, the fuels and the energy products — plus the carriers and origins.
  • They are given together because none can be assumed from another: each family has a different dimension, and the same nomenclature appears across three carriers, in different units.
  • Wherever nivel appears, it separates the total published by the source from the components and from the "of which" sub-items — which do not add up across each other.

What it is for

  • Find the right slug before requesting a series, instead of guessing it.
  • See which units each primary resource is published in.
  • Check what is a total and what is an "of which", so nothing is counted twice.

Response structure

FieldTypeDescription
data.purtatori[] array Energy carriers (coal, crude oil, gas, electricity…), each with a description.
data.purtatori[].purtator string total, electrica sau termica.
data.purtatori[].descriere string Ce înseamnă şi în ce unitate e publicat.
data.proveniente[] array Where the resource comes from: domestic production, imports, stock.
data.proveniente[].provenienta string total, productie, import, stoc_initial.
data.resurse[] array Resource categories, with the unit of measure and the year range they appear in.
data.resurse[].resursa string Slugul resursei primare.
data.resurse[].um string Unitatea — o resursă apare de mai multe ori, câte o dată pentru fiecare unitate în care e publicată.
data.elemente[] array Balance elements (inputs, transformations, final consumption), with the year range.
data.elemente[].element string Slugul elementului de balanţă.
data.activitati[] array The industrial branches consumption is published for, with the year range.
data.activitati[].activitate string Slugul activităţii industriale.
data.centrale[] array Power plant categories, with their level in the hierarchy.
data.centrale[].nivel string total sau categorie.
data.combustibili[] array Fuels used in power plants, with their level in the hierarchy.
data.combustibili[].nivel string total, component sau din_care — ultimul e lignitul, cuprins în cărbuni.
data.produse_energetice[] array The energy products used in the independence calculation, with their hierarchy level.
data.produse_energetice[].produs string Slugul produsului energetic.
data.*[].nivel Depth in the hierarchy. It matters: the lists look flat but contain totals and subtotals; summing everything double-counts.
data.*[].de_la The first year the category appears at INS.
data.*[].pana_la The last year it appears. A category can disappear from the nomenclature at a revision.
meta.sursa string The INS dataset the nomenclature comes from.
meta.nota_niveluri string The hierarchy explanation and the double-counting warning.

Response examples

GEThttps://oneapi.ro/api/energie/v1/balante/nomenclator
{
    "data": {
        "purtatori": [
            {
                "purtator": "total",
                "descriere": "energie totală, în mii tone echivalent petrol (tep)"
            }
        ],
        "proveniente": [
            {
                "provenienta": "total",
                "descriere": "totalul resursei — producţie, import şi stoc iniţial la un loc"
            }
        ],
        "resurse": [
            {
                "resursa": "alti_combustibili",
                "resursa_denumire": "Alti combustibili",
                "um": "mii_tone_echivalent_petrol",
                "um_denumire": "Mii tone echivalent petrol",
                "de_la": 1992,
                "pana_la": 2024
            }
        ],
        "elemente": [
            {
                "element": "agricultura_si_silvicultura",
                "element_denumire": "Agricultura si silvicultura",
                "de_la": 1992,
                "pana_la": 2024
            }
        ],
        "activitati": [
            {
                "activitate": "alimentara_bauturi_si_tutun",
                "activitate_denumire": "Alimentara, bauturi si tutun",
                "de_la": 1992,
                "pana_la": 2024,
                "cerere": {
                    "grupare": "alimentara_bauturi_si_tutun"
                }
            }
        ],
        "centrale": [
            {
                "categorie": "eoliana",
                "categorie_denumire": "Eoliana",
                "nivel": "categorie",
                "de_la": 2007,
                "pana_la": 2024
            }
        ],
        "combustibili": [
            {
                "combustibil": "carbuni",
                "combustibil_denumire": "Carbuni",
                "nivel": "component",
                "de_la": 1992,
                "pana_la": 2024
            }
        ],
        "produse_energetice": [
            {
                "produs": "carbune_inclusiv_cocs",
                "produs_denumire": "Carbune (inclusiv cocs)",
                "nivel": "produs",
                "de_la": 1992,
                "pana_la": 2024
            }
        ]
    },
    "meta": {
        "sursa": "Institutul Naţional de Statistică — balanţele energetice (TEMPO, matricile IND107A-IND121A).",
        "nota_niveluri": "Unde apare `nivel`, el desparte totalul publicat de sursă de componente şi de sub-poziţiile „din care\" — care nu se adună între ele."
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
422validareThe route takes no parameters apart from lang: any other parameter returns 422 instead of being ignored.
429cota_depasitaThe plan's monthly quota has been exceeded (see Retry-After).

All errors share the same shape. eroare.cod is stable and is the value you should branch on in code — not the text in mesaj, which may change.

{
    "eroare": {
        "cod": "validare",
        "mesaj": "The route takes no parameters apart from lang: any other parameter returns 422 instead of being ignored."
    }
}