HS Code Classification
What it does
Classify any product into its correct HS (Harmonized System) code using POTAL's v3.3 GRI pipeline. The system uses 595 codified rules across all 21 Sections of the HS nomenclature — zero AI calls, zero per-request cost. Supports text-based classification with 9-field input, image-based classification, and batch processing for hundreds of products at once.
Required Fields for 100% Accuracy
1 required / 9 total| Field | Type | Required |
|---|---|---|
productName | string | ! |
category | string | opt |
material | string | opt |
processing | string | opt |
composition | string | opt |
weight_spec | string | opt |
price | number | opt |
origin_country | string | opt |
destination_country | string | opt |
Tips for Best Accuracy
- ✓All 9 fields provided = highest confidence classification
- ✓productName alone works but may return lower confidence
- ✓Adding material + processing dramatically improves accuracy for textiles and metals
- ✓price field is critical for HS headings with "valued over/under $X" rules
- ✓destination_country affects 10-digit HS code selection (US, EU, GB, CA, AU, JP, KR)
Common Mistakes
- ✗Putting material in the category field — "cotton" is a material, "apparel" is the category
- ✗Using full country names instead of ISO codes — use "CN" not "China"
- ✗Too-generic product names — "shirt" is vague, "men's cotton knitted t-shirt" is precise
- ✗Including brand names — "Nike Air Max" should be "running shoes, leather upper, rubber sole"
- ✗Mixing up processing and composition — processing = how it's made, composition = what it's made of
How to use it
Get your API key
Sign up at potal.app and generate an API key from the Dashboard > API Keys section.
Prepare your product data
At minimum, provide a productName. For best accuracy, include category, material, and processing details.
Send a POST request
Call POST /api/v1/classify with your product data. The response includes the HS code, confidence score, and classification path.
Review the result
Check the confidence score and alternatives array. If confidence is below 0.8, consider providing more product details.
API Reference
/api/v1/classify{
"productName": "Men's cotton t-shirt",
"category": "Apparel"
}{
"hsCode": "6109.10",
"description": "T-shirts, singlets and other vests, of cotton, knitted or crocheted",
"confidence": 0.95,
"alternatives": [
{
"hsCode": "6109.90",
"confidence": 0.82
}
]
}curl -X POST https://potal.app/api/v1/classify \
-H "X-API-Key: pk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"productName": "Men\'s cotton t-shirt", "category": "Apparel"}'Related Features
Look up MFN, MIN, and AGR duty rates for 240 countries
Multi-dimensional confidence scoring for every classification result
Classify hundreds of products at once via CSV or JSON batch API
9-field input validation ensuring accurate classification inputs
Classify products from photos using AI vision analysis