
Api Data Fetcher
If you're tired of writing the same boilerplate to pull data from FRED, World Bank, or BLS APIs, this generates clean Python code with proper error handling and environment variable management. It walks through identifying what data you need, picks the right API source, and spits out documented functions that actually handle failures gracefully. The skill includes reference tables of common economic indicators (unemployment, GDP, inflation) and their series codes, which saves you from hunting through API documentation. Best for economists building datasets or automating regular data pulls. The generated code uses standard packages like fredapi and wbdata, so nothing exotic to install.
- skills.sh installs
- 208
- GitHub stars
- 668
- last updated
- Aug 21, 2026
Install
$ npx -y skills add meleantonio/awesome-econ-ai-stuff --skill api-data-fetcher --agent claude-codeInstalls into .claude/skills of the current project.
Files
API Data Fetcher
Purpose
This skill helps economists fetch data from major economic data APIs including FRED (Federal Reserve Economic Data), World Bank, IMF, BLS, and OECD. It generates clean, documented Python code with proper error handling.
When to Use
- Downloading macroeconomic indicators
- Building custom datasets from multiple sources
- Automating data updates for ongoing projects
- Fetching cross-country panel data
Instructions
Step 1: Identify Data Requirements
Ask the user:
- What data do you need? (GDP, unemployment, inflation, etc.)
- What time period and frequency?
- What countries/regions?
- Preferred output format? (CSV, DataFrame, etc.)
Step 2: Select Appropriate API
| Data Type | Best Source | Package |
|---|---|---|
| US macro | FRED | fredapi |
| Global development | World Bank | wbdata |
| Labor statistics | BLS | bls |
| Cross-country | OECD | pandasdmx |
| Financial | Yahoo Finance | yfinance |
Step 3: Generate Clean Code
Include:
- API key handling (environment variables)
- Error handling for API failures
- Data cleaning and formatting
- Documentation of series definitions
Sponsors
Details
- Repository
- github.com/meleantonio/awesome-econ-ai-stuff
- Categories
- Backend & APIs, AI & Agent Building
- First seen
- Jun 3, 2026