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

Web page: https://hscode.info/en/developers

- OpenAPI spec: https://hscode.info/api/v1/openapi.json
- API: https://hscode.info/api/v1/docs
- MCP server: https://hscode.info/mcp

## First CN code in five minutes

- **Sign in**: Email link, no password.
- **Create a key**: Account › API keys.
- **Call the API**: Send the key as a Bearer token.

## Endpoints

Versioned under /api/v1. Use "latest" as the year for the newest snapshot.

| Endpoint | Returns | Counts as |
| - | - | - |
| POST /api/v1/classify | Top 5 codes for a description, with duties | 1 AI unit (fast) or 5 (accurate) |
| POST /api/v1/classify/batch | Up to 25 descriptions in one call | The same per description |
| GET /api/v1/{lang}/{year}/codes/{code} | One code with hierarchy and duties | Lookup |
| GET /api/v1/{lang}/{year}/search?q= | Search codes and descriptions | Lookup |
| GET /api/v1/{year}/duties/{code} | Import duties of a code | Lookup |
| GET /api/v1/{lang}/{year}/chapters | Chapter list | Lookup |
| GET /api/v1/{lang}/{year}/chapters/{chapter} | All rows of a chapter | Lookup |
| GET /api/v1/snapshots | Languages and yearly snapshots | Lookup |

## Give your AI the EU tariff

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

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

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

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

## Pricing

| Plan | Price per month | AI units | Code lookups | Included |
| - | - | - | - | - |
| Free (Try it out) | $0 | 30 a day | 100 a day | REST API and MCP server |
| Starter (Occasional importers) | $19 | 1,500 / month | 25,000 / month | REST API and MCP server; CSV product lists, 500 rows at a time; Watchlist of 50 codes, email when duties change; Monthly CSV files of all codes and duties; Keeps working past the quota |
| Pro (Importers and shops) | $39 | 3,500 / month | 50,000 / month | REST API and MCP server; CSV product lists, 500 rows at a time; Watchlist of 200 codes, email when duties change; Monthly CSV files of all codes and duties; Keeps working past the quota |
| Business (Forwarders and brokers) | $109 | 10,000 / month | 500,000 / month | 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 |
| Scale (Platforms and ERPs) | $249 | 24,000 / month | 2,000,000 / month | REST API and MCP server; CSV product lists, 500 rows at a time; Watchlist of 2,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 |
| Bulk (Catalogue enrichment) | $599 | 55,000 / month | 5,000,000 / month | REST API and MCP server; CSV product lists, 500 rows at a time; Watchlist of 5,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 |
| Enterprise (Committed volume) | Custom | from 250,000 / month | Unlimited lookups | REST API and MCP server; CSV product lists, 500 rows at a time; Watchlist sized to your catalogue; Similar EU BTI rulings for any product; Monthly CSV files of all codes and duties; Keeps working past the quota |

https://hscode.info/en/pricing.md

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