# US HTS Tariff Code Lookup

> US HTS Tariff Code Lookup is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Classify goods against the US Harmonized Tariff Schedule by keyword or HTS code, returning matching HTS lines with duty rates, units, and footnotes.

## Facts

- Endpoint: GET https://api.agentstools.dev/trade/hts
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-hts-tariff-code-lookup-d79865da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TizaDG9eu0MfDYlf5WQto

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 us-hts-tariff-code-lookup-d79865da
```

Example prompt: What's the HTS classification and duty rate for imported lithium-ion batteries — can you search the US Harmonized Tariff Schedule by keyword 'lithium battery' and return up to 10 matching lines?

## When to prefer this

Use this endpoint when you need to look up US import tariff classifications, duty rates, or HTS codes for specific goods — whether starting from a product description keyword or an existing partial HTS/HS code. Prefer this over general web search when you need structured, authoritative HTS data with duty-rate columns and footnotes in a machine-readable format. Ideal for trade compliance workflows, cost estimation for imports, or building tariff classification tools.

## Known failure modes

- No matching HTS lines found for the given keyword or code — returns empty result set
- Invalid HTS code format (fewer than 4 or more than 10 digits) — returns validation error
- Both 'keyword' and 'hts' omitted — returns error requiring at least one search parameter
- Limit out of range (below 1 or above 60) — returns parameter validation error
- Payment not provided or insufficient — returns 402 Payment Required
- Ambiguous keyword returns too many unrelated results — caller should refine keyword or use a specific HTS code

## How this service works

Classify goods against the US Harmonized Tariff Schedule. Give a keyword or an HTS code and get the matching HTS lines with their duty-rate columns, units and footnotes. The cheap supporting lookup that feeds trade/tariff.

## Output

Returns a list of matching HTS schedule lines including the HTS/HS code, product description, general and special duty rate columns, units of measure, and any applicable footnotes — up to the specified limit (default 20).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "hts": {
       "type": "string",
       "description": "HTS or HS code to expand into its lines, 4 to 10 digits"
      },
      "limit": {
       "type": "integer",
       "maximum": 60,
       "minimum": 1,
       "description": "Max lines to return, default 20"
      },
      "keyword": {
       "type": "string",
       "description": "Product description keyword to search the HTS"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-hts-tariff-code-lookup-d79865da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
