World Bank & FRED API — Macro Economic Data avatar

World Bank & FRED API — Macro Economic Data

Pricing

from $1.20 / 1,000 api requests

Go to Apify Store
World Bank & FRED API — Macro Economic Data

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

RD.Galih Rakasiwi

Maintained by Community

Actor 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

MethodPathKey required
GET/wb/indicator/{code}no
GET/wb/indicators?search=no
GET/wb/countriesno
GET/fred/search?q=FRED_API_KEY
GET/fred/series/{id}FRED_API_KEY
# Indonesia GDP (current US$), 2021–2025
curl "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)

  1. Create an account at https://fred.stlouisfed.org
  2. Request an API key: https://fred.stlouisfed.org/docs/api/api_key.html
  3. Put it in the Actor input fredApiKey (or FRED_API_KEY env var)

World Bank endpoints work without any key.

Local development

pip install -r requirements.txt
uvicorn src.main:app --reload

world bank api, fred api, macro economic data, gdp data api, inflation data api, economic indicators api, country statistics