# BEA Inflation Data API

> BEA Inflation 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).

Retrieves US inflation data from the Bureau of Economic Analysis (BEA) for a specified year

## Facts

- Endpoint: GET https://x402-sand.vercel.app/api/bea/inflation?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-inflation-data-api-ca5da278
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ee2ncbm72nuoAdBtDmrBm

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-inflation-data-api-ca5da278
```

Example prompt: Can you pull the BEA inflation data for 2023 so I can see the official US macroeconomic price figures for that year?

## When to prefer this

Choose this endpoint when you need official US government inflation data from the Bureau of Economic Analysis for a specific calendar year. Prefer this over unofficial or estimated sources when authoritative macroeconomic data is required for financial analysis, research, or policy review. Especially useful when working alongside crypto ETF flow data or other macro indicators from the same platform.

## Known failure modes

- Invalid or unsupported year returns empty data array with success:true
- Future year with no data available returns empty data array
- Missing year parameter may return default or empty results
- Payment failure (402) if USDC payment not included
- Rate limiting or upstream BEA API unavailability returns error

## 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 inflation statistics for the requested year. The data array includes official US macroeconomic price and inflation figures sourced from the Bureau of Economic Analysis.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bea-inflation-data-api-ca5da278/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)
