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:

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

CriterionManual (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:

Honesty note: Any vendor that claims their API eliminates the need for customs brokers entirely is overselling. Brokers handle entry filing, bonds, protests, and CBP relationships — none of which a classification API addresses.

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:

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:

  1. Ruling precedent first. The agent searches 134K CBP ruling letters for similar products. When a ruling clearly applies, it follows authoritative precedent.
  2. 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.
  3. 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.
  4. Clarification. When candidates diverge — e.g., the product could be mechanical or electric — the API returns a targeted question instead of guessing.
  5. 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

Example 1 — Instant Classification

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.

Example 2 — Clarification Needed

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.

Example 3 — Novel Product with Ruling Precedent

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.

VolumeManual ($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.

Practical approach: Use the API for your full catalog. Review any result with confidence below "high" manually. For most importers, that means 80-90% of products are handled automatically and 10-20% get escalated to a specialist — at a fraction of the cost of classifying everything manually.

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

Can an API fully replace a customs broker?

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.

How does the API handle products with no CBP precedent?

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.

What about binding rulings?

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.

Is API classification accepted by CBP?

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.

What if the API gets it wrong?

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.

Related guides