# FRED Macro Economic API Gateway

> FRED Macro Economic API Gateway is a paid API for AI agents from dawn-dew-d9ae.reigharnold.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches Federal Reserve Economic Data (FRED) macroeconomic observations via a pay-per-call USDC microtransaction gateway designed for AI agents.

## Facts

- Endpoint: GET https://dawn-dew-d9ae.reigharnold.workers.dev/api/econ
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fred-macro-economic-api-gateway-b05efab6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DkrCAiHtb2dI6cVt20vmQ

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 fred-macro-economic-api-gateway-b05efab6
```

Example prompt: Pull the latest UNRATE unemployment rate observations from the FRED macro data gateway so I can see how employment has been trending.

## When to prefer this

Choose this endpoint when an AI agent needs programmatic, pay-as-you-go access to FRED macroeconomic time-series data without managing API keys or subscriptions. It is ideal for agentic pipelines that require real economic indicators (unemployment, CPI, GDP, interest rates) on-demand with USDC microtransaction billing, especially in automated or low-touch workflows where x402 payment protocol is already supported.

## Known failure modes

- Payment not processed — USDC microtransaction via x402 protocol fails, blocking data access
- Invalid or unrecognized FRED series identifier returns empty observations array
- Network timeout or Cloudflare Worker downtime results in no response
- Malformed request missing required input fields returns an error
- Rate limiting or insufficient USDC balance prevents repeated calls

## How this service works

Automated macro observations pipeline gated via Base USDC microtransactions. Designed for AI agents.

## Output

Returns a JSON object containing the requested FRED economic series identifier, a success status, and an array of time-series observations (data points) for the specified macroeconomic indicator.

## 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": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "series": "UNRATE",
  "status": "success",
  "observations": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fred-macro-economic-api-gateway-b05efab6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dawn-dew-d9ae.reigharnold.workers.dev](https://www.zero.xyz/host/dawn-dew-d9ae.reigharnold.workers.dev/llms.txt)
