To extract GDP data for the world (by country or region), here are trusted sources you can use — along with their access methods (API, downloads, etc.):
🌐
1. World Bank Open Data
- Data: GDP (current USD, per capita, PPP, growth rate, etc.) for all countries.
- Access:
- World Bank API
- CSV/Excel download
- Example: GDP by country from 1960 onward.
- Free: ✅ Yes
🌐
2. International Monetary Fund (IMF)
- Data: World Economic Outlook (WEO), GDP forecasts, nominal & real GDP.
- Access:
- IMF WEO API
- Manual export from WEO Database
- Free: ✅ Yes
🌐
3. United Nations Statistics Division (UNSD)
- Data: National Accounts, GDP by economic activity, aggregates.
- Access:
- UNData
- Bulk CSV downloads
- Free: ✅ Yes
🌐
4. OECD (for member countries)
- Data: GDP and components, real/nominal/per capita.
- Access:
- OECD API
- OECD Stats Portal
- Free: ✅ Yes
🌐
5. Eurostat (EU countries)
- Data: GDP for EU and Eurozone countries, broken down by sector.
- Access:
- Eurostat API
- Manual download
- Free: ✅ Yes
🏦
6. Bloomberg Terminal (BQL or Excel Add-in)
- Data: Country-level GDP indicators (real/nominal, forecast/actual).
- Access:
- BQL queries in Terminal
- Excel Add-In using Bloomberg formulas
- Free: ❌ Subscription-based
🏛️
7. National Statistical Agencies
Each country publishes GDP data through their central statistics office. Examples:
🛰️
8. Trading Economics / MacroTrends / Knoema
- Data: Aggregated from official sources with visualization.
- Access:
- Web interface
- Limited API access (premium for full features)
- Free: Partial; advanced features are paid.
Bonus: 🌍
Visual Sources
- Gapminder: Historical GDP visualized with population
- Our World in Data: Long-run economic indicators
Would you like Python code to pull GDP from one of these APIs (e.g. World Bank or IMF)?