fred_get_series
Retrieve any FRED time series data by ID with support for data transformations, frequency changes, and custom date ranges.Overview
Thefred_get_series tool is your primary interface for accessing actual economic data. It supports:
- Retrieving observations for any of the 800,000+ series
- Applying mathematical transformations (growth rates, percent changes)
- Converting between frequencies (daily to monthly, monthly to quarterly)
- Custom date ranges and vintage data
- Multiple aggregation methods
Parameters
string
required
The FRED series ID to retrieve data for.Popular IDs:
GDP: Gross Domestic ProductUNRATE: Unemployment RateCPIAUCSL: Consumer Price IndexDFF: Federal Funds RateSP500: S&P 500 Index
fred_search or fred_browse to discover series IDsstring
Start date for observations in YYYY-MM-DD format.Examples:
2024-01-01: Start of 20242020-03-01: Beginning of pandemic period2008-09-01: Start of financial crisis
string
End date for observations in YYYY-MM-DD format.Examples:
2024-12-31: End of 20242023-12-31: Full year 2023
number
default:"100000"
Maximum number of observations to return (1-100000).Usage:
- Small limits for recent data:
12for last year of monthly data - Large limits for historical analysis
number
default:"0"
Number of observations to skip from the beginning.
string
default:"asc"
Sort order of observations by date.Options:
asc: Chronological order (oldest first)desc: Reverse chronological (newest first)
string
default:"lin"
Data transformation to apply.Options:
lin: Levels (no transformation) - raw valueschg: Change from previous periodch1: Change from year agopch: Percent change from previous periodpc1: Percent change from year agopca: Compounded annual rate of changecch: Continuously compounded rate of changecca: Continuously compounded annual ratelog: Natural logarithm
pc1for year-over-year inflationpchfor month-over-month growthlogfor regression analysis
string
Frequency aggregation/conversion.Main options:
d: Dailyw: Weeklybw: Biweeklym: Monthlyq: Quarterlysa: Semiannuala: Annual
wef: Week Ending Fridayweth: Week Ending Thursdaywew: Week Ending Wednesdaywetu: Week Ending Tuesdaywem: Week Ending Mondaywesu: Week Ending Sundaywesa: Week Ending Saturday
string
default:"avg"
Method for aggregating to lower frequencies.Options:
avg: Average over periodsum: Sum of values in periodeop: End of period value
avgfor interest rates, pricessumfor flows like GDP, saleseopfor stock prices, levels
number
default:"1"
Output format type.Options:
1: Time series observations2: Observations by vintage date3: Observations by release date4: Initial release only
string
Specific vintage date(s) in YYYY-MM-DD format.Usage:
- Single date:
2024-01-01 - Date range:
2024-01-01:2024-12-31
Examples
Basic Series Retrieval
Year-over-Year Inflation
Quarterly GDP Growth
Convert Daily to Monthly
Common Use Cases
Economic Dashboard
Historical Analysis
Financial Market Indicators
Transformation Examples
Growth Rate Calculations
- Month-over-Month
- Quarter-over-Quarter
- Year-over-Year
- Annualized Rate
Frequency Conversions
- Daily to Monthly
- Monthly to Quarterly
- Monthly to Annual
- Daily to Weekly
Popular Series Reference
Key Economic Indicators
Interest Rates
Market Indicators
Error Handling
Common Errors
Validation Rules
Best Practices
1
Know Your Data
Check series metadata (frequency, units, seasonal adjustment) before retrieval
2
Use Appropriate Transforms
Match transformation to analysis needs (growth rates for trends, logs for regression)
3
Consider Frequency
Align data frequencies when comparing multiple series
4
Handle Missing Data
Some series have gaps; check for null values in observations
5
Plan Queries Carefully
Think through data needs to minimize redundant requests
Related Tools
fred_search
Find series IDs to retrieve
fred_browse
Explore available categories