oneapi
Sign in
Carburanti v1 / Carburanti

Annual consumption

Annual fuel consumption in thousands of tonnes, by country and product. The latest published year comes in the response, because the source lags a year or two.

GET
https://oneapi.ro/api/carburanti/v1/consum

Query parameters

NameTypeDescriptionAccepted values
taraoptional string | null Country code. Defaults to RO. ATBEBGCYCZDEDKEEESFIFRGRHRHUIEITLTLULVMTNLPLPTROSESISKUK
produsoptional string | null Optional: restrict to one product. Defaults to all — the route returns one row per product, so it makes sense without it. benzina95motorinamotorina_incalzirepacura_sulf_micpacura_sulf_maregpl
anoptional integer | null Restrict to one year. 1990 – 2100

How it behaves

  • The unit is thousand tonnes for every product, including those whose price is published per 1000 litres. Do not divide by density to compare with the price — they are two deliberately different units.
  • The data is annual and published with a lag: ultimul_an_publicat says how far the series goes.
  • Without an you get every available year, most recent first.

What it is for

  • Size a market: how much diesel a country consumes annually, as the basis for a business plan.
  • Track the shift away from diesel by comparing the annual series.
  • Report the share of a product in a country total consumption.

Response structure

All fields below live inside data.

FieldTypeDescription
tara string Țara.
unitate string Întotdeauna „mii de tone".
ultimul_an_publicat integer Cel mai recent an din serie, pentru orice țară.
inregistrari integer Câte rânduri conține răspunsul.
consum[].an integer Anul.
consum[].produs string Codul produsului.
consum[].denumire string Denumirea lizibilă.
consum[].consum number Consumul, în mii de tone.
sursa object Sursa și licența.

Response examples

GEThttps://oneapi.ro/api/carburanti/v1/consum?an=2024
{
    "data": {
        "tara": "RO",
        "unitate": "mii de tone",
        "ultimul_an_publicat": 2024,
        "inregistrari": 5,
        "consum": [
            {
                "an": 2024,
                "produs": "benzina95",
                "denumire": "Benzină Euro-super 95",
                "consum": 956.77
            }
        ],
        "sursa": {
            "nume": "European Commission — Weekly Oil Bulletin (DG ENER)",
            "licenta": "CC BY 4.0 (Decizia 2011/833/UE)",
            "observatie": "Consum anual în mii de tone, indiferent de unitatea în care se publică prețul produsului."
        }
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
422validareUnknown country or product code.
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": "Unknown country or product code.",
        "detalii": {
            "tara": [
                "The value sent does not satisfy the parameter rule."
            ]
        }
    }
}