Search and look up UK commodity codes by keyword or code using the gov.uk Trade Tariff API

domain: api.trade-tariff.service.gov.uk · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Query the public commodities search endpoint (trade-tariff.service.gov.uk/api/v2/search?q={keyword}) with a product description or partial code to get candidate commodity codes.
  2. For a known code, call the commodity detail endpoint (.../api/v2/commodities/{commodity_code}) to retrieve the full JSON:API record including description, chapter/heading hierarchy, and units of measure.
  3. Walk the returned JSON:API 'included' section to resolve related headings/sections/chapters referenced by relationship IDs rather than assuming a flat response.
  4. Confirm which of the multiple similarly-worded commodity codes returned by a keyword search is the correct 10-digit UK Global Tariff code for your product before using it downstream.
  5. For production-scale or higher-volume use, register on the Trade Tariff developer hub (hub.trade-tariff.service.gov.uk) and confirm current API key/authentication requirements, which have changed as the API has been enhanced.

Known gotchas

Related routes

Retrieve applicable import duty rates, VAT, and trade measures for a UK commodity code using the Trade Tariff API's measures data
api.trade-tariff.service.gov.uk · 5 steps · unrated
Retrieve free trade agreement (FTA) preferential tariff rate data for a product/HTS code and partner country via the ITA Trade.gov Tariff Rates API
developer.trade.gov · 5 steps · unrated
Access EU TARIC integrated tariff data (commodity codes, duties, and trade measures) for a product via the European Commission's available data channels
taxation-customs.ec.europa.eu · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans