oneapi
Sign in
Business v1 / Statistici

Company statistics

The distribution of companies along one dimension: ?dimensiune=forma|stare|judet|caen (forma by default). For caen it returns the top 20.

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

Query parameters

NameTypeDescriptionAccepted values
dimensiuneoptional string | null forma, stare, judet or caen. e.g. judete.g. formae.g. stare

How it behaves

  • The distribution of companies over a dimension: ?dimensiune=forma|stare|judet|caen (default forma). For caen it returns the top 20. The aggregations are computed over ~3.9M companies and cached.

What it is for

  • A summary panel on the structure of the business environment.
  • Comparing counties by company count or activity profile.
  • The aggregate context in which you place a single company's figures.

Response structure

All fields below live inside data.

FieldTypeDescription
dimensiune string How many companies the register holds in total.
distributie[].judet string The county.
distributie[].cod_auto string The county car-plate code.
distributie[].nr_firme integer The number of companies.

Response examples

GEThttps://oneapi.ro/api/business/v1/statistici/firme?dimensiune=judet
{
    "data": {
        "dimensiune": "judet",
        "distributie": [
            {
                "judet": "București",
                "cod_auto": "B",
                "nr_firme": 725317
            }
        ]
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
422validareAn undeclared parameter or a value that fails validation (dimensiune). The offending field is in detalii.
422dimensiune_invalidaValid dimensions: forma, stare, judet, caen.
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": "An undeclared parameter or a value that fails validation (dimensiune). The offending field is in detalii.",
        "detalii": {
            "dimensiune": [
                "The value sent does not satisfy the parameter rule."
            ]
        }
    }
}