# BEA International Investment Position Data

> BEA International Investment Position Data 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).

Retrieves US Bureau of Economic Analysis (BEA) international investment position data, including cross-border capital flows and balance of payments statistics, filtered by year.

## Facts

- Endpoint: GET https://x402-etf-macro-intelligence.vercel.app/api/bea/international-investment?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-international-investment-position-data-5b7b8072
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rWrJSLmj3n_S85P16tV7u

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-international-investment-position-data-5b7b8072
```

Example prompt: Pull the BEA international investment position data for 2023 so I can see the US cross-border capital flows and net foreign asset position.

## When to prefer this

Choose this endpoint when you need structured, programmatic access to US Bureau of Economic Analysis international investment position data with per-call micropayment pricing, especially in macro research workflows analyzing cross-border capital flows alongside crypto ETF institutional data. Prefer over direct BEA API access when you want a unified macro intelligence platform with consistent JSON formatting.

## Known failure modes

- Invalid or future year parameter returns empty data array with success:true
- BEA upstream data unavailability may return empty results
- Missing required year parameter may default to a recent year or return an error
- Rate limiting or payment failure returns 402 status requiring USDC micropayment

## 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 international investment position records for the requested year, including metrics on US assets abroad, foreign assets in the US, and net international investment positions.

## 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"
      }
     },
     "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/international-investment"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bea-international-investment-position-data-5b7b8072/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)
