Hey, I’m trying to extract the whole IFS dataset using IMF API in python. Based on the documentation, it is possible to extract all the data related to specific indicators, but I cannot find a way to download the whole dataset all at once.
Do you have any suggestion?
import requests # Python 3.6
url = ‘http://dataservices.imf.org/REST/SDMX_JSON.svc/’
key = ‘CompactData/IFS/M**.GB.PMP_IX**’ # adjust codes here
Navigate to series in API-returned JSON data
data = (requests.get(f’{url}{key}').json()
[‘CompactData’][‘DataSet’][‘Series’])
I thought it would have been sufficient to remove everything after the ‘freq’, but it seems not working.