oneapi
Sign in
Financiar v1 / Inflatie

The activity catalogue for the employed population

The codes the employed population is published on, separately for the two NACE classifications, with the source's exact name and each one's level.

GET
https://oneapi.ro/api/financiar/v1/populatie-ocupata/activitati

Query parameters

NameTypeDescriptionAccepted values
versiuneoptional string | null Optional: rev2 (default) or rev1. rev1rev2

How it behaves

  • The codes on which the employed population is published, separately for the two CAEN classifications, with the exact source wording and each one's level.
  • Rev.2 holds 21 codes: 19 sections, total and industrie. Rev.1 also holds 21, split differently: 14 sections, total, industrie and four spelled-out aggregates.
  • ⚠️ Codes do not carry across classifications: J means "Financial intermediation" in Rev.1 and "Information and communication" in Rev.2.

What it is for

  • Finding the right code before requesting the series.
  • Comparing the structure of the two classifications.

Response structure

FieldTypeDescription
data.versiune_caen string The revision the served series comes from.
data.activitati integer Activities for which values exist.
data.pe_nivel object How many codes each level holds in the requested classification.
data.pe_nivel.agregat integer The aggregate the value belongs to.
data.pe_nivel.sectiune integer Section of the classification — the broadest level.
data.pe_nivel.total integer
data.niveluri.agregat[].caen string The CAEN (NACE) code of the activity, in the series revision.
data.niveluri.agregat[].denumire string The name, exactly as the source publishes it.
data.niveluri.agregat[].cerere.grupare string The value to send in grupare: the key is a source aggregate, not a CAEN code.
data.niveluri.sectiune[].caen string The CAEN (NACE) code of the activity, in the series revision.
data.niveluri.sectiune[].denumire string The name, exactly as the source publishes it.
data.niveluri.sectiune[].cerere.caen string The CAEN code to send in caen for this key.
data.niveluri.total[].caen string The CAEN (NACE) code of the activity, in the series revision.
data.niveluri.total[].denumire string The name, exactly as the source publishes it.
data.niveluri.total[].cerere.grupare string The value to send in grupare: the key is a source aggregate, not a CAEN code.
data.nota string A note on how to read the data — a pitfall, a convention or a limit of the source.
meta.sursa string The official source the data comes from, with its licence where one is required.
meta.nota_versiune string A note on how to read the response: a caveat, a convention or a limit of the source.
data.niveluri[].denumire The exact wording published by INS.
meta.fara_date data is null and this says why. The projection over the INS data is empty.
meta.fara_date_cod The short, STABLE word for the reason, for clients that branch on it in code: fara_date is prose and may be rephrased, this is not.

Response examples

GEThttps://oneapi.ro/api/financiar/v1/populatie-ocupata/activitati
{
    "data": {
        "versiune_caen": "rev2",
        "activitati": 21,
        "pe_nivel": {
            "agregat": 1,
            "sectiune": 19,
            "total": 1
        },
        "niveluri": {
            "agregat": [
                {
                    "caen": "industrie",
                    "denumire": "INDUSTRIE",
                    "cerere": {
                        "grupare": "industrie"
                    }
                }
            ],
            "sectiune": [
                {
                    "caen": "A",
                    "denumire": "A  AGRICULTURA, SILVICULTURA SI PESCUIT",
                    "cerere": {
                        "caen": "A"
                    }
                }
            ],
            "total": [
                {
                    "caen": "total",
                    "denumire": "TOTAL",
                    "cerere": {
                        "grupare": "total"
                    }
                }
            ]
        },
        "nota": "Codul `industrie` e un agregat peste secţiunile B, C, D, E, nu o secţiune."
    },
    "meta": {
        "sursa": "Institutul Naţional de Statistică — clasificările CAEN aşa cum apar în matricile FOM103A şi FOM103D (TEMPO).",
        "nota_versiune": "`rev1` şi `rev2` au coduri şi denumiri diferite; codul cerut trebuie să fie din clasificarea potrivită."
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatMissing or invalid token.
403feature_indisponibilfinanciar.indici is not in the current plan.
422validareA parameter failed validation (versiune); detalii says which and why.
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": "validare",
        "mesaj": "A parameter failed validation (versiune); detalii says which and why.",
        "detalii": {
            "versiune": [
                "The value sent does not satisfy the parameter rule."
            ]
        }
    }
}