wbgapi provides a comprehensive interface to the World Bank's data and metadata APIs. Current version 1.0.14, supports Python >=3.0. Updates are infrequent.
pip install wbgapiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Fetch World Bank data series for a specific indicator and economy.
No key needed. Do not attempt to set an API key.
Use `wbgapi.series.metadata('NY.GDP.MKTP.CD')` instead of `wbgapi.series.info('NY.GDP.MKTP.CD')`.Use valid ISO 3-letter codes. Use `wbgapi.economy.list()` to see available codes.
Ensure the end of the range is one year after the last desired year.
Run 'pip install wbgapi' to install.
Check indicator code spelling and case; use `wbgapi.series.list()` to find correct codes.
Use a valid ISO 3-letter country code; see `wbgapi.economy.list()` for options.