fred_get_series
Fetch FRED economic time series by series ID with optional date range, data transformation, and frequency aggregation.
Instructions
Retrieve data for any FRED series by its ID. Supports data transformations, frequency changes, and date ranges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| series_id | Yes | The FRED series ID to retrieve data for (e.g., 'GDP', 'UNRATE', 'CPIAUCSL') | |
| observation_start | No | Start date for observations in YYYY-MM-DD format | |
| observation_end | No | End date for observations in YYYY-MM-DD format | |
| limit | No | Maximum number of observations to return | |
| offset | No | Number of observations to skip | |
| sort_order | No | Sort order of observations by date | |
| units | No | Data transformation: lin=levels, chg=change, pch=percent change, log=natural log | |
| frequency | No | Frequency aggregation: d=daily, w=weekly, m=monthly, q=quarterly, a=annual | |
| aggregation_method | No | Aggregation method: avg=average, sum=sum, eop=end of period | |
| output_type | No | Output format: 1=observations, 2=observations by vintage, 3=observations by release, 4=initial release only | |
| vintage_dates | No | Vintage date or dates in YYYY-MM-DD format |