oneapi
Sign in
Locations v1 / Șomaj & construcții

Unemployment in a county

The number and the share of registered unemployed in the county (registration prefix, e.g. CJ), at the latest published month. The county total, not the sum of the units listed separately.

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

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 county total as published by the source. Verified: it matches the sum of the county's units exactly.
  • ⚠️ pondere is measured against labour resources, not the civilian active population — see numitor.

What it is for

  • A county report header: how many unemployed, at which month.
  • Comparing counties at the same period.
  • Context for a unit's figures — how much of the county they represent.

Response structure

FieldTypeDescription
data.entitate string The name of the county.
data.perioada.an integer The year of the latest published month.
data.perioada.luna integer The month (1–12).
data.numitor string What pondere is measured against.
data.sursa string The data source.
data.somaj[].sex string total, masculin or feminin.
data.somaj[].numar number | null The number of registered unemployed.
data.somaj[].pondere number | null The share of labour resources, as a percentage.
meta.actualizat object Prospețimea datelor pe domenii (dată ISO 8601).

Response examples

GEThttps://oneapi.ro/api/locations/v1/judete/CJ/somaj
{
    "data": {
        "entitate": "Cluj",
        "perioada": {
            "an": 2026,
            "luna": 7
        },
        "numitor": "resurse de muncă",
        "sursa": "INS (şomaj înregistrat)",
        "somaj": [
            {
                "sex": "total",
                "numar": 5331,
                "pondere": 1.2
            }
        ]
    },
    "meta": {
        "actualizat": {
            "somaj": "2026-09-14",
            "autorizatii": "2026-04-01"
        }
    }
}

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 or has no data.
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 or has no data."
    }
}