HTS Lookup API
Machine-readable US import classification data from the official USITC HTS. Free search
returns candidate codes and descriptions with rates locked. Exact rates, duty estimates,
and landed-cost estimates are paid per call with x402 v2 on Base mainnet
(v1 X-PAYMENT fallback).
Endpoints
Search expands headings to 10-digit statistical lines, but free responses omit
general, special, and other rates. Rate limits:
30 free searches/min and 60 paid requests/min per client IP.
| Endpoint | Price | Returns |
|---|---|---|
GET /v1/hts/catalog | Free | Supported product terms and HTS phrases |
GET /v1/hts/search?q=lipstick | Free | Candidate codes and descriptions; rates locked |
GET /v1/hts/3304.10.00.00 | 0.01 USDC | Exact line, rates, units, source |
GET /v1/hts/6109.10.00/duty?value_usd=10000 | 0.01 USDC | MFN duty estimate |
GET /v1/landed-cost?code=6109.10.00&value_usd=10000&freight_usd=500&origin_country=CN | 0.01 USDC | Duty + Section 301 China + MPF/HMF + freight/insurance, total and per unit |
POST /mcp | Free/paid tools | Streamable HTTP MCP (search, exact, duty) |
GET /health | Free | Status |
Try search
curl 'https://hts.epi.me/v1/hts/search?q=lipstick'
Paid call
Without payment the endpoint returns HTTP 402 with an x402 v2 challenge. Pay, then
retry with the base64 PAYMENT-SIGNATURE header. Legacy v1 clients can
send X-X402-Version: 1 and use X-PAYMENT.
curl -i 'https://hts.epi.me/v1/hts/3304.10.00.00'
# 402 Payment Required
# {"x402Version":1,"accepts":[{"scheme":"exact","network":"base", ...}]}
Agent / MCP
Use the private MCP server with four tools: search_hts (free),
get_hts_code, estimate_duty, and
estimate_landed_cost (paid). It surfaces the 402 challenge so an
x402-capable host can pay and retry.
origin_country=CN;
it excludes Section 232, IEEPA, AD/CVD, quotas, FTA preferences, product-specific
exclusions, and other fees. Landed cost uses CBP FY2027 MPF/HMF assumptions and is
not a customs ruling. Classification is fact-specific. Live USDC on Base; paid
calls are final.