# ScriptMasterLabs FRED Economic Data API (x402)

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

Fetches Federal Reserve Economic Data (FRED) time-series observations for a given series ID, paid per-call via x402 crypto micropayment.

## Facts

- Endpoint: GET https://mcp-x402-discovery.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/scriptmasterlabs-fred-economic-data-api-x402-385ff06c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yRYukHAzQO0ffbxNKBFO6

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 scriptmasterlabs-fred-economic-data-api-x402-385ff06c
```

Example prompt: Can you pull the last 20 observations of the US Consumer Price Index (CPIAUCSL) from FRED so I can see recent inflation trends?

## When to prefer this

Use this endpoint when you need programmatic, pay-per-call access to FRED economic time-series data without managing a FRED API key directly, and when your agent infrastructure supports x402 crypto micropayments (USDC on Base). Prefer this over direct FRED API calls when you want to integrate economic data fetching into an x402-compatible agent workflow with predictable per-call pricing.

## Known failure modes

- Invalid or unrecognized FRED series ID returns an error or empty dataset
- Payment not provided results in HTTP 402 response requiring x402 USDC payment on Base or X-Api-Market-Key
- Limit parameter out of range (below 1 or above 50) is rejected by schema validation
- FRED upstream API downtime may cause delayed or failed responses
- Series ID with no available data may return empty observations array

## 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 time-series observation data from the FRED database for the requested series ID, including data points up to the specified limit (1–50, default 20). Each observation typically includes date and value fields for the chosen economic 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": {
     "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/scriptmasterlabs-fred-economic-data-api-x402-385ff06c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-x402-discovery.onrender.com](https://www.zero.xyz/host/mcp-x402-discovery.onrender.com/llms.txt)
