# US HTS Tariff Schedule Lookup

> US HTS Tariff Schedule Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.0018/call, status unknown (last checked 2026-09-13).

Look up or search the US Harmonized Tariff Schedule (HTS/HS codes) by exact code or free-text product description, returning duty rates and classification details.

## Facts

- Endpoint: GET https://2s.io/api/trade/tariff
- Price: $0.0018/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-hts-tariff-schedule-lookup-098706e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z9im1pIe49PdEK5Bc-C2v

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-schedule-lookup-098706e9
```

Example prompt: What's the HTS code and duty rate for 'electric toothbrushes' — search the US tariff schedule and show me the top 5 matches including their general and special duty rates.

## When to prefer this

Use this endpoint when you need authoritative, USITC-sourced HTS/HS code classification or duty rate data for US import/export. Prefer this over generic web search when you need structured tariff data with exact duty rates, statistical suffixes, and hierarchical heading paths — especially for ERP item setup, customs compliance, or trade classification workflows.

## Known failure modes

- No matching results for an obscure or misspelled product query — returns empty list
- Invalid HTS code format may return no results or an error
- Limit parameter outside 1–50 range may be rejected or clamped
- Very broad queries may return low-relevance results at the top of the ranked list

## How this service works

Look up or search the US Harmonized Tariff Schedule (HTS / HS codes). Pass `code` for an exact HTS number (dots optional) — returns that line plus its 10-digit statistical suffixes with duty rates. Or pass `query` for free-text search (e.g. 'electric toothbrush', 'roasted coffee') → ranked candidate HS codes by hierarchical heading. Each result: htsno, chapter, description, full heading path, units, and duty rates (general/MFN, special/FTA, column-2). ~29.6k lines, public-domain USITC data. The deterministic backbone for tariff classification in import/export and ERP item setup.

## Output

Returns a ranked list of matching HTS entries, each with: HTS number (htsno), chapter, full description, hierarchical heading path, units of measure, and duty rates (general/MFN, special/FTA, and column-2). Exact code lookups also include 10-digit statistical suffixes.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": 5,
   "query": "electric toothbrush"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "properties": {
      "code": {
       "type": "string",
       "description": "Exact HTS number, dots optional (e.g. 0101.21.00)."
      },
      "limit": {
       "type": "integer",
       "description": "1–50, default 20 (search mode)."
      },
      "query": {
       "type": "string",
       "description": "Free-text product description to search."
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "properties": {
   "ok": {
    "type": "boolean"
   },
   "items": {
    "type": "array",
    "items": {
     "type": "object",
     "properties": {
      "duty": {
       "type": "object",
       "properties": {
        "other": {
         "type": "string"
        },
        "general": {
         "type": "string"
        },
        "special": {
         "type": "string"
        }
       }
      },
      "htsno": {
       "type": "string"
      },
      "units": {
       "type": "array",
       "items": {}
      },
      "chapter": {
       "type": "string"
      },
      "heading": {
       "type": "string"
      },
      "description": {
       "type": "string"
      }
     }
    }
   },
   "total": {
    "type": "integer"
   },
   "source": {
    "type": "object",
    "properties": {
     "url": {
      "type": "string"
     },
     "license": {
      "type": "string"
     },
     "provider": {
      "type": "string"
     }
    }
   }
  }
 },
 "example": {
  "ok": true,
  "items": [
   {
    "duty": {
     "other": "Free",
     "general": "Free",
     "special": ""
    },
    "htsno": "0901.21.00",
    "units": [],
    "chapter": "09",
    "heading": "Coffee, whether or not roasted… > Coffee, roasted: > Not decaffeinated",
    "description": "Not decaffeinated"
   }
  ],
  "total": 1,
  "source": {
   "url": "https://hts.usitc.gov",
   "license": "US Government work, public domain (17 U.S.C. §105).",
   "provider": "US Harmonized Tariff Schedule (USITC)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-hts-tariff-schedule-lookup-098706e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
