IMF Data
The International Monetary Fund is one of the primary keepers of the world's macroeconomic and financial statistics, the figures finance ministries, central banks, and economists use to read the state of the global economy. Its data portal pulls several flagship collections into a single place. The best known is International Financial Statistics, a decades-long record of balance of payments, interest rates, national accounts, prices, production, trade, and population for more than 200 countries. Around it sit the World Economic Outlook, Government Finance Statistics, and Direction of Trade Statistics, each a long run of consistent time series.
For a RAG build, the cleanest route in is the IMF data API, which serves each series as JSON and follows SDMX, the shared standard statistical agencies use to move data and its metadata together. You request a database, indicator, country, and time range, and receive coded numeric series with human-readable labels. Because those values arrive as tables rather than sentences, the step that pays off is rendering each observation as a short line of prose ("in 2023, country X recorded consumer price inflation of...") before you embed it, so your retriever has real text to match a question against. Bulk files are also there if you would rather work offline.
It fits any assistant that needs to answer economic or financial questions with authoritative, cross-country numbers: policy tools, macro research helpers, or a chatbot that must cite official inflation or balance-of-payments data. The series are cleaned and consistently coded, which spares you a great deal of wrangling.
Watch two things. This is data, not explanation, so on its own it will not tell a user what a figure means; pair it with narrative sources for context. Coverage and revision practices also differ from country to country. Attribution is required, and the IMF's terms are not a blanket open licence, so confirm the conditions on a specific series before you ship anything commercial.
Among its neighbours, World Bank Open Data and UN Data are stronger for development and social indicators, and the OECD for detail on member economies. The IMF leads the group on monetary, fiscal, and balance-of-payments coverage.
Related sources
Eurostat
The statistical office of the European Union, providing official statistics for Europe. Covers the economy, population, environment, agriculture, trade, and more across EU member states, with harmonised figures that let you compare countries on a like-for-like basis.
FRED (Federal Reserve Economic Data)
A large online database of macroeconomic and financial time series maintained by the Federal Reserve Bank of St. Louis, with around 845,000 series drawn from over 120 public and private sources. Free to access through a REST API returning JSON or XML.
OECD Data
Reports, data, and publications on the economic, environmental, and social conditions in hundreds of countries. Includes International Development Statistics covering aid volume, origin, and types, plus the Creditor Reporting System with detailed information on individual aid activities.
Our World in Data
Research and interactive visualisations on global problems, built by aggregating and harmonising data from official sources. Every chart can be downloaded as a ZIP containing a CSV file, JSON metadata, and a README, and the underlying data is available programmatically via an API. Full provenance is documented for every dataset.