# HTS Classify — HS/HTS10 Tariff Code Classifier

> HTS Classify — HS/HTS10 Tariff Code Classifier is a paid API for AI agents from hts-classify.x402supply.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-13).

Classifies a free-text product description into the top candidate HTS10 tariff codes using BM25 retrieval over the USITC HTS schedule, returning parent-chain descriptions, general duty rates, and confidence scores.

## Facts

- Endpoint: POST https://hts-classify.x402supply.com/tools/classify?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hts-classify-hs-hts10-tariff-code-classifier-af871972
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QgDw0WcMBo8QGhIvJhRVU

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 hts-classify-hs-hts10-tariff-code-classifier-af871972 -d '<json body>'
```

Example prompt: Can you classify this product for HTS tariff purposes: 'stainless steel kitchen knives with wooden handles, set of 6' — give me the top 3 candidate HTS10 codes with their duty rates and confidence scores, and note the country of origin is China.

## When to prefer this

Choose this endpoint when you need fast, deterministic HTS/HS tariff code suggestions from a product description without calling a live customs authority. It is ideal for pre-classification screening, duty rate estimation during sourcing, or populating import paperwork drafts. Prefer it over LLM-only guesses because it retrieves directly from the authoritative USITC HTS schedule with BM25 scoring and heading-agreement boosting. Not suitable as a final customs ruling — always confirm with a licensed broker.

## Known failure modes

- Description too vague or ambiguous — returned codes may have low confidence scores
- Description exceeds 500 characters — request rejected with validation error
- No closely matching HTS heading found — low-scoring or unexpected candidates returned
- origin_hint not recognized — ignored silently, classification proceeds without it
- top_k out of range (must be 1–10) — request rejected with validation error

## How this service works

Classify a product description into candidate HS/HTS10 tariff codes. Deterministic BM25 retrieval over the USITC HTS schedule with heading-agreement boosting, returning the full parent-chain description, general duty rate, and a score-gap confidence per candidate. Not a customs ruling — always includes a disclaimer to verify with a licensed broker.

## Output

Returns an ordered list of up to 10 candidate HTS10 tariff codes, each with: the full parent-chain schedule description, the general duty rate, and a score-gap confidence value. Also includes a disclaimer noting the result is not a customs ruling and should be verified with a licensed broker.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "options": {
   "type": "object",
   "properties": {
    "top_k": {
     "type": "integer",
     "default": 3,
     "maximum": 10,
     "minimum": 1
    },
    "origin_hint": {
     "type": "string",
     "maxLength": 100
    }
   },
   "additionalProperties": false
  },
  "description": {
   "type": "string",
   "maxLength": 500,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "candidates": [
   {
    "hs6": "6109.10",
    "hts10": "6109.10.00.12",
    "confidence": 0.95,
    "duty_general": "",
    "reasoning_short": "Matched terms [men, s, knitted, cotton, t, shirt] against \"Men's (338)\" (HS6 6109.10).",
    "description_path": "T-shirts, singlets, tank tops and similar garments, knitted or crocheted: > Of cotton > Men's or boys': > Other T-shirts: > Men's (338)"
   },
   {
    "hs6": "6109.10",
    "hts10": "6109.10.00.14",
    "confidence": 0.915,
    "duty_general": "",
    "reasoning_short": "Matched terms [men, s, knitted, cotton, t, shirt] against \"Boys' (338)\" (HS6 6109.10).",
    "description_path": "T-shirts, singlets, tank tops and similar garments, knitted or crocheted: > Of cotton > Men's or boys': > Other T-shirts: > Boys' (338)"
   }
  ],
  "disclaimer": "Informational classification aid — not a customs ruling. Verify with a licensed customs broker for binding classification."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hts-classify-hs-hts10-tariff-code-classifier-af871972/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hts-classify.x402supply.com](https://www.zero.xyz/host/hts-classify.x402supply.com/llms.txt)
