# Trade Tariff & Duty Lookup (HTS Code)

> Trade Tariff & Duty Lookup (HTS Code) is a paid API for AI agents from x402helper.xyz, paid per call via x402, $0.039/call, status unknown (last checked 2026-11-28).

Returns import tariff rates and optionally computes landed cost for a given HTS/HS code and country of origin.

## Facts

- Endpoint: GET https://x402helper.xyz/89e509/trade/tariff?utm_source=zero.xyz
- Price: $0.039/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trade-tariff-duty-lookup-hts-code-5f6bb6a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NAtCOltLYjs_gk5UjWAb8

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 trade-tariff-duty-lookup-hts-code-5f6bb6a9
```

Example prompt: What's the current US import tariff rate for HTS code 8471.30 from China, and can you also calculate the landed cost if the customs value is $5,000?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call tariff rate lookup for a specific HTS or HS code and country of origin, especially in agentic workflows where you want to avoid subscription overhead. It also supports optional landed cost calculation in a single call, making it useful for e-commerce, logistics, and trade compliance agents that need duty estimates at the point of decision.

## Known failure modes

- Invalid or malformed HTS/HS code returns an error or empty result
- Unsupported country ISO code may return no data
- Missing required parameters (hts or origin) will cause a 400-level error
- Payment failure (insufficient USDC) results in 402 response before data is returned
- Rate data may be stale if tariff schedules have been updated

## How this service works

X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.

## Output

Returns a JSON object with tariff/duty rate information for the specified HTS or HS code and country of origin, and optionally a calculated landed cost if a customs value was provided. Fields include success status and a result object with the relevant trade data.

## 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": [
      "hts",
      "origin"
     ],
     "properties": {
      "hts": {
       "type": "string",
       "default": null,
       "description": "HTS or HS code, 4 to 10 digits, dots optional"
      },
      "origin": {
       "type": "string",
       "default": null,
       "description": "Country of origin as an ISO code, e.g. CN, MX, DE"
      },
      "customs_value": {
       "type": "number",
       "default": null,
       "description": "Optional entered customs value in USD for landed cost"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trade-tariff-duty-lookup-hts-code-5f6bb6a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402helper.xyz](https://www.zero.xyz/host/x402helper.xyz/llms.txt)
