HTS Classification API vs Manual Customs Classification (2026)
An API classifies products into HTS codes in seconds with CBP ruling evidence, while manual classification takes hours and scales poorly. Here is when each approach works best.
The Scale Problem
The US Harmonized Tariff Schedule contains roughly 20,000 ten-digit codes across 99 chapters. The schedule is revised multiple times per year by the USITC, with Section 301 and Section 232 tariff actions adding further complexity. Since 2018, over 30 rounds of tariff modifications have altered rates on thousands of codes.
Manual classification requires a specialist who:
- Understands the product's material composition, function, and end-use
- Knows General Rules of Interpretation (GRI 1-6) and how they interact
- Searches CBP rulings for precedent on similar products
- Tracks tariff revisions and additional duty programs
- Stays current on Section 301/232 exclusions and their expiration dates
Training a customs classification specialist takes 2-3 years. The US has a structural shortage of them. Meanwhile, e-commerce has pushed SKU counts from thousands to millions per importer. A mid-size company importing 5,000 distinct products cannot afford to manually classify and re-classify every item every time tariff schedules change.
Side-by-Side Comparison
| Criterion | Manual (Broker/Specialist) | API (htsapi.dev) |
|---|---|---|
| Speed | 30 min to 2 hours per item | 5-15 seconds per item |
| Cost | $100-200 per classification | $0.05-0.10 per classification |
| Accuracy (common products) | High (depends on specialist) | High (CBP ruling + legal note evidence) |
| Consistency | Varies by person and day | Same evidence path on repeat queries; CBP rulings cited so reviewers can verify |
| Evidence trail | Often verbal or email-only | Structured JSON: rulings, legal notes, duty breakdown |
| Novel products | Human judgment applies GRI | Applies GRI + cites analogous rulings; flags low confidence |
| Ambiguity handling | Asks client questions (email, days) | Returns clarification question (programmatic, instant) |
| Audit readiness | Requires manual record assembly | Every classification logged with full reasoning |
| Section 301/232 coverage | Specialist must track manually | Census duty data updated quarterly with effective rates |
| Scalability | Linear: more SKUs = more hours | Parallel: 10,000 items in minutes |
Where Manual Still Wins
API classification is not a universal replacement for human expertise. Manual classification is still superior for:
- Truly novel products. A product that has no analogous CBP ruling and doesn't fit neatly into existing tariff headings requires GRI analysis and judgment calls that benefit from experience. Think: a new category of wearable medical device that combines electronics, textiles, and sensors.
- Binding ruling requests. If you need a legally binding classification from CBP, a human must prepare and file the ruling request through the eRuling system. The API cannot do this.
- Protests and disputes. When CBP challenges a classification, the protest process involves legal arguments, prior disclosure, and negotiation. This requires a licensed customs broker or trade attorney.
- Classification of sets and kits. GRI 3 (sets put up for retail sale) involves subjective "essential character" determinations where experienced classifiers have an edge.
Where API Wins Decisively
For the majority of classification work — the repetitive, high-volume, well-precedented cases that make up 80-90% of an importer's catalog — an API is objectively better:
- Volume. Classify 10,000 SKUs in an afternoon instead of over several weeks. Re-classify the entire catalog when tariff schedules change, instead of hoping nothing was affected.
- Consistency. The same product description always maps to the same HTS code. No variation between analysts, shifts, or moods. This matters for CBP audits where inconsistent classification across shipments raises flags.
- Cost at scale. At $0.05-0.10 per classification versus $100-200, the economics are not close. A catalog of 5,000 products costs $250-500 via API versus $500,000-1,000,000 through manual classification.
- Speed. A product manager can get an HTS code and duty rate estimate in seconds, not days. This unlocks real-time landed cost calculations, sourcing decisions, and pricing models.
- Audit trail. Every API response includes the CBP rulings cited, legal notes applied, confidence level, and census-based effective duty rates. This structured evidence is immediately usable for reasonable care documentation.
How htsapi.dev Combines Both Approaches
The htsapi.dev classification endpoint is not a simple lookup table or keyword matcher. It uses an agent-based architecture that mirrors how an experienced customs specialist works:
- Ruling precedent first. The agent searches 134K CBP ruling letters for similar products. When a ruling clearly applies, it follows authoritative precedent.
- GRI reasoning. When precedent is thin, the agent reads Section/Chapter/Heading notes and applies the General Rules of Interpretation to pick the right heading.
- Schedule verification. Older rulings often cite codes that have since been restructured. The agent verifies every committed code against the current 2026 schedule and finds the current equivalent.
- Clarification. When candidates diverge — e.g., the product could be mechanical or electric — the API returns a targeted question instead of guessing.
- Evidence packaging. The response includes cited rulings (with links to rulings.cbp.gov), relevant legal notes, and Census Bureau effective duty rates.
The result: AI does the heavy lifting — searching, matching, reasoning — while providing full transparency. The human reviews the evidence, confirms the classification, and escalates edge cases to a specialist. Best of both approaches.
Real Examples
Input: "Disposable nitrile rubber examination gloves, powder-free, non-sterile, imported from Malaysia"
Result: 4015.12.10.00 — Gloves, mittens and mitts, for surgical purposes. Confidence: high.
Evidence: Cites CBP Ruling N304853 on nitrile examination gloves from Malaysia. General duty: Free. Response time: 3 seconds.
Input: "Decorative wall clock, round, 12 inches, from China"
Clarification returned: "Is this clock electrically operated (battery/quartz) or mechanically operated (wind-up/spring)?"
Why: Electric clocks fall under 9105.21 (wall clocks, electrically operated) while mechanical clocks fall under 9105.11. The duty rates differ. Instead of guessing, the API asks the distinguishing question — the same question a skilled classifier would ask.
Input: "Smart fitness ring, titanium body, optical heart rate sensor, sleep tracking, Bluetooth, from China"
Result: 9031.80.80.00 — Other measuring or checking instruments. Confidence: medium.
Evidence: Cites CBP Ruling N306418 classifying a smart ring as a measuring instrument. Legal notes explain why it is not classified as jewelry (Chapter 71) — the ring's essential character is its measuring function, not adornment. Census effective rate from China: includes Section 301 additional duties.
Cost Comparison
The cost difference between manual and API classification is significant at any volume, but the breakeven is almost immediate.
| Volume | Manual ($150 avg.) | API ($0.08 avg.) | Savings |
|---|---|---|---|
| 10 products | $1,500 | $0.80 | $1,499 |
| 50 products | $7,500 | $4.00 | $7,496 |
| 500 products | $75,000 | $40 | $74,960 |
| 5,000 products | $750,000 | $400 | $749,600 |
| 50,000 products | $7,500,000 | $4,000 | $7,496,000 |
The breakeven point: roughly 1 classification. Even a single API call at $0.08 versus a broker's $150 per-item research fee saves money. The real question is not cost — it is whether your product is common enough for API classification to be accurate, or novel enough to warrant manual research.
Getting Started
Try it free on the web
Visit htsapi.dev and type a product description into the demo. No account required. You will see the HTS code, duty rates, CBP ruling citations, and confidence level in seconds.
API access
Buy a credit pack to get an API key. Each /classify call costs 1 credit. All other endpoints (HTS search, ruling search, FTA rates, screening) are free.
Python example
import requests resp = requests.post( "https://htsapi.dev/v1/classify", headers={"X-API-Key": "YOUR_API_KEY"}, json={ "description": "stainless steel insulated water bottle 500ml", "country_of_origin": "China" } ) data = resp.json() top = data["candidates"][0] print(f"HTS: {top['hts_code']}") print(f"Duty: {top['general_duty']}") print(f"Confidence: {top['confidence']}") # Check effective duty rate from Census data if top.get("census_duties"): census = top["census_duties"] print(f"Effective rate: {census['total_effective_rate_pct']}%") # Check if the API needs more info if data.get("clarification"): print(f"Question: {data['clarification']}")
Frequently Asked Questions
Not entirely. An API handles the classification step — mapping product descriptions to HTS codes — with high accuracy and full evidence trails. But customs brokers do more than classify: they file entries, manage bonds, handle protests, and navigate CBP relationships. The best approach is using the API for classification at scale while keeping a broker for entry filing, binding rulings, and complex disputes.
When no matching CBP ruling exists, the API applies General Rules of Interpretation (GRI) using the product's material, function, and end-use characteristics. It searches across 134K rulings for analogous products, cites relevant legal notes, and provides a confidence score. For truly novel products, the API returns a clarification question and lower confidence, signaling that human review is warranted.
Binding rulings (CBP Ruling Letters) must be requested by a human importer or broker through CBP's eRuling system. The API cannot file binding ruling requests. However, it searches 134K existing binding rulings to find precedent for your product, which significantly speeds up the research phase if you decide to pursue a binding ruling.
CBP does not certify any classification method — manual or automated. The importer of record is always responsible for correct classification under 19 USC 1484. What matters is demonstrating reasonable care. API classification with documented evidence trails (CBP ruling citations, legal notes, duty rate sources) supports a reasonable care defense just as well as — and often better than — a broker's verbal recommendation.
The same thing that happens when a broker gets it wrong: you may owe additional duties, penalties, or interest. The difference is that the API provides a confidence score and evidence trail for every classification, making it easier to identify which items need human review before filing. Low-confidence results should always be reviewed by a qualified specialist.