$npx skillfedfor your agent

Wikipedia-API

Python Wrapper for Wikipedia

Worth itPyPI Python ModulesReleased May 202619.1M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — wikipedia_api-0.15.0-py3-none-any.whl
v0.15.0 · released 2026-05-26 · Python >=3.10 · 3 runtime deps: click, httpx, tenacity

Yes. The package is actively maintained, has no security vulnerabilities, uses a permissive MIT license, and installs with low friction. It's well-suited for any project that needs to programmatically access Wikipedia content. The dual sync/async API design makes it flexible for both simple scripts and production async applications.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; user-agent must include contact information per Wikimedia Foundation policy.
  • Low friction install with three lightweight runtime dependencies (click, httpx, tenacity).
  • Active maintenance with a recent release 80 days ago and 746 repository stars.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) — you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2026-05-26 (80 days) · last repo commit 2026-08-12 · 746 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 19,140,409 downloads/mo, #1,073 on PyPI

Verify before relying

pip install wikipedia-api

import wikipediaapi
wiki = wikipediaapi.Wikipedia(user_agent='MyProject (contact@example.com)', language='en')
page = wiki.page('Python_(programming_language)')
print(page.summary)
  • Rate limiting or throttling behavior when making repeated Wikipedia API calls
  • Handling of Wikipedia redirects and disambiguation pages
  • Performance characteristics for large-scale batch page retrieval
Same gist for agents: .md · .json

What it is and what it does

Wikipedia-API wraps Wikipedia's MediaWiki API to let you programmatically fetch and parse Wikipedia pages. It provides both a synchronous Wikipedia client and an asynchronous AsyncWikipedia client, so you can choose blocking or non-blocking I/O depending on your application's needs. You initialize a client with a user-agent string and language code, then call .page() to retrieve a page object. From there you can access the page's summary, full text, sections with recursion support, links, categories, translations, and metadata like URLs and page IDs. The library handles underlying HTTP requests via httpx and uses tenacity for retry logic.

The synchronous API returns data directly from properties like page.summary and page.text, while the async API makes those same properties awaitable coroutines. Both APIs support extracting text in wiki markup or HTML format. The library is actively maintained, supports Python 3.10 and later, and has no known security vulnerabilities.

Use it for

  • Scrape Wikipedia summaries and full article text for knowledge base or research tools
  • Build a chatbot or Q&A system that retrieves Wikipedia content to answer user queries
  • Extract page sections and structure for content analysis or document processing pipelines
  • Fetch Wikipedia links and categories to build knowledge graphs or topic relationship maps
  • Integrate Wikipedia data into async applications without blocking the event loop

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no security vulnerabilities, uses a permissive MIT license, and installs with low friction. It's well-suited for any project that needs to programmatically access Wikipedia content. The dual sync/async API design makes it flexible for both simple scripts and production async applications.

Install

wikipedia-api on PyPI

Before you install

Low friction install with three lightweight runtime dependencies (click, httpx, tenacity). Active maintenance with a recent release 80 days ago and 746 repository stars. Requires Python 3.10 or later.

Requires Python 3.10 or later; user-agent must include contact information per Wikimedia Foundation policy.

License in practice

MIT license (permissive) — you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install wikipedia-api

import wikipediaapi
wiki = wikipediaapi.Wikipedia(user_agent='MyProject (contact@example.com)', language='en')
page = wiki.page('Python_(programming_language)')
print(page.summary)

Verify before relying

  • Rate limiting or throttling behavior when making repeated Wikipedia API calls
  • Handling of Wikipedia redirects and disambiguation pages
  • Performance characteristics for large-scale batch page retrieval

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
clickhttpxtenacity
MaintenanceActively maintained 80 days since the last release
Last repo commit
First released
Downloads19,140,409 / month, #1,073 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Communications :: EmailTopic :: Software Development :: Libraries :: Python Modules

Evidence: wikipedia_api-0.15.0-py3-none-any.whl

Tags

Capabilities
wikipedia api wrapper pythonfetch wikipedia page contentwikipedia async clientextract wikipedia text sectionswikipedia page metadata retrievalmediawiki api python wrapperwikipedia page summary extraction
Topics
wikipedia-integrationasync-supportweb-scraping
PyPI keywords
APIWikipediawrapper

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 › “wikipedia api wrapper python”

  • Wikipedia-APIWikipedia-API is a Python wrapper for Wikipedia's MediaWiki API that…
  • wikipediaProvides simple Python access to Wikipedia article data through the…
  • mwclientmwclient is a Python client library for the MediaWiki API that…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also wikipedia · wikipedia-mcp · pywikibot · mwclient · mwparserfromhell · mwxml · algoliasearch · mwtypes · trec-car-tools · waybackpy