API reference#

High-level request structure#

User code mainly interacts with pywikibot.Page objects, which represent pages on a specific wiki. These objects get their properties by calling functions on their associated pywikibot.Site object, which represents a specific wiki.

The pywikibot.Site object then calls the MediaWiki API using the functions provided by data.api. This layer then uses comms.http.request() to do the actual HTTP request.

Table of contents#