# FRED Economic Time Series Data

> FRED Economic Time Series Data is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Fetches any of FRED's ~800,000 economic time series by series ID, with optional date windowing and unit transformations

## Facts

- Endpoint: GET https://agent402.tools/api/fred-series?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fred-economic-time-series-data-135a6646
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NgrtqKNT0ObrQ9j8LDnM5

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-time-series-data-135a6646
```

Example prompt: Pull the year-over-year percent change in US real GDP (GDPC1) from FRED from January 2018 through December 2023 — use the pc1 transformation.

## When to prefer this

Use this endpoint when you need any specific FRED economic indicator by its known series ID, especially when you want date-windowed data or a specific statistical transformation (like year-over-year percent change). Prefer this over general web search when you need structured, machine-readable time series data from the Federal Reserve's official FRED database covering GDP, CPI, unemployment, interest rates, and hundreds of thousands of other series.

## Known failure modes

- Invalid or unknown series ID returns an error — FRED series IDs are case-sensitive (e.g. GDPC1, not gdpc1)
- Invalid units transformation string returns an error — must be one of: lin, chg, ch1, pch, pc1, pca, cca, log
- Date format errors if startDate/endDate are not in YYYY-MM-DD format
- Limit out of range if not between 1 and 100000
- Payment failure if USDC balance insufficient for the $0.015 per call fee

## How this service works

Fetch any of FRED's ~800,000 economic time series by series ID - GDP (GDPC1), CPI (CPIAUCSL), unemployment (UNRATE), fed funds (DFF), and so on. Supports date windowing and the standard FRED units transformations (lin, chg, ch1, pch, pc1, pca, cca, log).

## Output

Returns a time series of observations from FRED including dates and values, optionally transformed (e.g. percent change year-over-year), for the requested economic indicator within the specified date range and frequency.

## 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": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "seriesId"
     ],
     "properties": {
      "limit": {
       "type": "number",
       "description": "Max observations, 1-100000 (default 1000)"
      },
      "units": {
       "type": "string",
       "description": "Transformation: lin, chg, ch1, pch, pc1 (YoY %), pca, cca, log"
      },
      "endDate": {
       "type": "string",
       "description": "ISO end date (YYYY-MM-DD), optional"
      },
      "seriesId": {
       "type": "string",
       "description": "FRED series ID, e.g. GDPC1, CPIAUCSL, UNRATE, DFF"
      },
      "frequency": {
       "type": "string",
       "description": "Aggregate to d/w/m/q/sa/a, etc. (optional)"
      },
      "startDate": {
       "type": "string",
       "description": "ISO start date (YYYY-MM-DD), optional"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "seriesId",
      "count",
      "observations",
      "source"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "source": {
       "type": "string"
      },
      "seriesId": {
       "type": "string"
      },
      "observations": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string"
         },
         "value": {
          "type": "integer"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 20,
  "source": "FRED (St. Louis Fed)",
  "seriesId": "GDPC1",
  "observations": [
   {
    "date": "2018-01-01",
    "value": 18733
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fred-economic-time-series-data-135a6646/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
