Search HTS Codes
API Reference
Get HTS Codes
Search US HTS codes by keyword, code prefix, or chapter/heading/subheading filters
GET
Search HTS Codes
Search HTS codes using full-text search, code prefix matching, or hierarchical filtering. Returns paginated results with optional clarification suggestions.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | No | Full-text search query (max 500 chars) |
code | string | No | Exact or prefix code match (e.g., ‘8517’ or ‘8517.12’) |
chapter | string | No | Filter by chapter (2 digits, e.g., ‘85’) |
heading | string | No | Filter by heading (4 digits, e.g., ‘8517’) |
subheading | string | No | Filter by subheading (6 digits, e.g., ‘851712’) |
page | integer | No | Page number (default: 1, min: 1) |
limit | integer | No | Results per page (default: 25, min: 1, max: 100) |
Example Request
Example Response
Clarifications
When a search returns multiple classifications, the API includes aclarification object with suggestions to help refine your search. Business plans can also receive ai_context with AI-assisted guidance.Authorizations
API key as Bearer token. Format: Bearer your_hts_api_key
Query Parameters
Full-text search query
Maximum string length:
500Exact or prefix code match (e.g., '8517' or '8517.12')
Maximum string length:
50Filter by chapter (2 digits, e.g., '85')
Maximum string length:
10Filter by heading (4 digits, e.g., '8517')
Maximum string length:
10Filter by subheading (6 digits, e.g., '851712')
Maximum string length:
10Page number (default: 1)
Required range:
x >= 1Results per page (max: 100, default: 25)
Required range:
1 <= x <= 100