probe-gate
Demonstrates fetching complete time series data for a specific indicator and country. Returns all available years from 1980 to projections through 2030.
curl 'https://www.imf.org/external/datamapper/api/v1/NGDP_RPCH/USA'
import requests
resp = requests.get("https://www.imf.org/external/datamapper/api/v1/NGDP_RPCH/USA")
data = resp.json()
import zingu_apis
api = zingu_apis.api("imf")
result = api.fetch("v1/data/{datasetCode}/{period}")
for item in result:
print(item)
const resp = await fetch("https://www.imf.org/external/datamapper/api/v1/NGDP_RPCH/USA");
const data = await resp.json();