# Customs Tariff Lookup (UK Trade Tariff + US HTS)

> Customs Tariff Lookup (UK Trade Tariff + US HTS) is a paid API for AI agents from hs-tariff-production.up.railway.app, paid per call via x402, $0.004/call, status unknown (last checked 2026-12-01).

Looks up import duty rates and VAT for goods entering the UK or US by HS/commodity code or keyword, returning MFN, preferential, and special duty rates.

## Facts

- Endpoint: GET https://hs-tariff-production.up.railway.app/v1/tariff/lookup?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/customs-tariff-lookup-uk-trade-tariff-us-hts-6b66c564
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-1GCTx_PgtxCT_uaeKjtf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability customs-tariff-lookup-uk-trade-tariff-us-hts-6b66c564
```

Example prompt: What's the UK import duty and VAT rate for portable laptops (HS code 8471300000) imported from China, and what's the equivalent US HTS general duty rate for the same goods?

## When to prefer this

Use this endpoint when an agent needs to classify goods by HS/commodity code or determine import duty rates for shipments into the UK or US. Prefer it over general web search when you need structured, machine-readable duty rates directly from UK Trade Tariff and USITC HTS sources. Ideal for e-commerce landed cost calculations, customs compliance checks, sourcing decisions, and trade route analysis involving UK or US imports.

## Known failure modes

- Invalid or unrecognised HS/commodity code returns no results or an error
- Keyword search with ambiguous terms may return many candidate codes requiring further disambiguation
- Preferential UK rates only returned when a valid ISO2 origin country is supplied
- US column-2 or special rates may be empty if none apply to the code
- Rate data may lag behind the latest tariff schedule updates
- Codes with fewer than 6 digits may not resolve to a specific commodity

## How this service works

Customs tariff lookup by HS/commodity code or keyword: UK Global Tariff third-country duty, preferential rates by origin country where given, VAT and measure types from the UK Trade Tariff, and US HTS general (MFN), special and column-2 duty rates with units from the USITC Harmonized Tariff Schedule. Keyword search returns candidate codes. Use when an agent must classify goods (HS/commodity code) or find the import duty for shipping goods into the UK or the US.

## Output

Returns a JSON object with UK data (commodity code, description, third-country duty %, preferential rates by origin, VAT rate, measure types) and US data (HTS number, description, general/MFN rate, special rates, column-2 rate, units), plus a status field and legal links. Keyword searches return candidate codes to choose from.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "code": {
       "type": "string",
       "description": "HS / commodity code (6-10 digits)"
      },
      "query": {
       "type": "string",
       "description": "Keyword search instead of a code, e.g. laptop"
      },
      "origin": {
       "type": "string",
       "description": "Optional ISO2 origin country for UK preferential rates"
      },
      "markets": {
       "type": "string",
       "description": "uk, us or uk,us (default both)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "uk": {
   "vat": "20%",
   "commodity": "8471300000",
   "description": "Portable automatic data-processing machines ...",
   "third_country_duty": "0.00 %"
  },
  "us": [
   {
    "htsno": "8471.30.01.00",
    "other": "35%",
    "general": "Free",
    "special": "",
    "description": "Portable automatic data processing machines ..."
   }
  ],
  "code": "8471300000",
  "legal": {
   "terms": "https://hs-tariff-production.up.railway.app/terms",
   "privacy": "https://hs-tariff-production.up.railway.app/privacy"
  },
  "status": "ok",
  "use_when": "Use when an agent must classify goods (HS/commodity code) or find the import duty for shipping goods into the UK or the US."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/customs-tariff-lookup-uk-trade-tariff-us-hts-6b66c564/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hs-tariff-production.up.railway.app](https://www.zero.xyz/host/hs-tariff-production.up.railway.app/llms.txt)
