> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# FRED (St. Louis Fed)

> US and international economic time series from the Federal Reserve Bank of St. Louis: series search, metadata, observations, categories and release calendars.

![](https://mintcdn.com/webrouter/gPu3tCeozwRcDBjt/logo/data-apis/fred.webp?fit=max\&auto=format\&n=gPu3tCeozwRcDBjt\&q=85\&s=0d767e4f24ca61005ade8ee0999744b1)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

Needs&#x20;

`FRED_API_KEY`

Endpoints

7

Auth

Key in query

[Vendor docs](https://fred.stlouisfed.org/docs/api/fred/)

## Setup

| Variable | | What it is |
| - | - | - |
| `FRED_API_KEY` | required | a free FRED API key, 32 lowercase alphanumeric characters (fredaccount.stlouisfed.org, API keys page) |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every endpoint answers XML unless file\_type=json is passed.
* Dates are YYYY-MM-DD. realtime\_start/realtime\_end select the vintage (ALFRED real-time period) and default to today, so values are the latest revision unless set.
* Paging is limit/offset; most list endpoints cap limit at 1000, series observations at 100000.

## Endpoints

GET

Search economic series

Find series by keywords or by series id, with tag and attribute filters.

[Open](#fred-series-search)

GET

Get series metadata

Title, units, frequency, seasonal adjustment, observation range and last update for one series.

[Open](#fred-series-get)

GET

Get series observations

The data values of a series, optionally transformed (units) or aggregated to a lower frequency.

[Open](#fred-series-observations)

GET

List recently updated series

Series ordered by when their observations were last updated, within the last two weeks.

[Open](#fred-series-updates)

GET

List series in a category

The series filed under one FRED category.

[Open](#fred-category-series)

GET

List release dates

Upcoming and past publication dates across all economic data releases.

[Open](#fred-releases-dates)

GET

List one release's dates

Publication dates of one release (e.g. the Employment Situation).

[Open](#fred-release-dates)

### Search economic series

GET

`/series/search`

`fred.series.search`

Find series by keywords or by series id, with tag and attribute filters.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`search_text`</td><td>string</td><td>query</td><td>Words to match against series. Example `consumer price index`</td></tr>
    <tr><td>`search_type`</td><td>string</td><td>query</td><td>full\_text (default) or series\_id (search\_text matched against ids, \* wildcards allowed). One of `full_text`, `series_id`</td></tr>
    <tr><td>`file_type`</td><td>string</td><td>query</td><td>Response format; the API defaults to xml, so pass json. One of `xml`, `json` Example `json`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, 1 to 1000.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to skip.
      </td>
    </tr>

    <tr><td>`order_by`</td><td>string</td><td>query</td><td>Sort key; default search\_rank for full\_text, series\_id otherwise. One of `search_rank`, `series_id`, `title`, `units`, `frequency`, `seasonal_adjustment`, `realtime_start`, `realtime_end`, `last_updated`, `observation_start`, `observation_end`, `popularity`, `group_popularity`</td></tr>

    <tr>
      <td>
        `sort_order`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `asc`

        ,&#x20;

        `desc`
      </td>
    </tr>

    <tr><td>`filter_variable`</td><td>string</td><td>query</td><td>Attribute to filter on. One of `frequency`, `units`, `seasonal_adjustment`</td></tr>

    <tr>
      <td>
        `filter_value`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Value of filter\_variable to keep.
      </td>
    </tr>

    <tr>
      <td>
        `tag_names`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Semicolon-separated tags a series must all carry, e.g. usa;m2.
      </td>
    </tr>

    <tr>
      <td>
        `exclude_tag_names`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Semicolon-separated tags to exclude; needs tag\_names.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Start of the real-time period, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        End of the real-time period, YYYY-MM-DD.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://fred.stlouisfed.org/docs/api/fred/series_search.html) · Same job: [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-groups-search), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-objects-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-lists), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-datasets-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-list), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-tables-query)

```python Python theme={null}
router.call_data_api("fred.series.search", {'search_text': 'consumer price index', 'file_type': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="fred.series.search", params={"search_text": "consumer price index", "file_type": "json"})
```

### Get series metadata

GET

`/series`

`fred.series.get`

Title, units, frequency, seasonal adjustment, observation range and last update for one series.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`series_id` required</td><td>string</td><td>query</td><td>Series id. Example `GDP`</td></tr>
    <tr><td>`file_type`</td><td>string</td><td>query</td><td>Response format; the API defaults to xml, so pass json. One of `xml`, `json` Example `json`</td></tr>

    <tr>
      <td>
        `realtime_start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Start of the real-time period, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        End of the real-time period, YYYY-MM-DD.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://fred.stlouisfed.org/docs/api/fred/series.html) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-parameters-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata)

```python Python theme={null}
router.call_data_api("fred.series.get", {'series_id': 'GDP', 'file_type': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="fred.series.get", params={"series_id": "GDP", "file_type": "json"})
```

### Get series observations

GET

`/series/observations`

`fred.series.observations`

The data values of a series, optionally transformed (units) or aggregated to a lower frequency.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`series_id` required</td><td>string</td><td>query</td><td>Series id. Example `CPIAUCSL`</td></tr>
    <tr><td>`file_type`</td><td>string</td><td>query</td><td>Response format; the API defaults to xml, so pass json. One of `xml`, `json`, `xlsx`, `csv` Example `json`</td></tr>

    <tr>
      <td>
        `observation_start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        First observation date, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `observation_end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Last observation date, YYYY-MM-DD.
      </td>
    </tr>

    <tr><td>`units`</td><td>string</td><td>query</td><td>Transformation: lin levels (default), chg change, ch1 change from a year ago, pch percent change, pc1 percent change from a year ago, pca compounded annual rate, cch continuously compounded rate, cca continuously compounded annual rate, log natural log. One of `lin`, `chg`, `ch1`, `pch`, `pc1`, `pca`, `cch`, `cca`, `log`</td></tr>
    <tr><td>`frequency`</td><td>string</td><td>query</td><td>Aggregate to a lower frequency: d, w, bw, m, q, sa, a, or a period variant (wef, weth, wew, wetu, wem, wesu, wesa, bwew, bwem). One of `d`, `w`, `bw`, `m`, `q`, `sa`, `a`, `wef`, `weth`, `wew`, `wetu`, `wem`, `wesu`, `wesa`, `bwew`, `bwem`</td></tr>
    <tr><td>`aggregation_method`</td><td>string</td><td>query</td><td>avg (default), sum or eop; only applies with frequency. One of `avg`, `sum`, `eop`</td></tr>
    <tr><td>`sort_order`</td><td>string</td><td>query</td><td>By observation date. One of `asc`, `desc`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, 1 to 100000.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to skip.
      </td>
    </tr>

    <tr><td>`output_type`</td><td>integer</td><td>query</td><td>1 by real-time period (default), 2 by vintage date all observations, 3 by vintage date new and revised only, 4 initial release only. One of `1`, `2`, `3`, `4`</td></tr>

    <tr>
      <td>
        `vintage_dates`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated YYYY-MM-DD vintage dates, used instead of a real-time period.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Start of the real-time period, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        End of the real-time period, YYYY-MM-DD.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://fred.stlouisfed.org/docs/api/fred/series_observations.html) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("fred.series.observations", {'series_id': 'CPIAUCSL', 'file_type': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="fred.series.observations", params={"series_id": "CPIAUCSL", "file_type": "json"})
```

> [!NOTE]
>
> * Values are strings; a missing observation is '.'.
> * frequency cannot be higher than the series' native frequency (an error), and aggregation only works with xml or json output.
> * csv output arrives as a zip holding the csv and a README.

### List recently updated series

GET

`/series/updates`

`fred.series.updates`

Series ordered by when their observations were last updated, within the last two weeks.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`file_type`</td><td>string</td><td>query</td><td>Response format; the API defaults to xml, so pass json. One of `xml`, `json` Example `json`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, 1 to 1000.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to skip.
      </td>
    </tr>

    <tr><td>`filter_value`</td><td>string</td><td>query</td><td>macro, regional or all (default). One of `macro`, `regional`, `all`</td></tr>
    <tr><td>`start_time`</td><td>string</td><td>query</td><td>YYYYMMDDHHmm; needs end\_time. Example `201803020000`</td></tr>

    <tr>
      <td>
        `end_time`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        YYYYMMDDHHmm; needs start\_time.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Start of the real-time period, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        End of the real-time period, YYYY-MM-DD.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://fred.stlouisfed.org/docs/api/fred/series_updates.html)

```python Python theme={null}
router.call_data_api("fred.series.updates", {'file_type': 'json', 'start_time': '201803020000'})
```

```text MCP theme={null}
call_data_api(endpoint="fred.series.updates", params={"file_type": "json", "start_time": "201803020000"})
```

### List series in a category

GET

`/category/series`

`fred.category.series`

The series filed under one FRED category.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`category_id` required</td><td>integer</td><td>query</td><td>Category id; 0 is the root. Example `125`</td></tr>
    <tr><td>`file_type`</td><td>string</td><td>query</td><td>Response format; the API defaults to xml, so pass json. One of `xml`, `json` Example `json`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, 1 to 1000.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to skip.
      </td>
    </tr>

    <tr>
      <td>
        `order_by`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `series_id`

        ,&#x20;

        `title`

        ,&#x20;

        `units`

        ,&#x20;

        `frequency`

        ,&#x20;

        `seasonal_adjustment`

        ,&#x20;

        `realtime_start`

        ,&#x20;

        `realtime_end`

        ,&#x20;

        `last_updated`

        ,&#x20;

        `observation_start`

        ,&#x20;

        `observation_end`

        ,&#x20;

        `popularity`

        ,&#x20;

        `group_popularity`
      </td>
    </tr>

    <tr>
      <td>
        `sort_order`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `asc`

        ,&#x20;

        `desc`
      </td>
    </tr>

    <tr>
      <td>
        `filter_variable`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `frequency`

        ,&#x20;

        `units`

        ,&#x20;

        `seasonal_adjustment`
      </td>
    </tr>

    <tr>
      <td>
        `filter_value`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Value of filter\_variable to keep.
      </td>
    </tr>

    <tr>
      <td>
        `tag_names`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Semicolon-separated tags a series must all carry.
      </td>
    </tr>

    <tr>
      <td>
        `exclude_tag_names`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Semicolon-separated tags to exclude; needs tag\_names.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Start of the real-time period, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        End of the real-time period, YYYY-MM-DD.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://fred.stlouisfed.org/docs/api/fred/category_series.html)

```python Python theme={null}
router.call_data_api("fred.category.series", {'category_id': 125, 'file_type': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="fred.category.series", params={"category_id": 125, "file_type": "json"})
```

### List release dates

GET

`/releases/dates`

`fred.releases.dates`

Upcoming and past publication dates across all economic data releases.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`file_type`</td><td>string</td><td>query</td><td>Response format; the API defaults to xml, so pass json. One of `xml`, `json` Example `json`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, 1 to 1000.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to skip.
      </td>
    </tr>

    <tr><td>`order_by`</td><td>string</td><td>query</td><td>Default release\_date. One of `release_date`, `release_id`, `release_name`</td></tr>
    <tr><td>`sort_order`</td><td>string</td><td>query</td><td>Default desc. One of `asc`, `desc`</td></tr>

    <tr>
      <td>
        `include_release_dates_with_no_data`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include dates with no data yet (future dates); default false.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        YYYY-MM-DD; defaults to the first day of the current year.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        YYYY-MM-DD; defaults to 9999-12-31.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://fred.stlouisfed.org/docs/api/fred/releases_dates.html) · Same job: [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-earnings), [Datadog](https://docs.webrouter.net/data-apis/datadog.md#datadog-events-list), [Financial Modeling Prep](https://docs.webrouter.net/data-apis/fmp.md#fmp-earnings-calendar), [Kalshi](https://docs.webrouter.net/data-apis/kalshi.md#kalshi-events-list), [Legistar Web API](https://docs.webrouter.net/data-apis/legistar.md#legistar-events-list), [Polymarket](https://docs.webrouter.net/data-apis/polymarket.md#polymarket-events-list)

```python Python theme={null}
router.call_data_api("fred.releases.dates", {'file_type': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="fred.releases.dates", params={"file_type": "json"})
```

### List one release's dates

GET

`/release/dates`

`fred.release.dates`

Publication dates of one release (e.g. the Employment Situation).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`release_id` required</td><td>integer</td><td>query</td><td>Release id. Example `82`</td></tr>
    <tr><td>`file_type`</td><td>string</td><td>query</td><td>Response format; the API defaults to xml, so pass json. One of `xml`, `json` Example `json`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, 1 to 10000.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to skip.
      </td>
    </tr>

    <tr>
      <td>
        `sort_order`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `asc`

        ,&#x20;

        `desc`
      </td>
    </tr>

    <tr>
      <td>
        `include_release_dates_with_no_data`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include dates with no data yet; default false.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        YYYY-MM-DD; defaults to 1776-07-04.
      </td>
    </tr>

    <tr>
      <td>
        `realtime_end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        YYYY-MM-DD; defaults to 9999-12-31.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://fred.stlouisfed.org/docs/api/fred/release_dates.html) · Same job: [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-earnings), [Datadog](https://docs.webrouter.net/data-apis/datadog.md#datadog-events-list), [Financial Modeling Prep](https://docs.webrouter.net/data-apis/fmp.md#fmp-earnings-calendar), [Kalshi](https://docs.webrouter.net/data-apis/kalshi.md#kalshi-events-list), [Legistar Web API](https://docs.webrouter.net/data-apis/legistar.md#legistar-events-list), [Polymarket](https://docs.webrouter.net/data-apis/polymarket.md#polymarket-events-list)

```python Python theme={null}
router.call_data_api("fred.release.dates", {'release_id': 82, 'file_type': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="fred.release.dates", params={"release_id": 82, "file_type": "json"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.