# Country Trade Data Lookup

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

Returns top exports, top imports, trade balance, and key trading partners for a given country using World Bank data.

## Facts

- Endpoint: GET https://api.strale.io/x402/country-trade-data
- Price: $0.216001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-8fc7aaa6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BWHRJ3xGpq8K1x33CEfIH

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-8fc7aaa6
```

Example prompt: Pull up the trade data for Germany — I want to see its top exports, top imports, trade balance, and main trading partners. Use country code DE and get the most recent available year.

## When to prefer this

Use this endpoint when you need a concise, structured trade profile for a specific country — including exports, imports, balance, and partners — without having to query and aggregate World Bank data yourself. Ideal for economic research agents, trade analysis dashboards, or any workflow needing country-level trade summaries.

## Known failure modes

- Invalid or unsupported country_code returns an error
- No data available for the requested year returns empty or fallback response
- World Bank API unavailability may cause degraded results
- Missing required country_code parameter returns validation 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 data for the specified country including top export and import categories, trade balance figures, and a breakdown of key trading partner countries, sourced from the World Bank API and embedded datasets.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "year": 2022,
   "country_code": "DE"
  }
 }
}
```

## 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": [
      "country_code"
     ],
     "properties": {
      "year": {
       "type": "number"
      },
      "country_code": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-8fc7aaa6/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)
