FRED time series

$0.005 per call · USDC via x402 · GET /api/fred-series

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. Send GET /api/fred-series with the required field seriesId and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with seriesId, count, observations and source.

Supports date windowing and the standard FRED units transformations (lin, chg, ch1, pch, pc1, pca, cca, log). ?seriesId=GDPC1&startDate=2018-01-01&endDate=2023-12-31&units=pc1 This product uses the FRED(R) API but is not endorsed or certified by the Federal Reserve Bank of St. Louis.

Category: Live public data · Tags: fred series time-series gdp cpi inflation unemployment fed

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
seriesIdstringyesFRED series ID, e.g. GDPC1, CPIAUCSL, UNRATE, DFF Also accepted as series, series_id, id.
startDatestringnoISO start date (YYYY-MM-DD), optional
endDatestringnoISO end date (YYYY-MM-DD), optional
limitnumbernoMax observations, 1-100000 (default 1000)
unitsstringnoTransformation: lin, chg, ch1, pch, pc1 (YoY %), pca, cca, log
frequencystringnoAggregate to d/w/m/q/sa/a, etc. (optional)

Example request

curl -i "https://agent402.tools/api/fred-series?seriesId=GDPC1&startDate=2018-01-01&endDate=2022-12-31"

Without payment this returns HTTP 402 Payment Required with the exact price for fred-series; any x402 v2 or MPP client pays it and retries.

Example response

{
  "seriesId": "GDPC1",
  "count": 20,
  "observations": [
    {
      "date": "2018-01-01",
      "value": 18733
    }
  ],
  "source": "FRED (St. Louis Fed)"
}
FieldTypeAlways presentIn the example
seriesIdstringyesGDPC1
countnumberyes20
observationsarray of objectsyes1 item in the example
sourcestringyesFRED (St. Louis Fed)

From an MCP client

catalog.call {
  "slug": "fred-series",
  "params": {
    "seriesId": "GDPC1",
    "startDate": "2018-01-01",
    "endDate": "2022-12-31"
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for fred-series; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/fred-series?seriesId=GDPC1&startDate=2018-01-01&endDate=2022-12-31");

Part of these workflows

FRED time series is one step in these 4 skill packs, each sold as a single call:

Related tools

FRED economic release calendar

$0.005 · GET /api/fred-release-calendar

Upcoming and very-recent US economic data release dates - CPI, employment, GDP, FOMC minutes, Treasury auctions, etc. Us…

FRED bulk release observations (v2)

$0.005 · GET /api/fred-release-observations

Bulk-fetch observations for every series in a FRED release in one call. Use it to grab an entire economic report (jobs r…

FRED catalog search

$0.005 · GET /api/fred-search

Full-text search across FRED's ~800,000 economic time series. Returns series IDs (use with /api/fred-series), titles, fr…

FRED series metadata

$0.005 · GET /api/fred-series-info

Metadata for a FRED series: title, frequency, units, seasonal adjustment, observation date range, and popularity. Use be…

World Bank indicator series

$0.005 · GET /api/world-bank-indicator

Fetch a World Bank indicator time series for a country (e.g. GDP, inflation, unemployment, population). Open data, no ke…

US CPI year-over-year inflation

$0.005 · GET /api/cpi-yoy

Latest US Consumer Price Index year-over-year inflation rate (headline CPI-U) plus the trailing 12 months of YoY reading…