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 lastlunimonths, default 24) orpe=zi(the lastziledays, 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 inmeta.interval. - Periods without any registration appear with
nr_firme: 0, so the series can be charted directly. judetnarrows 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"
}
}
GEThttps://oneapi.ro/api/business/v1/statistici/infiintari?pe=zi
{
"data": {
"pe_zi": [
{
"data": "2026-06-05",
"nr_firme": 545
}
]
},
"meta": {
"pe": "zi",
"interval": {
"de": "2026-06-05",
"pana": "2026-09-02"
}
}
}
GEThttps://oneapi.ro/api/business/v1/statistici/infiintari?pe=luna&luni=12&judet=CJ
{
"data": {
"pe_luna": [
{
"luna": "2025-10",
"nr_firme": 843
}
]
},
"meta": {
"pe": "luna",
"judet": "CJ",
"interval": {
"de": "2025-10-01",
"pana": "2026-09-02"
}
}
}
GEThttps://oneapi.ro/api/business/v1/statistici/infiintari?judet=CJ
{
"data": {
"pe_an": [
{
"an": 1990,
"nr_firme": 4
}
]
},
"meta": {
"pe": "an",
"judet": "CJ"
}
}
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. |
| 404 | negasit | Resursa cerută nu există. |
| 422 | filtru_necunoscut | The county in judet does not exist; detalii.camp says which. |
| 422 | validare | An undeclared parameter or a value that fails validation (pe, zile without pe=zi, luni without pe=luna, judet). The offending field is in detalii. |
| 429 | cota_depasita | The 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."
]
}
}
}