# BEA US Trade Data via ETF & Macro Intelligence

> BEA US Trade Data via ETF & Macro Intelligence is a paid API for AI agents from x402-etf-macro-intelligence.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Fetches US Bureau of Economic Analysis (BEA) trade balance and goods/services trade data by year and indicator.

## Facts

- Endpoint: GET https://x402-etf-macro-intelligence.vercel.app/api/bea/trade?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bea-us-trade-data-via-etf-macro-intelligence-cee85704
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B0BLMTW-vwUozy6o0qxAc

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 bea-us-trade-data-via-etf-macro-intelligence-cee85704
```

Example prompt: Pull the BEA trade balance for goods (BalGds) for the year 2024 so I can see where the US trade deficit stands.

## When to prefer this

Use this endpoint when you need structured, programmatic access to US BEA trade balance data filtered by year and specific trade indicator, especially in macro-aware crypto or institutional finance workflows where BEA data is needed alongside ETF flow analysis.

## Known failure modes

- Invalid or unsupported year returns empty data array
- Unrecognized indicator value returns empty or null data
- Missing required query parameters may return an error or empty response
- BEA upstream data unavailability can cause empty data arrays
- Network or server errors on the Vercel deployment return HTTP 5xx

## How this service works

Crypto ETF flows, institutional fund data, and US macroeconomic events.

## Output

Returns a JSON object with a success flag, the endpoint path, and a data array containing BEA trade statistics for the requested year and indicator (e.g. balance of goods figures).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "year": {
       "type": "string",
       "description": "Example value: 2026"
      },
      "indicator": {
       "type": "string",
       "description": "Example value: BalGds"
      }
     },
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {}
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [],
  "success": true,
  "endpoint": "/api/bea/trade"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bea-us-trade-data-via-etf-macro-intelligence-cee85704/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-etf-macro-intelligence.vercel.app](https://www.zero.xyz/host/x402-etf-macro-intelligence.vercel.app/llms.txt)
