The IMF provides several APIs for interacting with their multitude of databases. The DataMapper API is particularly useful for retrieving common macroeconomic time series data - both historical and forecast data.
This repo presents a comparison of synchronous vs asynchronous requests and aims to ensure quick and easy retrival of time series datasets.