---
title: "CNAE code metadata"
method: GET
path: "/api/v1/cnae/{code}"
tags: ["Sectors"]
---

# CNAE code metadata

`GET /api/v1/cnae/{code}`

Return CNAE-2009 metadata and an optional company count from the offline projection. A missing projection is represented as null and never triggers a live COUNT.

## Path parameters

- `code` string, required

## Response `200`

CNAE metadata

- CnaeNode — CNAE node. Catalog loaders may add official explanatory fields.
  - `code` string
  - `name` string
  - `level` integer, nullable
  - `parent` string, nullable
  - `companies_count` integer, nullable
  - `count_status` 'precomputed' | 'not_precomputed'
  - `children` CnaeNode[]

## Other responses

- `404` — Resource not found
- `429` — Rate limit exceeded
- `503` — The public read failed closed because its legal source catalog, subject classification, bounded projection, database helper or required artifact is unavailable. Clients must not infer an empty result.

---

[API](https://skmtc.net/openmercantil/apis/openmercantil-public-api.md) · [All operations](https://skmtc.net/openmercantil/apis/openmercantil-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openmercantil/openmercantil-public-api/versions/996f96a11758/schema)
