# HTS Tariff Lookup

> HTS Tariff Lookup is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Look up US Harmonized Tariff Schedule (HTS) codes to retrieve import duty rates, tariff descriptions, and unit classifications for a given HTS number or product query.

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/hts-tariff-lookup?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hts-tariff-lookup-f342af2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xCnBSfVaAVZIncAcwBspU

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-tariff-lookup-f342af2d
```

Example prompt: Look up the US import tariff rates for HTS code 8517 — I need the general duty rate, any other rates, and the official tariff description.

## When to prefer this

Use this endpoint when you need quick, per-call HTS tariff lookups without signing up for an account or obtaining API keys — ideal for AI agents performing trade compliance checks, import cost estimation, or customs classification in automated workflows. Prefer this over full CBP or USITC APIs when low-latency, pay-per-use access via USDC micropayments (x402) is acceptable and you only need duty rates and descriptions for specific HTS codes.

## Known failure modes

- Invalid or non-existent HTS code returns empty results array
- Malformed query string may return no matches
- Payment failure (x402) if insufficient USDC balance on Base
- Rate-limiting or server unavailability from dynamic DNS host
- Query too ambiguous may return multiple unrelated HTS entries

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a list of matching HTS entries, each with the full HTS number, tariff description, general duty rate (e.g. 'Free' or percentage), other duty rate (e.g. '30%'), and units of measure (e.g. 'No.'). The response is JSON with a 'query' echo and a 'results' array.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "8517",
  "results": [
   {
    "htsno": "8456.11.70.00",
    "other": "30%",
    "units": [
     "No."
    ],
    "general": "Free",
    "description": "Of a kind used solely or principally for the manufacture of printed circuits..."
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hts-tariff-lookup-f342af2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
