oneapi
Sign in
Locations v1 / Demografie

County statistics

A county's aggregates: number of administrative units and localities, population (total + male/female), area and density. The county is identified by its registration prefix.

GET
https://oneapi.ro/api/locations/v1/judete/{cod}/statistici

Path parameters

NameTypeDescriptionExample
codrequired string County code, two letters (e.g. CJ). Bucharest is B.

Query parameters

This route accepts no query parameters.

How it behaves

  • The number of units and localities, population (total + male/female), area and density.

What it is for

  • A county record in a portal: number of units and localities, population and density in a single call.
  • Comparing counties for resource allocation or logistics planning.
  • A regional report header carrying the county's aggregates.

Response structure

FieldTypeDescription
data.cod string The entity code (the public key of that level).
data.nume string The name of the entity.
data.nr_uat integer The number of administrative units in the county.
data.nr_localitati integer The total number of localities in the county.
data.populatie object An object with the total plus the male/female breakdown and the source year.
data.populatie.total integer | null Total population.
data.populatie.masculin integer | null Male population.
data.populatie.feminin integer | null Female population.
data.populatie.an integer | null The year of the source census (RPL2021).
data.suprafata_kmp number | null The county's area in km².
data.densitate number | null Inhabitants per km² (population / area).
meta.actualizat object Prospețimea datelor pe domenii (dată ISO 8601).

Response examples

GEThttps://oneapi.ro/api/locations/v1/judete/CJ/statistici
{
    "data": {
        "cod": "CJ",
        "nume": "Cluj",
        "nr_uat": 81,
        "nr_localitati": 434,
        "populatie": {
            "total": 679141,
            "masculin": 327314,
            "feminin": 351827,
            "an": 2021
        },
        "suprafata_kmp": 6666.8818,
        "densitate": 101.9
    },
    "meta": {
        "actualizat": {
            "administrativ": "2026-08-15T16: 39: 14+03: 00",
            "populatie": "2026-08-15T16: 40: 07+03: 00"
        }
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
404negasitThe county does not exist.
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": "negasit",
        "mesaj": "The county does not exist."
    }
}