Get HTS Code by Code
API Reference
Get HTS Code by Code
Fetch a single HTS code with hierarchy, children, duty rates, units, and footnotes
GET
Get HTS Code by Code
Get a single HTS code with its full hierarchy and children. This endpoint is useful for exploring the code structure and understanding parent-child relationships.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 |
|---|---|---|---|
code | string | Yes | The HTS code (e.g., ‘8517.12.00.50’) |
Example Request
Example Response
Response Fields
hierarchy: Array of parent codes in order from chapter to immediate parentchildren: Array of child codes (if any exist)units: Measurement units for the codefootnotes: Footnotes and additional information
Use Cases
- Explore code structure and relationships
- Build hierarchical navigation UIs
- Understand code context within the classification system
- Get complete code details including rates and units