oneapi
Sign in
Business v1 / Statistici

Incorporation trend

The number of companies registered per year (a time series).

GET
https://oneapi.ro/api/business/v1/statistici/infiintari

Query parameters

NameTypeDescriptionAccepted values
peoptional string | null an (default), luna or zi. anlunazi
zileoptional integer | null The length of the daily series (pe=zi): default 90, maximum 366. 1 – 366
lunioptional integer | null The length of the monthly series (pe=luna): default 24, maximum 240. 1 – 240
judetoptional string | null The registered-office county: licence-plate code (CJ) or name. e.g. CJ

How it behaves

  • The time series of the number of companies incorporated per year — the demographic pulse of the business environment.
  • With pe=luna (the last luni months, default 24) or pe=zi (the last zile days, default 90), the series is monthly or daily. The window ends at the newest registration in the register, not today — the trade register comes monthly, and the days after the latest edition would look empty. The range is in meta.interval.
  • Periods without any registration appear with nr_firme: 0, so the series can be charted directly.
  • judet narrows to the companies whose (current) registered office is in the county. Companies whose office is not linked to the locality nomenclature are left out of the county filter.

What it is for

  • A chart of incorporations over time, in a report or on a site.
  • Correlating business demography with macroeconomic indicators.
  • Identifying years of expansion and contraction.

Response structure

FieldTypeDescription
data.pe_an[].an integer The reference year.
data.pe_an[].nr_firme integer The number of companies.
meta.pe string The series step: an, luna or zi.
meta.judet string The requested county, if any.
meta.interval object For monthly and daily series, the covered range: {de, pana}; pana is the newest registration in the register.
data.pe_luna[].luna string The month (YYYY-MM).
data.pe_luna[].nr_firme integer Companies registered in the month.
data.pe_zi[].data string The day (YYYY-MM-DD).
data.pe_zi[].nr_firme integer Companies registered on the day; 0 on days without registrations (weekends, holidays).

Response examples

GEThttps://oneapi.ro/api/business/v1/statistici/infiintari
{
    "data": {
        "pe_an": [
            {
                "an": 1990,
                "nr_firme": 74
            }
        ]
    },
    "meta": {
        "pe": "an"
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
404negasitResursa cerută nu există.
422filtru_necunoscutThe county in judet does not exist; detalii.camp says which.
422validareAn undeclared parameter or a value that fails validation (pe, zile without pe=zi, luni without pe=luna, judet). The offending field is in detalii.
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": "filtru_necunoscut",
        "mesaj": "The county in judet does not exist; detalii.camp says which.",
        "detalii": {
            "pe": [
                "The value sent does not satisfy the parameter rule."
            ]
        }
    }
}