oneapi
Sign in
Business v1 / Statistici ONRC

ONRC ranking for a month

The keys ordered descending at a given month (the latest available by default), with each one's share of the total and the change against the same period of the previous year.

GET
https://oneapi.ro/api/business/v1/statistici/onrc/clasament

Query parameters

NameTypeDescriptionAccepted values
dimensiuneoptional string | null judet, caen, tara or forma. Defaults to the first breakdown published for the indicator. e.g. judete.g. formae.g. tara
formaoptional string | null Narrows to one legal form (SRL, PFA, II…). e.g. SRL
indicatoroptional string | null The indicator code (see /statistici/onrc/indicatori). e.g. insolventae.g. inmatricularie.g. cap_strain_mii_eur
limitaoptional string | null How many positions to return (1-100, default 20). e.g. 10
perioadaoptional string | null The month to rank, as YYYY-MM. Defaults to the latest available. e.g. 2026-07

How it behaves

  • Who stands best (or worst) in a given month: counties by insolvencies, CAEN activities by removals, legal forms by incorporations. Without perioada, the last month published for the indicator is used.
  • For cumulative indicators the ranking is on the total since 1 January — so a June ranking compares half-years, not the month of June.

What it is for

  • A ranking of counties by insolvencies or incorporations, for a given month.
  • Identifying the activities with the largest rise or fall.
  • A recurring content element for monthly reports.

Response structure

All fields below live inside data.

FieldTypeDescription
indicator.cod string The indicator code.
indicator.denumire string Its name.
indicator.natura string flux_cumulat, flux_lunar or stoc.
indicator.unitate string The unit of measure.
indicator.dimensiuni[] string The breakdowns published for this indicator.
indicator.sursa string The source bulletin.
dimensiune string The breakdown being ranked.
perioada string The month of the ranking, as YYYY-MM.
total number The sum over all keys for that month — the denominator of the shares, computed from the same rows.
clasament[].pozitie integer The rank, starting at 1.
clasament[].cheie string The county, activity, country or legal form.
clasament[].cod string|null The county SIRUTA code; null on the other breakdowns.
clasament[].valoare number The value for the requested month.
clasament[].pondere number|null Its share of the total, as a percentage with two decimals.
clasament[].valoare_an_anterior number|null The same period a year earlier, from the source.
clasament[].variatie number|null The percentage change against the previous year. null when the source gives no comparison figure, or when that figure is zero.

Response examples

GEThttps://oneapi.ro/api/business/v1/statistici/onrc/clasament?indicator=insolventa&dimensiune=judet&limita=10
{
    "data": {
        "indicator": {
            "cod": "insolventa",
            "denumire": "Intrări în insolvenţă",
            "natura": "flux_cumulat",
            "unitate": "firme",
            "dimensiuni": [
                "judet",
                "caen"
            ],
            "sursa": "Buletinul statistic lunar ONRC — insolvenţe"
        },
        "dimensiune": "judet",
        "perioada": "2026-07",
        "total": 4425,
        "clasament": [
            {
                "pozitie": 1,
                "cheie": "București",
                "cod": "403",
                "valoare": 804,
                "pondere": 18.17,
                "valoare_an_anterior": 766,
                "variatie": 4.96
            }
        ]
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
422validareA parameter failed validation (dimensiune, forma, indicator etc.); detalii says which and why.
429cota_depasitaThe plan's monthly quota has been exceeded (see Retry-After).
dimensiune_invalidaeroareThe indicator is not published on the requested breakdown.
indicator_invalideroareThe requested indicator does not exist.
perioada_invalidaeroareThe month is given as YYYY-MM and must exist in the series.

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 (dimensiune, forma, indicator etc.); detalii says which and why.",
        "detalii": {
            "dimensiune": [
                "The value sent does not satisfy the parameter rule."
            ]
        }
    }
}