The EU customs tariff as an API and MCP server
Describe a product, get the CN code and its import duties. One key for REST and MCP.
Free: 30 AI units a day, no credit card
Or add it to your AI in one click
$ curl https://hscode.info/api/v1/classify \ -H "Authorization: Bearer $HSCODE_KEY" \ --json '{"mode":"accurate","text":""}'
- CN code
- 6109 10 00 10
- high confidence
- Duty · Viet Nam
- 12 % 0 %
- Decision 0753/20
- On a €10,000 shipment
- €0
- saves €1,200
- Official EU data European Commission TARIC
- 91% right chapter Sampled from 120,000+ EU BTI rulings
- Cloudflare network ISO 27001 · SOC 2 infrastructure
- Hashed API keys Shown once, revocable
- OAuth 2.1 Sign-in for AI agents
- Private by default Descriptions not saved
- declarable CN codes
- 16,742
- declarable CN codes
- yearly snapshots since 2016
- 11
- yearly snapshots since 2016
- languages: DE, EN, FR
- 3
- languages: DE, EN, FR
- right chapter on the first suggestion
- 91%
- right chapter on the first suggestion
Source: European Commission TARIC data. Accuracy: Precise AI on real BTI rulings, sampled from over 120,000, see AI accuracy.
By hand or with hscode.info
Without the right code
- A wrong code: up to 14 points more duty, or a back-payment with interest
- Over 15,000 codes in the tariff to search by hand
- Product names rarely match the wording of the tariff
- The tariff changes every month
- 120,000 EU rulings in many languages to check
- Duty rates change without anyone telling you
With hscode.info
- 91% right chapter and 84.7% right subheading on the first suggestion
- 97.7% right when the AI says “Best match”, and it flags when it is unsure
- 99.2% right on everyday product names
- Quick AI answers in seconds
- Grounded in 120,000 real EU customs rulings
- Every monthly tariff since 2016, in German, English and French
- An email when the duty of a code you watch changes
- In your shop system or AI assistant through the API and MCP
Accuracy in numbers
Tested on 1,000 real EU customs rulings
Each case is a product a customs authority has classified. The AI sees only the description and has to find the same code.
Chapter, 2 digits 91%
Heading, 4 digits 87.9%
Subheading, 6 digits 84.7% / 93.9%
First suggestion In the top 5
1,000 EU rulings, October 2026
97.7% right, for 60.9% of all cases
1,000 EU rulings, October 2026
99.2% right first on short names like “running shoes”
132 short product names, October 2026
What the right code is worth
One code off, up to 14 points of duty off
A wrong code costs either way: duty paid for nothing, or a back-payment with interest when customs notices. Third-country duty rates from the EU tariff.
Screens +14 points
0% computer monitor 8528 52 0014% other monitor 8528 59 00Trainers +8.9 points
8% leather upper 6403 99 9616.9% textile upper 6404 11 00Bicycles +8 points
6% with electric motor 8711 60 1014% without motor 8712 00 30Tableware +6.5 points
5.5% stoneware 6912 00 2312% porcelain 6911 10 00Handbags +6 points
3.7% textile outside 4202 22 909.7% plastic sheeting outside 4202 22 10
EU third-country duty, October 2026
€35,000 14 points duty difference on €250,000 of imports
EU third-country duty, October 2026
What it replaces
First CN code in five minutes
-
1. Sign in
Email link, no password.
-
2. Create a key
Account › API keys.
-
3. Call the API
Send the key as a Bearer token.
One call, description to code
Any language in, the top 5 codes out, each with its path and import duties.
- HTTPS only
- Keys stored hashed and shown once
- One key per app, up to 10, revocable any time
- Every duty with its legal base
curl -X POST https://hscode.info/api/v1/classify \
-H "Authorization: Bearer $HSCODE_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "frozen shrimp, peeled", "mode": "accurate"}'{
"snapshot": "2026-10",
"mode": "accurate",
"reranked": true,
"high_confidence": true,
"results": [
{
"goods_code": "0306179290",
"description": "Other",
"path": ["FISH AND CRUSTACEANS, …", "Crustaceans, …", "Frozen",
"Other shrimps and prawns", "Shrimps of the genus Penaeus", "Other"],
"confidence": 0.78,
"reasoning": "Frozen peeled shrimp of the genus Penaeus is most likely classified as frozen other shrimps and prawns under 0306 …",
"duties": [
{
"origin": "ERGA OMNES",
"duty": "12.000 %",
"measure_type": "Third country duty",
"legal_base": "Regulation 1006/11"
}
]
}
],
"disclaimer": "Advisory result generated automatically from the EU TARIC nomenclature. It is not a Binding Tariff Information (BTI) decision; verify the classification before declaring goods."
}Endpoints
Versioned under /api/v1. Use "latest" as the year for the newest snapshot.
| Endpoint | Returns | Counts as |
|---|---|---|
| POST/ | Top 5 codes for a description, with duties | 1 AI unit (fast) or 5 (accurate) |
| POST/ | Up to 25 descriptions in one call | The same per description |
| GET/ | One code with hierarchy and duties | Lookup |
| GET/ | Search codes and descriptions | Lookup |
| GET/ | Import duties of a code | Lookup |
| GET/ | Chapter list | Lookup |
| GET/ | All rows of a chapter | Lookup |
| GET/ | Languages and yearly snapshots | Lookup |