Locations v1 / Ierarhie & dropdown-uri
Administrative units of a county
The paginated list of administrative units (communes, towns, municipalities) in a county, optionally filtered by tip. The county is identified by its registration prefix.
GET
https://oneapi.ro/api/locations/v1/judete/{judet}/uat
Path parameters
NameTypeDescriptionExample
judetrequired
string
County code, two letters (e.g.
CJ).
Query parameters
NameTypeDescriptionAccepted values
tipoptional
string | null
Filters on the type of administrative unit.
comunaorasmunicipiu
How it behaves
- Bucharest appears with its districts as separate administrative units.
What it is for
- The third level of the cascading address selector, after the county is chosen
- Defining delivery or coverage areas at commune, town or municipality level
- Targeting by unit type (e.g. municipalities only) via
tip
Response structure
FieldTypeDescription
data[].cod_siruta
integer
The public key of the administrative unit.
data[].nume
string
The name of the entity.
data[].tip
string
Entity type (raw code; the full names are at /nomenclatoare/tipuri).
data[].populatie
integer | null
Population (census).
data[].suprafata_kmp
number | null
Area, in km².
data[].resedinta
string | null
The name of the unit's seat locality.
data[].nr_localitati
integer
Component localities.
data[].nr_firme
integer
How many companies were ever registered here (equal to
total from the summary route).
data[].nr_firme_functiune
integer
How many exist NOW. ⚠️ The figure to put next to the name:
nr_firme also includes struck-off companies, 48.8% of the total.
meta.paginare.pagina
integer
Pagina curentă.
meta.paginare.per_pagina
integer
Rezultate pe pagină.
meta.paginare.total
integer
Total rezultate.
meta.paginare.pagini
integer
Număr de pagini.
meta.actualizat
object
Prospețimea datelor pe domenii (dată ISO 8601).
Response examples
GEThttps://oneapi.ro/api/locations/v1/judete/CJ/uat?per_pagina=20
{
"data": [
{
"cod_siruta": 55473,
"nume": "Aghireșu",
"tip": "comuna",
"populatie": 5691,
"suprafata_kmp": 105.8006,
"resedinta": "Aghireșu",
"nr_localitati": 11,
"nr_firme": 763,
"nr_firme_functiune": 346
}
],
"meta": {
"actualizat": {
"administrativ": "2026-08-15T16: 39: 14+03: 00",
"populatie": "2026-08-15T16: 40: 07+03: 00"
},
"paginare": {
"pagina": 1,
"per_pagina": 20,
"total": 81,
"pagini": 5
}
}
}
GEThttps://oneapi.ro/api/locations/v1/judete/CJ/uat?tip=municipiu
{
"data": [
{
"cod_siruta": 55357,
"nume": "Câmpia Turzii",
"tip": "municipiu",
"populatie": 20590,
"suprafata_kmp": 23.7772,
"resedinta": "Câmpia Turzii",
"nr_localitati": 1,
"nr_firme": 4114,
"nr_firme_functiune": 1824
}
],
"meta": {
"actualizat": {
"administrativ": "2026-08-15T16: 39: 14+03: 00",
"populatie": "2026-08-15T16: 40: 07+03: 00"
},
"paginare": {
"pagina": 1,
"per_pagina": 20,
"total": 5,
"pagini": 1
}
}
}
GEThttps://oneapi.ro/api/locations/v1/judete/AB/uat
{
"data": [
{
"cod_siruta": 1151,
"nume": "Abrud",
"tip": "oras",
"populatie": 4360,
"suprafata_kmp": 39.5399,
"resedinta": "Abrud",
"nr_localitati": 4,
"nr_firme": 938,
"nr_firme_functiune": 345
}
],
"meta": {
"actualizat": {
"administrativ": "2026-08-15T16: 39: 14+03: 00",
"populatie": "2026-08-15T16: 40: 07+03: 00"
},
"paginare": {
"pagina": 1,
"per_pagina": 20,
"total": 78,
"pagini": 4
}
}
}
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 | The county does not exist. |
| 422 | validare | A parameter failed validation (tip); detalii says which and why. |
| 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": "validare",
"mesaj": "A parameter failed validation (tip); detalii says which and why.",
"detalii": {
"judet": [
"The value sent does not satisfy the parameter rule."
]
}
}
}