# HTS/HS Customs Code Classifier

> HTS/HS Customs Code Classifier is a paid API for AI agents from toolsmith-api.dassad10.workers.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Classifies a product from a plain-English description to its 10-digit HTS code and 6-digit HS code, with US duty rates, confidence score, and alternate codes.

## Facts

- Endpoint: GET https://toolsmith-api.dassad10.workers.dev/t/hs/classify
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hts-hs-customs-code-classifier-ef4b1504
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_43a0OxMPc3Yhd3MpO5YgH

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-hs-customs-code-classifier-ef4b1504
```

Example prompt: What is the 10-digit HTS code and US import duty rate for 'men's leather dress shoes with rubber soles, not waterproof'? I need the confidence score and any alternate classifications too.

## When to prefer this

Use this endpoint when you need fast, LLM-grounded HTS/HS classification from a plain-English product description, especially when you also need the US duty rate and special trade program rates in a single call without maintaining a tariff database. Prefer this over manual USITC lookups or generic text search when you want structured JSON with confidence scoring and reasoning.

## Known failure modes

- Ambiguous product description leads to low-confidence classification with multiple alternates
- Description exceeds 500 characters — request rejected
- Invalid destination country ISO code returns an error
- Product is too novel or niche for the LLM to classify reliably
- Payment via x402 fails, blocking the request
- Rate limit or worker timeout on the Cloudflare edge

## How this service works

Classify any product to its HS / HTS customs code from a plain-English description. Expert LLM classification grounded in the live official USITC Harmonized Tariff Schedule: returns the 10-digit HTS code, international HS6, official description path, US duty rate (general + special programs), confidence, reasoning and alternates. JSON response. $0.04 USDC per call, pay via x402, no API key.

## Output

A JSON object containing the 10-digit HTS code, 6-digit international HS code, official USITC description path, US MFN general duty rate, applicable special program duty rates (e.g. GSP, USMCA), a confidence score (0-1), LLM reasoning for the classification, and a list of alternate HTS codes with their descriptions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "desc"
     ],
     "properties": {
      "desc": {
       "type": "string",
       "description": "Plain-English product description, max 500 chars"
      },
      "dest": {
       "type": "string",
       "description": "Destination country ISO code, default US (duty shown is US MFN)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hs6": "9617.00",
  "duty": {
   "usGeneral": "7.2%"
  },
  "htsCode": "9617.00.10.00",
  "reasoning": "Vacuum vessel with steel body...",
  "alternates": [
   {
    "hts": "7323.93.00",
    "note": "if not vacuum-insulated"
   }
  ],
  "confidence": 0.85
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hts-hs-customs-code-classifier-ef4b1504/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolsmith-api.dassad10.workers.dev](https://www.zero.xyz/host/toolsmith-api.dassad10.workers.dev/llms.txt)
