HTS Lookup API
Machine-readable US import classification data from the official USITC HTS. Search is free. Exact codes and duty estimates are paid per call with x402 v1 on Base Sepolia.
Endpoints
| Endpoint | Price | Returns |
|---|---|---|
GET /v1/hts/search?q=lipstick | Free | Candidate HTS lines and MFN rates |
GET /v1/hts/3304.10.00.00 | 0.01 test USDC | Exact line, rates, units, source |
GET /v1/hts/6109.10.00/duty?value_usd=10000 | 0.01 test USDC | MFN duty estimate |
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 v1 challenge. Pay, then
retry with the base64 X-PAYMENT header.
curl -i 'https://hts.epi.me/v1/hts/3304.10.00.00'
# 402 Payment Required
# {"x402Version":1,"accepts":[{"scheme":"exact","network":"base-sepolia", ...}]}
Agent / MCP
Use the private MCP server with three tools: search_hts (free),
get_hts_code and estimate_duty (paid). It surfaces the 402
challenge so an x402-capable host can pay and retry.
Not official, not legal advice. Rates are MFN general only and
exclude Section 301, IEEPA, AD/CVD, quotas, and fees. Classification is fact-specific.
Testnet only; no real funds.