# AgentRXI US Trade Data

> AgentRXI US Trade Data is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-15).

Returns US import/export statistics from official Census data — by HS product code (top partner countries, value, share, YTD) or by country (trade balance, top products), for the latest or any historical month.

## Facts

- Endpoint: GET https://agentrxi.com/v1/trade?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-us-trade-data-bf75d96a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__ukPLvEeVQ76RCcNif4ds

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 agentrxi-us-trade-data-bf75d96a
```

Example prompt: What are the top countries the US imported cars from last month? Use HS code 8703 and show me the top 10 by value.

## When to prefer this

Use this endpoint when you need authoritative, official US trade statistics from Census Bureau data — particularly for HS-code-level product analysis, bilateral trade balances, or historical monthly breakdowns. Prefer this over web-scraped or estimated trade data when accuracy and official sourcing matter. It is well-suited for supply chain research, economic analysis, policy work, or competitive intelligence about import/export flows.

## Known failure modes

- Invalid or unsupported HS code returns an error or empty result
- Country name not recognized — use standard English country names
- Month out of range or data not yet published returns no data
- Missing required query parameters (no hs and no country) may return aggregate US totals or an error
- Rate limiting or payment failure (x402) if USDC balance is insufficient

## How this service works

US imports and exports from official Census trade data: by product (HS code) the top partner countries with value, share and year-to-date; by country the trade balance and top products; or US totals, for the latest month or any month.

## Output

A JSON object containing trade statistics sourced from US Census data: for HS-code queries, the top partner countries with trade value, percentage share, and year-to-date totals; for country queries, the bilateral trade balance and leading traded products; for US totals, aggregate import/export figures — all for the specified month or the latest available period.

## 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",
     "properties": {
      "hs": {
       "type": "string",
       "description": "2, 4 or 6-digit HS code, e.g. 8703 cars"
      },
      "flow": {
       "type": "string",
       "description": "imports (default) or exports"
      },
      "limit": {
       "type": "integer"
      },
      "month": {
       "type": "string",
       "description": "YYYY-MM, default latest"
      },
      "country": {
       "type": "string",
       "description": "Partner country name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentrxi-us-trade-data-bf75d96a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
