# HS Code Lookup & Product Classification

> HS Code Lookup & Product Classification is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0324/call, status unknown (last checked 2026-10-12).

Classifies a product description into Harmonized System (HS) commodity codes, returning primary code, chapter, section, and alternative classifications with confidence levels.

## Facts

- Endpoint: GET https://api.strale.io/x402/hs-code-lookup?utm_source=zero.xyz
- Price: $0.0324/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-ab0cb46b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mFG8JFEu-yF59aC84aFDr

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 api-strale-io-ab0cb46b
```

Example prompt: What's the HS code for 'stainless steel kitchen knives'? I need the primary code, chapter, and any alternative classifications with confidence scores for a customs declaration.

## When to prefer this

Use this endpoint when you need to classify a product for international trade, customs declarations, import/export compliance, or tariff determination and want confidence-scored alternatives rather than a single guess. Prefer this over manual lookup when automating supply chain workflows or e-commerce cross-border shipping.

## Known failure modes

- Product description too vague or ambiguous — returns low-confidence results or multiple alternatives
- Unrecognized product category — returns no match or generic fallback
- Missing required 'product' query parameter — returns validation error
- Service unavailable or payment failure — returns 402 or 5xx error
- Very niche or proprietary product names not in HS taxonomy — may misclassify

## How this service works

Classify a product into Harmonized System (HS) commodity codes. Returns primary HS code, chapter, section, and alternative classifications with confidence levels.

## Output

Returns the primary HS code with its chapter and section, plus a list of alternative HS classifications each with associated confidence levels, enabling trade compliance and customs filing decisions.

## Example request

```json
{
 "product": "stainless steel kitchen knives"
}
```

## 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": [
      "product"
     ],
     "properties": {
      "product": {
       "type": "string",
       "description": "Product description to classify"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-ab0cb46b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
