Client libraries contain code that developers can use to help with common and basic tasks, so that they don't have to write the code from scratch when their projects interact with an API.
This page contains a set of lists, by language, of several recommended client libraries that can be used with the MediaWiki Action API.The recommendations are based on evaluations using API:Client_code/Gold_standard.
Mwn is a modern and feature-rich API client with support for both JavaScript and TypeScript.Has classes for conveniently working with page titles and parsing wikitext.Supports both OAuth and BotPasswords.
Generic MediaWiki API client for client-side JavaScript.It ships with MediaWiki core as a ResourceLoader module bundle.It abstracts some high-level concepts and provides a generic client for other queries.
Makes query (tokens, userinfo), clientlogin, upload, and logout calls.It handles HTTPS requests and cookies and can be used to upload files to Wikimedia Commons.
Sometimes people try to use these kind of libraries to access a MediaWiki installation on the same server.This is often unnecessary because MediaWiki itself is written in PHP, especially when the only purpose of the script is interacting with MediaWiki.With requireWebStart.php (MW_INSTALL_PATH may need to be set beforehand, see Manual:$IP), a script gets access to MediaWiki components and consequently it can call the API internally or use other MediaWiki classes and functions directly, which greatly reduces server load.
A minimalistic library that handles some of the core MediaWiki API complexities like handling continuations, login, errors, and warnings, but does not impose any additional abstraction layers.
A wrapper for the MediaWiki API, aimed particularly at the Wikimedia 'production' wikis, such as Wikipedia.Can be used to retrieve page text, information about users or the history of pages, and elements of the category tree.