# Strale Country Trade Data

> Strale Country Trade Data is a paid API for AI agents from api.strale.io, paid per call via x402, $0.216/call, status unknown (last checked 2026-09-14).

Returns international trade statistics (imports, exports, trade balance) for a given country and optional year

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/country-trade-data
- Price: $0.216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-country-trade-data-1d7ccf0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9e8s9jXiAOJddsshV1-E1

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 strale-country-trade-data-1d7ccf0c
```

Example prompt: Can you pull the trade data for Japan — I want to see its imports and exports, preferably for 2022?

## When to prefer this

Choose this endpoint when you need auditable, verifiable country-level trade data (imports, exports, balance) with a cryptographic audit trail. Particularly useful for compliance, research, or financial reporting workflows where data provenance matters. Prefer this over generic web scraping when you need structured, consistently formatted trade statistics across 27 countries with per-call audit records.

## Known failure modes

- Invalid or unsupported country_code returns an error — only country codes from supported set of 27 countries are accepted
- Missing required country_code parameter returns a 400 validation error
- Requesting an unsupported or future year may return no data or an error
- Payment failure or insufficient USDC balance prevents the call from completing (x402 payment required)
- Network timeout or upstream data unavailability returns a 5xx error

## How this service works

Get trade data for a country: top exports/imports, trade balance, trading partners. World Bank API + embedded data.

## Output

Returns structured trade statistics for the requested country including import values, export values, trade balance, and potentially year-over-year breakdowns. Each response includes a cryptographic audit record with chain hashing for verifiability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "country_code"
 ],
 "properties": {
  "year": {
   "type": "number"
  },
  "country_code": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "top_exports": {
  "type": "array"
 },
 "top_imports": {
  "type": "array"
 },
 "total_exports_usd": {
  "type": "number"
 },
 "total_imports_usd": {
  "type": "number"
 },
 "trade_balance_usd": {
  "type": "number"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-country-trade-data-1d7ccf0c/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)
