# Loom Soft Tariff

> Loom Soft Tariff is a paid API for AI agents from api.aiphabrainlab.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-23).

Returns approximate US MFN duty rate plus China Section 301 tariff rate for a given HS code or category alias

## Facts

- Endpoint: GET https://api.aiphabrainlab.com/v1/tariff-rate?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loom-soft-tariff-f69bf245
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OizS0hjeol77ZceoBGCc2

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 loom-soft-tariff-f69bf245
```

Example prompt: What's the total US import duty rate for HS code 851762 — I need both the MFN base rate and the China Section 301 surcharge?

## When to prefer this

Use this endpoint when you need a quick, inexpensive ($0.02) lookup of approximate US MFN and China Section 301 combined tariff rates by HS code or product category alias. It is ideal for pre-trade cost estimation, sourcing decisions, or enriching product data with duty rate information. For a full landed cost calculation including shipping and fees, prefer the Loom Soft Landed endpoint instead.

## Known failure modes

- Invalid or unrecognized HS code returns an error or empty result
- Ambiguous category alias that does not map to a unique HS code may return a default or error
- Rates are approximate and may not reflect the most recent tariff schedule updates
- No data available for non-China-origin Section 301 applicability — returns 0 for section301Rate
- Payment failure via x402 protocol results in 402 response before data is returned

## How this service works

Trade compliance / customs: approximate US import duty (MFN + China Section 301) by HS code or category ($0.02). For freight & sourcing agents — not crypto token checks.

## Output

A JSON object containing the HS code, MFN (most-favored-nation) base duty rate as a decimal, the China Section 301 tariff rate as a decimal, and the combined total ad valorem rate (e.g. {"hsCode":"851762","mfnRate":0,"section301Rate":0.075,"totalAdValorem":0.075})

## 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": [
      "hs"
     ],
     "properties": {
      "hs": {
       "type": "string",
       "description": "HS code or category alias"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hsCode": "851762",
  "mfnRate": 0,
  "section301Rate": 0.075,
  "totalAdValorem": 0.075
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loom-soft-tariff-f69bf245/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiphabrainlab.com](https://www.zero.xyz/host/api.aiphabrainlab.com/llms.txt)
