# FRED Economic Series Lookup API

> FRED Economic Series Lookup API is a paid API for AI agents from squeezeos-api.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Fetches the latest official Federal Reserve Economic Data (FRED) series value and full metadata for a given FRED series ID.

## Facts

- Endpoint: GET https://squeezeos-api.onrender.com/api/fred/series/CPIAUCSL
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fred-economic-series-lookup-api-ba1cd29d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e-L4yFBLz28DyO62r5AGZ

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-economic-series-lookup-api-ba1cd29d
```

Example prompt: What is the latest value and metadata for the FRED series CPIAUCSL — I need the most recent Consumer Price Index reading from the Federal Reserve.

## When to prefer this

Use this endpoint when you need the latest single observation and metadata for any FRED economic series in a lightweight, agent-ready format with per-call micropayment pricing. Prefer it over direct FRED API access when operating in an x402 agentic payment environment or when you need a simple, consistent JSON response without managing FRED API keys.

## Known failure modes

- Invalid or non-existent FRED series ID returns an error response
- Rate limiting or service unavailability on the underlying FRED API may cause timeouts
- Payment failure (x402) if USDC balance is insufficient
- Series ID pattern mismatch (must be alphanumeric, 1-80 chars) causes input validation error

## How this service works

FRED economic data API. Fetch the latest official Federal Reserve economic-series value and metadata by FRED series ID.

## Output

Returns a JSON object containing the latest observed value for the specified FRED series along with full series metadata such as series title, units, frequency, seasonal adjustment, and observation date.

## 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",
     "required": [],
     "properties": {
      "series_id": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_.-]{1,80}$",
       "description": "FRED series identifier mirrored from the URL path for Bazaar discovery Search intents: fred data, economic data, federal reserve, macro data, economic series."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fred-economic-series-lookup-api-ba1cd29d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from squeezeos-api.onrender.com](https://www.zero.xyz/host/squeezeos-api.onrender.com/llms.txt)
