# BEA GDP Data API

> BEA GDP Data API is a paid API for AI agents from x402-sand.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-03).

Returns US GDP data from the Bureau of Economic Analysis (BEA) for a specified year

## Facts

- Endpoint: GET https://x402-sand.vercel.app/api/bea/gdp?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bea-gdp-data-api-0b34d634
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oDZTpE16l03am2RGHcN9x

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-gdp-data-api-0b34d634
```

Example prompt: Can you pull the US GDP data from the BEA for 2024 so I can see the latest annual economic output figures?

## When to prefer this

Choose this endpoint when you need official US GDP data sourced directly from the Bureau of Economic Analysis, particularly in a macro intelligence context alongside crypto ETF flows. Prefer this for annual GDP lookups by year when you need structured JSON output for programmatic analysis.

## Known failure modes

- Invalid or future year returns empty data array with success:true
- Missing year parameter may return default or empty dataset
- BEA upstream unavailable returns error or empty data
- Rate limiting or payment failure returns 402 status

## 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 US GDP statistics from the BEA for the requested year. The data array may include GDP values, time periods, and related macroeconomic metrics.

## 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/gdp"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bea-gdp-data-api-0b34d634/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-sand.vercel.app](https://www.zero.xyz/host/x402-sand.vercel.app/llms.txt)
