wbgapi
wbgapi provides a comprehensive interface to the World Bank's data and metadata APIs
Decision gist · record as of 2026-08-14
Yes. WBGAPI is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It fills a clear need for programmatic access to World Bank data with a well-designed, pythonic API. Install it if you need to work with World Bank indicators, development data, or metadata in Python.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with three lightweight runtime dependencies (requests, PyYAML, tabulate).
- Active maintenance with recent commits and a stable release history since 2020.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
last release 2026-02-27 (168 days) · last repo commit 2026-02-27 · 175 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 86,027 downloads/mo, #13,889 on PyPI
Alternatives
Verify before relying
pip install wbgapi
import wbgapi as wb
# List available databases
wb.source.info()
# Fetch population data for USA
for row in wb.data.fetch('SP.POP.TOTL', 'USA'):
print(row)- Whether pandas integration is optional or required for full functionality
- Performance characteristics when querying large datasets or many indicators simultaneously
- Rate limiting or throttling behavior from the World Bank API
What it is and what it does
WBGAPI is a Python wrapper around the World Bank's data APIs that lets you query development indicators, economic statistics, and metadata across multiple World Bank databases. It abstracts away API complexity by organizing data into logical sub-packages (series for indicators, economy for countries, time for periods, source for databases, and others) and providing consistent methods like `list()`, `get()`, `info()`, and `Series()` across each. The package queries databases individually by default, which avoids confusion when the same indicator appears in multiple databases or when databases have different dimensions or time coverage.
You can fetch data as dictionaries or pandas DataFrames, filter by keywords, combine multiple series and countries in a single request, and select specific years or most-recent values. The API is designed to feel natural in Python—using generators, ranges, and sets—and includes extensive docstrings with examples. Optional pandas support lets you work with the results as structured tables with multi-indexing.
Use it for
- Retrieve population, GDP, or other development indicators for countries over time for economic analysis
- Build datasets combining multiple indicators across regions for research or visualization
- Search World Bank metadata to discover available indicators by keyword or topic
- Automate data collection from World Bank databases for dashboards or reporting pipelines
- Explore World Bank data interactively in Jupyter notebooks using the `info()` functions
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
WBGAPI is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It fills a clear need for programmatic access to World Bank data with a well-designed, pythonic API. Install it if you need to work with World Bank indicators, development data, or metadata in Python.
Install
wbgapi on PyPI
Before you install
Low install friction with three lightweight runtime dependencies (requests, PyYAML, tabulate). Active maintenance with recent commits and a stable release history since 2020.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
pip install wbgapi
import wbgapi as wb
# List available databases
wb.source.info()
# Fetch population data for USA
for row in wb.data.fetch('SP.POP.TOTL', 'USA'):
print(row)
Verify before relying
- Whether pandas integration is optional or required for full functionality
- Performance characteristics when querying large datasets or many indicators simultaneously
- Rate limiting or throttling behavior from the World Bank API
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesrequestsPyYAMLtabulate |
| Maintenance | Actively maintained 168 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 86,027 / month, #13,889 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: wbgapi-1.0.14-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fetch development indicators programmatically”
- wbgapiWBGAPI provides a Python interface to query World Bank data and…
- pandas-datareaderFetches macroeconomic and factor data from remote sources like FRED,…
- pymispPyMISP is a Python library that connects to MISP platforms via their…
Give your agent the search over MCP, or paste the wish link into any chat.
More Information Analysis packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyarrow provides Python bindings to Apache Arrow's C++ libraries for efficient columnar data processing, serialization, and interoperability with pandas, NumPy, and other Python ecosystem tools.
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
Snowpark Python provides APIs to query and process data directly in Snowflake without moving data to your local system, with support for both native Snowpark and pandas-compatible interfaces.
Install it if you use Snowflake and want to process data without moving it to your application layer.
See also wbdata · openbb-economy · fredapi · pandas-datareader · beaapi · imfp · openbb-imf · tradingeconomics · pycountry · python-bcb