fredapi

$npx mdskill add mkurman/zorai/fredapi

Retrieve 800,000+ economic time series for macro research.

  • Access GDP, inflation, and unemployment data instantly.
  • Connects to Federal Reserve Economic Data API.
  • Searches series by keyword or ID to find relevant metrics.
  • Returns structured time series data in pandas DataFrame format.

SKILL.md

.github/skills/fredapiView on GitHub ↗
---
name: fredapi
description: "Federal Reserve Economic Data (FRED) API client. 800,000+ US and international economic time series: GDP, inflation, unemployment, interest rates, industrial production. Direct data access for macro research."
tags: [fred, economic-data, macro-economics, federal-reserve, time-series, api, zorai]
---
## Overview

Fred API provides access to Federal Reserve Economic Data (FRED) — 800,000+ US and international economic time series. Use it for GDP, unemployment, inflation, interest rates, industrial production, and financial market data.

## Installation

```bash
uv pip install fredapi
```

## Basic Usage

```python
from fredapi import Fred

fred = Fred(api_key="YOUR_API_KEY")  # get free key from research.stlouisfed.org

# Get GDP data (series ID: GDP)
gdp = fred.get_series("GDP")
print(gdp.tail())

# Get unemployment rate
unemp = fred.get_series("UNRATE")
print(unemp.tail())
```

## Search and Metadata

```python
# Search for series
results = fred.search("consumer price index", limit=5)
print(results[["id", "title", "observation_start", "observation_end"]])

# Get series info
info = fred.get_series_info("CPIAUCSL")  # CPI Urban Consumers
print(info)
```

## Multiple Series

```python
# Get multiple series at once
cpi = fred.get_series("CPIAUCSL")
fed_funds = fred.get_series("FEDFUNDS")
ten_year = fred.get_series("DGS10")

import pandas as pd
combined = pd.DataFrame({"CPI": cpi, "FedFunds": fed_funds, "10Y": ten_year})
```

## References
- [FRED API docs](https://fred.stlouisfed.org/docs/api/fred/)
- [FRED series search](https://fred.stlouisfed.org/)

More from mkurman/zorai

SkillDescription
account-management>
agile-scrum>
albumentationsFast image augmentation library (Albumentations). 70+ transforms for classification, segmentation, object detection, keypoints, and pose estimation. Optimized OpenCV-based pipeline with unified API across all CV tasks. Supports images, masks, bounding boxes, and keypoints simultaneously. Note: classic Albumentations (MIT) is no longer maintained; successor AlbumentationsX uses AGPL-3.0. For torchvision-native augmentations, use torchvision.transforms.v2.
aml-complianceAnti-Money Laundering (AML) and Know Your Customer (KYC) compliance workflow. Sanctions screening, PEP detection, transaction monitoring, suspicious activity reporting (SAR), and OFAC compliance.
anki-connectThis skill is for interacting with Anki through AnkiConnect, and should be used whenever a user asks to interact with Anki, including to read or modify decks, notes, cards, models, media, or sync operations.
approval-checkpoint-long-taskCanonical long-task pack for daemon-managed work with deliberate approval checkpoints, status summaries, rollback notes, and mobile-safe governance-aware updates.
auditing-goal-artifactsUse when reviewing recent zorai goal run outputs, closure markers, ledgers, or evidence bundles to judge whether completion is credible or to identify remaining uncertainty.
autogenAutoGen (Microsoft) — multi-agent conversation framework. Agent-to-agent chat, code generation & execution, tool use, group chat, and human-in-the-loop. Build collaborative AI systems with specialized agents.
backtraderPython backtesting framework for trading strategies. Data feeds, brokers, analyzers, and live trading support. Strategy development with commission models, slippage, and signal-based execution.
beautiful-mermaidRender Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library. Use when the user asks to render a Mermaid diagram.