Browse Categories
API Reference
Browse Categories
Browse the HTS hierarchy as a tree by fetching children for a parent code
GET
Browse Categories
Browse the hierarchical tree structure of codes. Returns top-level chapters or children of a specified parent code.Documentation Index
Fetch the complete documentation index at: https://docs.htsapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
parent | string | No | Parent code to get children of (e.g., ‘8517’) |
depth | integer | No | How many levels deep (default: 1, max: 3) |
Example Request
Get top-level chapters:Example Response
Response Fields
has_children: Boolean indicating if the code has child codesindent: Hierarchy level (0 = top level)
Use Cases
- Build tree navigation interfaces
- Explore code hierarchies
- Display category structures
- Implement breadcrumb navigation
Authorizations
API key as Bearer token. Format: Bearer your_hts_api_key
Query Parameters
Parent code to get children of
Maximum string length:
50How many levels deep (default: 1, max: 3)
Required range:
1 <= x <= 3Response
Category tree