Search HS Codes
API Reference
Get HS Codes
Search global HS codes (6-digit) by keyword, code prefix, or ingredient list
GET
Search HS Codes
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.
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., ‘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) |
Example Request
Example Response
Ingredient Search
Theingredients 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.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., '1101' or '1101.00')
Maximum string length:
50Comma-separated list of ingredients (e.g., 'wheat,flour')
Maximum string length:
500Page number (default: 1)
Required range:
x >= 1Results per page (max: 100, default: 25)
Required range:
1 <= x <= 100