---
title: "Get Subtree"
method: GET
path: "/api/reference/subtree/{code}"
tags: ["reference"]
---

# Get Subtree

`GET /api/reference/subtree/{code}`

## Request

- Base URL: `https://tradedashboard.eu` (the document declares no server; this is the origin it was published from)
- URL: `https://tradedashboard.eu/api/reference/subtree/{code}`
- Auth: none declared

The Combined Nomenclature sub-tree rooted at *code* (nested
``{code, text, children}``, in *lang*), used to drill from a parent code
into its children. ``"TOTAL"`` (the Eurostat all-products meta-aggregate)
is accepted: every chapter is hardcoded as its child. Day-cacheable; 400
for malformed codes, 503 when the nomenclature service is unavailable.

## Path parameters

- `code` string, required

## Query parameters

- `lang` string

## Response `200`

Successful Response

- SubtreeNode: One node of a CN sub-tree (recursive).
  - `code` string, required
  - `text` string
  - `children` SubtreeNode[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tradedashboard/apis/eu-trade-explorer.md) · [All operations](https://skmtc.dev/tradedashboard/apis/eu-trade-explorer/llms.txt) · [OpenAPI document](https://skmtc.dev/tradedashboard/apis/eu-trade-explorer/revisions/b9abc715a5c2?raw)
