Energie v1 / Balanţe energetice
Degree of energy independence
How much of gross inland consumption is covered by domestic production, across four energy products — coal, crude oil, natural gas and the total. 132 values, annually 1992–2024 (IND121A).
⚠️ This is a ratio, in percent: it is not additive across products and must not be averaged without weights. The total is published by the source, not composed from the three.
GET
https://oneapi.ro/api/energie/v1/balante/independenta
Query parameters
NameTypeDescriptionAccepted values
produsoptional
string | null
The slug of an energy product from the nomenclature.
e.g. titei
de_laoptional
string | null
First year included, from 1992.
e.g. 2010
pana_laoptional
string | null
Last year included.
e.g. 2024
How it behaves
- How much of gross inland consumption is covered by domestic production, across four energy products — coal, crude oil, natural gas and the total. 132 values, annual 1992-2024 (
IND121A). - This is a ratio, in percent: it does not add up across products and does not average without weights. The total is published by the source, not composed from the three.
What it is for
- Measure import dependence for coal, crude oil and gas separately.
- Track how the country energy autonomy changed over thirty years.
Response structure
FieldTypeDescription
data.serii[].produs
string
Slugul produsului energetic.
data.serii[].nivel
string
total ori produs.
data.serii[].valori
object
An → procent, ca text zecimal.
data.granularitate
string
The series step. For balances it is always
anual: INS publishes the balance once a year.
data.de_la
integer
First year in the response.
data.pana_la
integer
Last year in the response.
data.filtre
array
The filters actually applied, so you can see what was read from the request.
data.ani
array
The years covered, in order — the keys inside
valori.
data.serii[].um
The unit-of-measure code.
data.serii[].um_denumire
string
The unit of measure spelled out. Read it: series in the same response can use different units, and adding them would mean nothing.
data.serii[].ani_publicati
integer
How many years carry an actual value. The difference from the length of
ani is the gaps in INS publication.
meta.sursa
string
The INS dataset the series comes from, with the source matrix.
meta.acoperire
object
The year range available in the database for this zone, regardless of the filter requested.
meta.serii_returnate
integer
How many series are in the response.
data.unitate
string
The unit the energy-independence ratio is expressed in.
data.serii[].produs_denumire
string
The product name.
meta.nota_raport
string
How to read the ratio: how much of consumption is covered by domestic production.
meta.nota_sen
string
The relationship with the real-time data in the
sen zone.
meta.nota_lista
string
Where the product codes are.
Response examples
GEThttps://oneapi.ro/api/energie/v1/balante/independenta?de_la=2010
{
"data": {
"unitate": "procente — cât din consumul intern brut e acoperit din producţia internă",
"granularitate": "anual",
"de_la": 2010,
"pana_la": 2024,
"filtre": [],
"ani": [
2010,
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022,
2023,
2024
],
"serii": [
{
"produs": "carbune_inclusiv_cocs",
"produs_denumire": "Carbune (inclusiv cocs)",
"nivel": "produs",
"um_denumire": "Procente",
"ani_publicati": 15,
"valori": {
"2010": "85.4",
"2011": "81.8",
"2012": "84",
"2013": "81.9",
"2014": "77.8",
"2015": "80.4",
"2016": "80.3",
"2017": "83.1",
"2018": "79",
"2019": "79.7",
"2020": "73.9",
"2021": "73.8",
"2022": "78.6",
"2023": "86.3",
"2024": "86.9"
}
}
]
},
"meta": {
"sursa": "Institutul Naţional de Statistică — balanţele energetice (TEMPO, matricile IND107A-IND121A).",
"acoperire": {
"de_la": "1992-01-01",
"pana_la": "2024-01-01"
},
"serii_returnate": 4,
"nota_raport": "⚠️ E un raport în procente — nu se adună între produse şi nu se mediază fără ponderi. Totalul e publicat de sursă.",
"nota_sen": "Sunt date statistice anuale. Starea instantanee a sistemului, de la Transelectrica, e la /energie/v1/sen — altă natură, nu se compară.",
"nota_lista": "Nomenclatoarele zonei: /energie/v1/balante/nomenclator."
}
}
GEThttps://oneapi.ro/api/energie/v1/balante/independenta?produs=titei
{
"data": {
"unitate": "procente — cât din consumul intern brut e acoperit din producţia internă",
"granularitate": "anual",
"de_la": 1992,
"pana_la": 2024,
"filtre": {
"produs": "titei"
},
"ani": [
1992,
1993,
1994,
1995,
1996,
1997,
1998,
1999,
2000,
2001,
2002,
2003,
2004,
2005,
2006,
2007,
2008,
2009,
2010,
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022,
2023,
2024
],
"serii": [
{
"produs": "titei",
"produs_denumire": "Titei",
"nivel": "produs",
"um_denumire": "Procente",
"ani_publicati": 33,
"valori": {
"1992": "51.3",
"1993": "47.3",
"1994": "45.2",
"1995": "43.7",
"1996": "48.6",
"1997": "51.4",
"1998": "51.8",
"1999": "59.4",
"2000": "57",
"2001": "52.2",
"2002": "48.5",
"2003": "52",
"2004": "43.4",
"2005": "37.8",
"2006": "35.9",
"2007": "35.4",
"2008": "35.5",
"2009": "39.2",
"2010": "41.5",
"2011": "42.8",
"2012": "43.9",
"2013": "43.4",
"2014": "38.2",
"2015": "37.6",
"2016": "33.1",
"2017": "31.1",
"2018": "30",
"2019": "29.1",
"2020": "32.2",
"2021": "32.1",
"2022": "26.2",
"2023": "28",
"2024": "25.5"
}
}
]
},
"meta": {
"sursa": "Institutul Naţional de Statistică — balanţele energetice (TEMPO, matricile IND107A-IND121A).",
"acoperire": {
"de_la": "1992-01-01",
"pana_la": "2024-01-01"
},
"serii_returnate": 1,
"nota_raport": "⚠️ E un raport în procente — nu se adună între produse şi nu se mediază fără ponderi. Totalul e publicat de sursă.",
"nota_sen": "Sunt date statistice anuale. Starea instantanee a sistemului, de la Transelectrica, e la /energie/v1/sen — altă natură, nu se compară.",
"nota_lista": "Nomenclatoarele zonei: /energie/v1/balante/nomenclator."
}
}
GEThttps://oneapi.ro/api/energie/v1/balante/independenta?de_la=2015&pana_la=2022
{
"data": {
"unitate": "procente — cât din consumul intern brut e acoperit din producţia internă",
"granularitate": "anual",
"de_la": 2015,
"pana_la": 2022,
"filtre": [],
"ani": [
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"serii": [
{
"produs": "carbune_inclusiv_cocs",
"produs_denumire": "Carbune (inclusiv cocs)",
"nivel": "produs",
"um_denumire": "Procente",
"ani_publicati": 8,
"valori": {
"2015": "80.4",
"2016": "80.3",
"2017": "83.1",
"2018": "79",
"2019": "79.7",
"2020": "73.9",
"2021": "73.8",
"2022": "78.6"
}
}
]
},
"meta": {
"sursa": "Institutul Naţional de Statistică — balanţele energetice (TEMPO, matricile IND107A-IND121A).",
"acoperire": {
"de_la": "1992-01-01",
"pana_la": "2024-01-01"
},
"serii_returnate": 4,
"nota_raport": "⚠️ E un raport în procente — nu se adună între produse şi nu se mediază fără ponderi. Totalul e publicat de sursă.",
"nota_sen": "Sunt date statistice anuale. Starea instantanee a sistemului, de la Transelectrica, e la /energie/v1/sen — altă natură, nu se compară.",
"nota_lista": "Nomenclatoarele zonei: /energie/v1/balante/nomenclator."
}
}
GEThttps://oneapi.ro/api/energie/v1/balante/independenta
{
"data": {
"unitate": "procente — cât din consumul intern brut e acoperit din producţia internă",
"granularitate": "anual",
"de_la": 1992,
"pana_la": 2024,
"filtre": [],
"ani": [
1992,
1993,
1994,
1995,
1996,
1997,
1998,
1999,
2000,
2001,
2002,
2003,
2004,
2005,
2006,
2007,
2008,
2009,
2010,
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022,
2023,
2024
],
"serii": [
{
"produs": "carbune_inclusiv_cocs",
"produs_denumire": "Carbune (inclusiv cocs)",
"nivel": "produs",
"um_denumire": "Procente",
"ani_publicati": 33,
"valori": {
"1992": "68.7",
"1993": "74.8",
"1994": "75.7",
"1995": "72.7",
"1996": "75.1",
"1997": "67.8",
"1998": "64.4",
"1999": "69",
"2000": "74.9",
"2001": "76.4",
"2002": "69.4",
"2003": "68.7",
"2004": "67.5",
"2005": "66.3",
"2006": "67.9",
"2007": "68.1",
"2008": "72.7",
"2009": "86.5",
"2010": "85.4",
"2011": "81.8",
"2012": "84",
"2013": "81.9",
"2014": "77.8",
"2015": "80.4",
"2016": "80.3",
"2017": "83.1",
"2018": "79",
"2019": "79.7",
"2020": "73.9",
"2021": "73.8",
"2022": "78.6",
"2023": "86.3",
"2024": "86.9"
}
}
]
},
"meta": {
"sursa": "Institutul Naţional de Statistică — balanţele energetice (TEMPO, matricile IND107A-IND121A).",
"acoperire": {
"de_la": "1992-01-01",
"pana_la": "2024-01-01"
},
"serii_returnate": 4,
"nota_raport": "⚠️ E un raport în procente — nu se adună între produse şi nu se mediază fără ponderi. Totalul e publicat de sursă.",
"nota_sen": "Sunt date statistice anuale. Starea instantanee a sistemului, de la Transelectrica, e la /energie/v1/sen — altă natură, nu se compară.",
"nota_lista": "Nomenclatoarele zonei: /energie/v1/balante/nomenclator."
}
}
Error codes
| Code | Slug | When it occurs |
|---|---|---|
| 401 | neautentificat | Token missing, invalid, expired or revoked. |
| 403 | feature_indisponibil | The current plan does not include the feature the route depends on. |
| 404 | necunoscut | The product does not appear in the nomenclature. |
| 404 | in_afara_acoperirii | The requested range falls outside the published years. |
| 422 | validare | A parameter failed validation (produs, de_la, pana_la); detalii says which and why. |
| 429 | cota_depasita | The 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": "A parameter failed validation (produs, de_la, pana_la); detalii says which and why.",
"detalii": {
"produs": [
"The value sent does not satisfy the parameter rule."
]
}
}
}