Business v1 / Statistici ONRC
Available keys
The values a dimension can take for an indicator: the counties (with their SIRUTA cod), the NACE activities, the countries or the legal forms.
GET
https://oneapi.ro/api/business/v1/statistici/onrc/chei
Query parameters
NameTypeDescriptionAccepted values
dimensiuneoptional
string | null
judet, caen, tara or forma. Defaults to the first breakdown published for the indicator.
e.g. judet
indicatoroptional
string | null
The indicator code (see
/statistici/onrc/indicatori).
e.g. radierie.g. inmatriculari
How it behaves
- The vocabulary for
?cheie=in/statistici/onrc/serie. Names are canonicalised at import: counties carry the name from the Locations nomenclature, and activities and countries a single spelling — the source writes them with inconsistent diacritics from one month to the next. - You do not have to reproduce a name exactly when filtering:
cheie=cluj,cheie=Clujandcheie=CLUJall reach the same county. For counties,cod=(SIRUTA) is safer anyway.
What it is for
- Populating the breakdown filter — county, activity, legal form.
- Checking a key's canonical name before requesting the series.
- Linking counties to the Locations nomenclature, which uses the same names.
Response structure
All fields below live inside data.
FieldTypeDescription
indicator
string
The requested indicator.
dimensiune
string
The requested breakdown.
chei[].cheie
string
The breakdown value: the county name, the CAEN activity, the country, or the legal-form code.
chei[].cod
string|null
The county SIRUTA code, the same one the Locations module uses.
null for activities, countries and legal forms, which share no nomenclature.
Response examples
GEThttps://oneapi.ro/api/business/v1/statistici/onrc/chei?indicator=radieri&dimensiune=judet
{
"data": {
"indicator": "radieri",
"dimensiune": "judet",
"chei": [
{
"cheie": "Alba",
"cod": "10"
}
]
}
}
GEThttps://oneapi.ro/api/business/v1/statistici/onrc/chei?indicator=inmatriculari&dimensiune=judet
{
"data": {
"indicator": "inmatriculari",
"dimensiune": "judet",
"chei": [
{
"cheie": "Alba",
"cod": "10"
}
]
}
}
GEThttps://oneapi.ro/api/business/v1/statistici/onrc/chei?indicator=radieri
{
"data": {
"indicator": "radieri",
"dimensiune": "judet",
"chei": [
{
"cheie": "Alba",
"cod": "10"
}
]
}
}
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. |
| 422 | validare | A parameter failed validation (dimensiune, indicator); detalii says which and why. |
| 429 | cota_depasita | The plan's monthly quota has been exceeded (see Retry-After). |
| dimensiune_invalida | eroare | The indicator is not published on the requested breakdown — SRL-D exists only per county, foreign capital only per country and county. |
| indicator_invalid | eroare | The requested indicator does not exist. The full list is in /statistici/onrc/indicatori. |
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, indicator); detalii says which and why.",
"detalii": {
"dimensiune": [
"The value sent does not satisfy the parameter rule."
]
}
}
}