# Script Master Labs — FRED Economic Data API (x402)

> Script Master Labs — FRED Economic Data API (x402) is a paid API for AI agents from mcp-x402.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Fetches U.S. Federal Reserve Economic Data (FRED) time series by series ID, paid per call in USDC on Base via the x402 protocol.

## Facts

- Endpoint: GET https://mcp-x402.onrender.com/x402/fred
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/script-master-labs-fred-economic-data-api-x402-8fed46ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W7ittx-ro6q-RLseSEUY1

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 script-master-labs-fred-economic-data-api-x402-8fed46ba
```

Example prompt: Can you pull the last 20 observations of the US unemployment rate (UNRATE) from FRED for me?

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-call access to FRED economic time series data without setting up your own FRED API key, especially in autonomous agent workflows that can settle micropayments in USDC on Base via x402. Ideal for one-off or low-frequency lookups of US macroeconomic indicators like GDP, CPI, UNRATE, or FEDFUNDS.

## Known failure modes

- Invalid or unknown series_id returns an error or empty dataset
- Missing required series_id parameter causes a 400-level error
- Payment settlement failure via x402/USDC on Base blocks the request
- FRED upstream API unavailability causes 503 or timeout
- Rate limiting if the FRED upstream restricts access

## How this service works

Pay-per-call crypto, RWA, federal, SEC, Section 8/HUD housing, and compliance APIs via x402. Primary: USDC on Base (eip155:8453). Also accepts Global Dollar (USDG) on Robinhood Chain (eip155:4663) via sovereign X-PAYMENT-TX. Hyphen routes only (e.g. /x402/gas-tracker, /x402/pha-lookup, /x402/sec-8k). MARKETPLACE REVIEW: use free /x402/playground/* (no key, no payment). Production /x402/* returns 402 unless paid via x402 or X-Api-Market-Key / X-API-Key from seller dashboard.

## Output

Returns an array of time series observations for the requested FRED series ID, including date and value pairs representing the macroeconomic indicator over time, up to the specified observation limit.

## 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": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "series_id"
     ],
     "properties": {
      "limit": {
       "type": "integer",
       "default": 20,
       "maximum": 50,
       "minimum": 1
      },
      "series_id": {
       "type": "string",
       "description": "FRED series ID (e.g. GDP, CPIAUCSL, UNRATE, FEDFUNDS)."
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/script-master-labs-fred-economic-data-api-x402-8fed46ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-x402.onrender.com](https://www.zero.xyz/host/mcp-x402.onrender.com/llms.txt)
