Check the Setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Comparable national growth, inflation, labor, fiscal, trade, and forecast indicators for building international outlook and revision tools.
Report a ProblemFrom Source to Product Signal
The World Economic Outlook provides comparable historical estimates and projections for countries and groups. Start with real GDP growth, three countries, and a short period. Projected years are not observations, and releases revise both forecasts and historical estimates.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
response = requests.get(
"https://www.imf.org/external/datamapper/api/v1/NGDP_RPCH/USA/DEU/JPN",
timeout=30,
)
response.raise_for_status()
values = response.json()["values"]["NGDP_RPCH"]
growth = pd.DataFrame(values).sort_index()
print(growth.tail(10))Test a Useful Signal
Compare recent and projected real GDP growth for the United States, Germany, and Japan.
International Monetary Fund is an intergovernmental source. Last verified 2026-09-27. Temporal coverage: 1980-present with projections for approximately five years.