tgherzog / wbgapi

Python module that makes using the World Bank's API a lot easier and more intuitive.
MIT License
140 stars 31 forks source link

issue trying to get data from WDI #35

Closed wxinl closed 6 months ago

wxinl commented 6 months ago

I tried to fetch NV.AGR.TOTL.ZS - Agriculture, value added (% of GDP) from WDI (db=2) or WDI archives (db=57), my code was wb.data.DataFrame('NV.AGR.TOTL.ZS', db=2)

but I got this error: APIResponseError: APIError: JSON decoding error (https://api.worldbank.org/v2/en/sources/57/series/NV.AGR.TOTL.ZS/country/all/time/all?per_page=1000&page=1&format=json)

tgherzog commented 6 months ago

It appears the API is down on the World Bank side, and currently redirecting to a different portal. I've alerted the support team to the issue.

tgherzog commented 6 months ago

Seems to be working again now