World Bank & FRED API — Macro Economic Data
Pricing
from $1.20 / 1,000 api requests
World Bank & FRED API — Macro Economic Data
Global macro-economic indicators as clean LLM-ready JSON: World Bank (GDP, inflation, trade — no key required) and FRED (St. Louis Fed — free key). Search series, fetch observations by year, browse the indicator catalog.
Pricing
from $1.20 / 1,000 api requests
Rating
0.0
(0)
Developer
RD.Galih Rakasiwi
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Categories
Share
Macro Finance Data API — World Bank + FRED Indicators
Global macro-economic indicators as clean, LLM-ready JSON.
- World Bank — works with no key at all: GDP, inflation, population, trade, unemployment, and 1,400+ other indicators for 200+ countries.
- FRED (St. Louis Fed) — US and global economic series with a free API key: CPI, interest rates, money supply, employment, and more.
Why this Actor
Both sources return nested, inconsistent payloads. This Actor normalizes them
into one predictable shape (country, year, value) so you can drop the data
straight into a chart, a database, or an LLM tool.
Endpoints
| Method | Path | Key required |
|---|---|---|
| GET | /wb/indicator/{code} | no |
| GET | /wb/indicators?search= | no |
| GET | /wb/countries | no |
| GET | /fred/search?q= | FRED_API_KEY |
| GET | /fred/series/{id} | FRED_API_KEY |
# Indonesia GDP (current US$), 2021–2025curl "https://<container-url>/wb/indicator/NY.GDP.MKTP.CD?country=IDN&start_year=2021&end_year=2025"# List World Bank indicators matching "inflation"curl "https://<container-url>/wb/indicators?search=inflation"# FRED: search series (needs FRED_API_KEY)curl "https://<container-url>/fred/search?q=inflation"
Output
{"indicator": "NY.GDP.MKTP.CD","count": 5,"items": [{"country": "Indonesia", "countryIso3": "IDN", "year": "2025", "value": 1445642584163.81, "unit": ""}]}
Getting a FRED key (free)
- Create an account at https://fred.stlouisfed.org
- Request an API key: https://fred.stlouisfed.org/docs/api/api_key.html
- Put it in the Actor input
fredApiKey(orFRED_API_KEYenv var)
World Bank endpoints work without any key.
Local development
pip install -r requirements.txtuvicorn src.main:app --reload
Related searches
world bank api, fred api, macro economic data, gdp data api, inflation data api, economic indicators api, country statistics