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

# Fetch FRED Data

> Import economic time series from the St. Louis Fed's FRED database into a pipeline by series code.

[FRED](https://fred.stlouisfed.org/) is the database maintained by the Federal Reserve Bank of St. Louis, with hundreds of thousands of US and international time series drawn from over a hundred sources. The **Fetch FRED Data** step imports any of them into a pipeline.

<Steps>
  <Step title="Create a pipeline">
    Click **Create new pipeline** in the top right corner, choose the repository and a name, then click **Create**.

    <Frame>
      <img src="https://mintcdn.com/alphacastio/ttF_U-V9HDrmrPbo/images/steps/fetch-fred-1.png?fit=max&auto=format&n=ttF_U-V9HDrmrPbo&q=85&s=2ff803ccd0ac2afa68ba79f179944f25" alt="Creating a new pipeline" width="714" height="314" data-path="images/steps/fetch-fred-1.png" />
    </Frame>
  </Step>

  <Step title="Add the Fetch FRED Data step">
    <Frame>
      <img src="https://mintcdn.com/alphacastio/ttF_U-V9HDrmrPbo/images/steps/fetch-fred-2.png?fit=max&auto=format&n=ttF_U-V9HDrmrPbo&q=85&s=c83a171831890061e53b2bed27a54f5d" alt="Selecting the Fetch FRED Data step" width="631" height="159" data-path="images/steps/fetch-fred-2.png" />
    </Frame>
  </Step>

  <Step title="Enter the series codes">
    Every FRED series has a unique code, shown both in the page URL and next to the series name. In the example below the codes are `T10Y2Y` and `MORTGAGE30US`.

    <Frame>
      <img src="https://mintcdn.com/alphacastio/ttF_U-V9HDrmrPbo/images/steps/fetch-fred-3.png?fit=max&auto=format&n=ttF_U-V9HDrmrPbo&q=85&s=dd9848874b598ed44365befd3514726a" alt="Locating a series code on the FRED website" width="1883" height="955" data-path="images/steps/fetch-fred-3.png" />
    </Frame>

    Add as many series as you need, separated by commas. See a [working example pipeline](https://www.alphacast.io/pipelines/2022-6-10-xaJGgt/view).

    <Frame>
      <img src="https://mintcdn.com/alphacastio/ttF_U-V9HDrmrPbo/images/steps/fetch-fred-4.png?fit=max&auto=format&n=ttF_U-V9HDrmrPbo&q=85&s=64732378d0d7daf30cd12651548d14c5" alt="Entering FRED series codes in the step configuration" width="2198" height="959" data-path="images/steps/fetch-fred-4.png" />
    </Frame>
  </Step>
</Steps>

Once the step runs you can publish the result as a dataset, chart it, or keep transforming it with further steps.

<Note>
  FRED series can also be browsed and fetched through the Data Providers API — see [Data providers](/concepts/data-providers).
</Note>

## Next steps

<CardGroup cols={2}>
  <Card title="Publish dataset" icon="upload" href="/steps/publish">
    Save the result as an auto-updating dataset.
  </Card>

  <Card title="Apply transform" icon="wand-magic-sparkles" href="/steps/transform">
    Compute year-over-year changes, moving averages and more.
  </Card>
</CardGroup>
