Skip to content

Fetch economic data from FRED, World Bank, IMF, BLS, and OECD with documented, error-handled Python code.

CCM score
52 of 100
skills.sh installs
210
GitHub stars
684
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers data requests for macroeconomic indicators, custom multi-source datasets, scheduled updates, and cross-country panels
  • Walks through requirement gathering, then selects a source and package per data type: fredapi, wbdata, bls, pandasdmx, or yfinance
  • Generates code that reads API keys from environment variables and reports failed series without stopping the whole download
  • Includes curated series dictionaries for FRED (GDP, unemployment, CPI, rates) and World Bank development indicators

Install

$ npx -y skills add meleantonio/awesome-econ-ai-stuff --skill api-data-fetcher -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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:

  1. What data do you need? (GDP, unemployment, inflation, etc.)
  2. What time period and frequency?
  3. What countries/regions?
  4. Preferred output format? (CSV, DataFrame, etc.)

Step 2: Select Appropriate API

Data TypeBest SourcePackage
US macroFREDfredapi
Global developmentWorld Bankwbdata
Labor statisticsBLSbls
Cross-countryOECDpandasdmx
FinancialYahoo Financeyfinance

Step 3: Generate Clean Code

Include:

  • API key handling (environment variables)
  • Error handling for API failures
  • Data cleaning and formatting
  • Documentation of series definitions

Details

Repository
github.com/meleantonio/awesome-econ-ai-stuff
Categories
Data Science & Analytics, Finance & Trading
First seen
Jun 3, 2026

Questions

What does the api-data-fetcher skill do?

The api-data-fetcher skill fetches economic data from FRED, World Bank, IMF, BLS, and OECD APIs. It generates clean, documented Python code with error handling and API key handling through environment variables.

Who is the api-data-fetcher skill for?

It is aimed at economists who need macroeconomic indicators, cross-country panel data, or custom datasets from several sources. It also suits anyone automating data updates for ongoing projects.

What does the api-data-fetcher skill need to run?

The generated code requires Python with pandas, plus packages such as fredapi and wbdata, installed as needed. A free FRED API key is needed, stored in the FRED_API_KEY environment variable.

How do I install the api-data-fetcher skill?

Run npx -y skills add meleantonio/awesome-econ-ai-stuff --skill api-data-fetcher -y in a project. Once installed, the agent can ask which data, period, countries and output format you need, then write the fetching code.

More from meleantonio/awesome-econ-ai-stuff

All 9

Similar to Api Data Fetcher

More Data Science & Analytics