---
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.

## Changes

- **2026-07-26** `996f96a11758` — 46 info
  - api operation id `getCnaeByCode` was added
  - the endpoint scheme security `apiKey` was added to the API
  - the endpoint scheme security `bearerAuth` was added to the API
  - added the non-success response with the status `429`
  - …42 more

[Change history](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/changes/api/v1/cnae/:code/get.md)

---

[API](https://skmtc.dev/openmercantil/apis/openmercantil-public-api.md) · [All operations](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openmercantil/openmercantil-public-api/revisions/601ff6123c86/schema)
