Search global HS codes (6-digit) by keyword, code prefix, or ingredient list
Search HS codes (6-digit international codes) using full-text search, code prefix matching, or ingredient-based search. Returns paginated results with optional clarification suggestions.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.
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | No | Full-text search query (max 500 chars) |
code | string | No | Exact or prefix code match (e.g., ‘1101’ or ‘1101.00’) |
ingredients | string | No | Comma-separated list of ingredients (e.g., ‘wheat,flour’, max 500 chars) |
page | integer | No | Page number (default: 1, min: 1) |
limit | integer | No | Results per page (default: 25, min: 1, max: 100) |
ingredients parameter allows you to search for codes by listing product ingredients. This is particularly useful for food products where the same ingredients can appear at different processing levels (raw, milled, prepared).
When ingredient searches span multiple processing levels, the API provides clarification suggestions to help you choose the correct classification.API key as Bearer token. Format: Bearer your_hts_api_key
Full-text search query
500Exact or prefix code match (e.g., '1101' or '1101.00')
50Comma-separated list of ingredients (e.g., 'wheat,flour')
500Page number (default: 1)
x >= 1Results per page (max: 100, default: 25)
1 <= x <= 100