Building AI agents that need real-world data? Here are 5 authoritative, free APIs you should know about — plus a bonus tool that helps you discover them all.
1. 🌍 World Bank Open Data API
What: GDP, population, poverty, education indicators for 200+ countries
API: https://api.worldbank.org/v2/
Format: JSON/XML
Rate limit: None (public)
# Get China GDP (current USD)
curl "https://api.worldbank.org/v2/country/CN/indicator/NY.GDP.MKTP.CD?format=json&date=2020:2024"
Perfect for: economic analysis, country comparisons, development research.
2. 📊 IMF Data API
What: World Economic Outlook, Balance of Payments, financial statistics
API: https://dataservices.imf.org/REST/SDMX_JSON.svc/
Format: JSON (SDMX)
Rate limit: Reasonable
# Get available datasets
curl "https://dataservices.imf.org/REST/SDMX_JSON.svc/Dataflow"
Perfect for: macroeconomic forecasting, financial modeling, policy analysis.
3. 🏥 WHO Global Health Observatory API
What: Health indicators, disease statistics, mortality data for 190+ countries
API: https://ghoapi.azureedge.net/api/
Format: JSON (OData)
Rate limit: None
# List all indicators
curl "https://ghoapi.azureedge.net/api/Indicator"
Perfect for: health research, epidemic tracking, public health AI agents.
4. 🌡️ Open-Meteo Weather API
What: Weather forecasts, historical weather, climate data globally
API: https://api.open-meteo.com/v1/forecast
Format: JSON
Rate limit: 10,000 requests/day (free tier)
# Get Beijing 7-day forecast
curl "https://api.open-meteo.com/v1/forecast?latitude=39.9&longitude=116.4&daily=temperature_2m_max"
Perfect for: weather-aware agents, agriculture, logistics optimization.
5. 📈 FRED (Federal Reserve Economic Data) API
What: 800,000+ US & international economic time series
API: https://api.stlouisfed.org/fred/
Format: JSON/XML
Rate limit: 120 requests/minute
# Get US unemployment rate (need free API key)
curl "https://api.stlouisfed.org/fred/series/observations?series_id=UNRATE&api_key=YOUR_KEY&file_type=json"
Perfect for: financial analysis, economic indicators, market research.
🎁 Bonus: Find All of These (and 155 More) with One MCP Tool
Remembering all these APIs is hard. What if your AI agent could search a curated directory of 160+ authoritative data sources?
FirstData is an open-source knowledge base that catalogs verified data sources from governments, international organizations, and research institutions — with MCP integration.
{
"mcpServers": {
"firstdata": {
"url": "https://firstdata.deepminer.com.cn/mcp"
}
}
}
Your AI agent can then:
- Search by domain: "find health data APIs in Asia"
- Filter by authority: government, international org, research institution
- Get detailed metadata: update frequency, API docs, access instructions
⭐ Star on GitHub — MIT licensed, community contributions welcome!
What free data APIs are you using in your AI projects? Share in the comments!
Top comments (0)