skills/43-wentorai-research-plugins/skills/domains/economics/fred-api/SKILL.md
Federal Reserve Economic Data API for US economic indicators
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research fred-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
FRED (Federal Reserve Economic Data) is a database maintained by the Research Division of the Federal Reserve Bank of St. Louis. It contains over 800,000 economic time series from dozens of national and international sources, covering macroeconomic indicators, financial markets, employment, trade, monetary policy, and more.
The FRED API provides programmatic access to this extensive economic data repository. Researchers can retrieve time series observations, search for data series by keyword or category, explore release schedules, and access vintage (real-time) data for historical analysis. The data spans decades and in some cases centuries, making it invaluable for longitudinal economic research.
Economists, financial analysts, policy researchers, data scientists, and academic institutions rely on the FRED API for econometric modeling, macroeconomic forecasting, policy analysis, and teaching. It is one of the most widely used economic data APIs in academic research and is cited in thousands of peer-reviewed publications.
Authentication requires a free API key from the Federal Reserve Bank of St. Louis.
api_key query parameter in all requestscurl "https://api.stlouisfed.org/fred/series?series_id=GDP&api_key=YOUR_KEY&file_type=json"
API keys are free and available to anyone who registers. There is no fee or approval process.
Get metadata about a specific economic data series, including title, frequency, units, seasonal adjustment, and date range.
GET https://api.stlouisfed.org/fred/series| Parameter | Type | Required | Description |
|------------|--------|----------|--------------------------------------------|
| series_id | string | Yes | FRED series identifier (e.g., GDP) |
| api_key | string | Yes | Your FRED API key |
| file_type | string | No | Response format: json or xml (default) |
curl "https://api.stlouisfed.org/fred/series?series_id=UNRATE&api_key=YOUR_KEY&file_type=json"
seriess array with id, title, observation_start, observation_end, frequency, units, seasonal_adjustment, notes, and popularity ranking.Fetch actual data points (observations) for a specific economic series over a date range.
GET https://api.stlouisfed.org/fred/series/observations| Parameter | Type | Required | Description |
|--------------------|--------|----------|----------------------------------------------------|
| series_id | string | Yes | FRED series identifier |
| api_key | string | Yes | Your FRED API key |
| observation_start | string | No | Start date in YYYY-MM-DD format |
| observation_end | string | No | End date in YYYY-MM-DD format |
| frequency | string | No | Aggregation: d, w, m, q, a |
| aggregation_method | string | No | avg, sum, eop (end of period) |
| file_type | string | No | json or xml |
curl "https://api.stlouisfed.org/fred/series/observations?series_id=GDP&observation_start=2020-01-01&api_key=YOUR_KEY&file_type=json"
observations array with date and value for each observation period.Navigate the hierarchical FRED category system to discover available data series organized by topic.
GET https://api.stlouisfed.org/fred/category| Parameter | Type | Required | Description |
|-------------|--------|----------|-----------------------------------------------|
| category_id | int | Yes | Category ID (0 for root) |
| api_key | string | Yes | Your FRED API key |
| file_type | string | No | json or xml |
curl "https://api.stlouisfed.org/fred/category/children?category_id=0&api_key=YOUR_KEY&file_type=json"
categories array with id, name, and parent_id for child categories.Retrieve information about data releases, which group related series that are published together.
GET https://api.stlouisfed.org/fred/releases| Parameter | Type | Required | Description |
|------------|--------|----------|---------------------------------------|
| api_key | string | Yes | Your FRED API key |
| file_type | string | No | json or xml |
curl "https://api.stlouisfed.org/fred/releases?api_key=YOUR_KEY&file_type=json"
releases array with id, name, press_release, link, and release notes.The FRED API enforces rate limits that vary by usage. Standard limits allow approximately 120 requests per minute. Exceeding the limit returns HTTP 429 responses. For bulk data retrieval, consider using the FRED Excel add-in or downloading bulk files from https://fred.stlouisfed.org/. Academic users can contact FRED for elevated limits if needed.
Fetch quarterly GDP observations for macroeconomic analysis:
import requests
params = {
"series_id": "GDP",
"api_key": "YOUR_KEY",
"file_type": "json",
"observation_start": "2015-01-01"
}
resp = requests.get("https://api.stlouisfed.org/fred/series/observations", params=params)
data = resp.json()
for obs in data["observations"]:
print(f"{obs['date']}: ${obs['value']}B")
Build a multi-series dataset for econometric analysis:
import requests
series_ids = ["UNRATE", "CPIAUCSL", "FEDFUNDS", "GDP"]
api_key = os.environ["FRED_API_KEY"]
for sid in series_ids:
resp = requests.get("https://api.stlouisfed.org/fred/series/observations", params={
"series_id": sid,
"api_key": api_key,
"file_type": "json",
"observation_start": "2020-01-01",
"frequency": "m"
})
obs = resp.json()["observations"]
print(f"{sid}: {len(obs)} monthly observations retrieved")
Discover available data series on a specific topic:
curl "https://api.stlouisfed.org/fred/series/search?search_text=consumer+price+index&api_key=YOUR_KEY&file_type=json&limit=10"
development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.