Jump to content

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
Origin
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.

Right on the first suggestion

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

Marked “Best match”

97.7% right, for 60.9% of all cases

1,000 EU rulings, October 2026

Everyday product names

99.2% right first on short names like “running shoes”

132 short product names, October 2026

All numbers

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.

Same goods, two codes
  • Screens +14 points

    0% computer monitor
    14% other monitor
  • Trainers +8.9 points

    8% leather upper
    16.9% textile upper
  • Bicycles +8 points

    6% with electric motor
    14% without motor
  • Tableware +6.5 points

    5.5% stoneware
    12% porcelain
  • Handbags +6 points

    3.7% textile outside
    9.7% plastic sheeting outside

EU third-country duty, October 2026

What a wrong code costs a year

€35,000 14 points duty difference on €250,000 of imports

Goods

EU third-country duty, October 2026

What it replaces

Find the code Search 16,742 codes and read the chapter notes One description, the top 5 codes with a reason
Read the duty Dozens of measures per code, by origin Every measure in the same response, with legal base
Stay current Check which tariff year applies Each response names its snapshot

First CN code in five minutes

  1. 1. Sign in

    Email link, no password.

  2. 2. Create a key

    Account › API keys.

  3. 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"}'
Response (shortened)
{
  "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.

POST/api/v1/classifyTop 5 codes for a description, with duties1 AI unit (fast) or 5 (accurate)
POST/api/v1/classify/batchUp to 25 descriptions in one callThe same per description
GET/api/v1/{lang}/{year}/codes/{code}One code with hierarchy and dutiesLookup
GET/api/v1/{lang}/{year}/search?q=Search codes and descriptionsLookup
GET/api/v1/{year}/duties/{code}Import duties of a codeLookup
GET/api/v1/{lang}/{year}/chaptersChapter listLookup
GET/api/v1/{lang}/{year}/chapters/{chapter}All rows of a chapterLookup
GET/api/v1/snapshotsLanguages and yearly snapshotsLookup
Full reference with schemas and errors

Give your AI the EU tariff

Sign in once in the browser. No key to copy.

91% Chapter, 2 digits97.7% Best match99.2% Everyday product names

Cursor and VS Code install directly. The others copy the URL, a command or a prompt.

  • OAuth 2.1 sign-in
  • You approve each app
  • Or use an API key

Tools your agent gets

classify
Description to the top 5 codes
lookup_code
One code with its duties
search_codes
Keyword or partial-code search
duty_history
Duties of a code since 2016

Agents in Chrome get the same four tools on every hscode.info page through WebMCP. No setup and no key: they use the free daily quota, or your plan once you are signed in.

Manual setup

Run in your terminal

claude mcp add --transport http hscode https://hscode.info/mcp

Trust and security

Official EU source

The European Commission's TARIC data, not scraped.

Dated

Each response names its snapshot, for example 2026-10.

Duties included

Per origin, with preferences, quotas and legal base.

Advisory

Only a Binding Tariff Information (BTI) from customs is binding.

Measured

On real BTI rulings, Precise AI names the right chapter in 91% and the right heading in 87.9% of cases.

Your keys

Stored hashed, shown once, revocable any time.

Pricing

Quick AI costs 1 unit, Precise AI 5. Lookups are counted separately.

Free

Try it out

$0

  • 30 AI units a day 30 Quick or 6 Precise classifications
  • 100 code lookups a day
  • REST API and MCP server
  • Not included: CSV product lists, 500 rows at a time
  • Not included: Watchlist, email when duties change
  • Not included: Similar EU BTI rulings for any product
  • Not included: Monthly CSV files of all codes and duties
  • Not included: Keeps working past the quota
Create free account

Starter

Occasional importers

$19 / month

  • 1,500 AI units 1,500 Quick or 300 Precise classifications
  • 25,000 code lookups
  • REST API and MCP server
  • CSV product lists, 500 rows at a time
  • Watchlist of 50 codes, email when duties change
  • Not included: Similar EU BTI rulings for any product
  • Monthly CSV files of all codes and duties
  • Keeps working past the quota
Start free

Pro

Importers and shops

$39 / month

  • 3,500 AI units 3,500 Quick or 700 Precise classifications
  • 50,000 code lookups
  • REST API and MCP server
  • CSV product lists, 500 rows at a time
  • Watchlist of 200 codes, email when duties change
  • Not included: Similar EU BTI rulings for any product
  • Monthly CSV files of all codes and duties
  • Keeps working past the quota
Start free

Business

Forwarders and brokers

$109 / month

  • 10,000 AI units 10,000 Quick or 2,000 Precise classifications
  • 500,000 code lookups
  • REST API and MCP server
  • CSV product lists, 500 rows at a time
  • Watchlist of 1,000 codes, email when duties change
  • Similar EU BTI rulings for any product
  • Monthly CSV files of all codes and duties
  • Keeps working past the quota
Start free

Larger volumes

Scale

Platforms and ERPs

$249 / month

  • 24,000 AI units
  • 2,000,000 code lookups
  • Watchlist of 2,000 codes, email when duties change
  • Similar EU BTI rulings for any product
Start free

Bulk

Catalogue enrichment

$599 / month

  • 55,000 AI units
  • 5,000,000 code lookups
  • Watchlist of 5,000 codes, email when duties change
  • Similar EU BTI rulings for any product
Start free

Enterprise

Committed volume

Custom

  • from 250,000 AI units
  • Unlimited lookups
  • Watchlist sized to your catalogue
  • Similar EU BTI rulings for any product
Contact us

Prices in USD; your account page shows your local currency. Past the quota, AI units cost $0.012 each, up to the quota again, once your plan has run for 30 days. Yearly billing: two months free.

Upgrade any time on your account page, paid by card right there. Your API key keeps working.

Who it is for

Importers

Know the code and duty before you order.

Forwarders and brokers

Pre-classify client product lists.

Shops and ERPs

Fill missing CN codes in your catalogue.

AI agents

Real codes instead of guesses.

Questions

Is there a free plan?

Yes. 30 AI units and 100 lookups a day, with the API and the MCP server.

What is an AI unit?

Quick AI costs 1 unit and takes a few seconds. Precise AI costs 5, takes 10 to 30 seconds and adds a confidence and a reason.

What happens at my limit?

Free returns HTTP 429 until the next UTC day. Paid plans keep classifying at $0.012 per extra AI unit, billed with the next invoice, up to twice the quota; past that, and for lookups, HTTP 429 until the 1st of the next month (UTC).

Are the results legally binding?

No. Only a Binding Tariff Information (BTI) from customs is binding.

How current is the data?

Every year since 2016. The current year uses the latest TARIC extraction, October 2026.

Which languages?

Results in German, English and French. Queries in any language.

Does it work with AI agents in the browser?

Yes. Every page offers classify, lookup_code, search_codes and duty_history through WebMCP, so an agent in Chrome calls them instead of reading the page. Signed out, it shares the free daily limit of the website; signed in, it uses your plan.

Can I get a webhook when a watched code changes?

Yes, on plans with the watchlist. Set an HTTPS URL in your account: each change arrives as a POST with JSON {id, event: "watch.changed", created, snapshot, codes: [{code, previousSnapshot, exists, description, duties, url}]}. The header X-Hscode-Signature: t=<unix seconds>,v1=<hex> carries an HMAC-SHA256 of "<t>.<raw body>" with your signing secret. Compute it over the raw body, compare in constant time and reject old timestamps. Answer with 2xx within 10 seconds; we retry once.

Can I call the API from a browser or an Excel add-in?

Yes. /api/v1 answers CORS preflights from any origin and exposes the RateLimit and Retry-After headers. Send your key as Authorization: Bearer; keep it out of public web pages, since anyone who sees it can spend your quota.

Your first CN code is five minutes away

Free account, no credit card.