This page is part of the MediaWiki Action API documentation.
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 .
Last activity refers to the last commit in the repository.
Dates and version numbers were updated on 2019-06-19.
Awk
Nomo
Priskribo
Last release
Release date
Last activity
BotWikiAwk
Framework and libraries for creating bots. Includes example bots.
la 27-a de marto 2019
Wikiget
Awk CLI program to interface with MediaWiki API for read/write including OAuth.
la 8-a de junio 2019
Bash
Name
Description
Last release
Release date
Last activity
bash-mediawiki
An example with Curl that allows easy editing/uploading of a wiki through the MediaWiki API.
la 17-a de aŭgusto 2021
C++
Nomo
Priskribo
Last release
Release date
Last activity
libmediawiki
A library that allows easy editing of a wiki through the MediaWiki API.
la 9-a de septembro 2017
Common Lisp
Nomo
Priskribo
Last release
Release date
Last activity
cl-mediawiki
A Common Lisp wrapper for the MediaWiki API.
la 10-a de novembro 2016
Elixir
Name
Description
Last release
Release Date
Last activity
mediawiki_client_ex
Adapter for the Action API, EventStreams, and ORES. (Documentation )
0.4.1
la 20-a de decembro 2022
la 21-a de decembro 2022
Go
Nomo
Priskribo
Last release
Release date
Last activity
go-mediawiki
Go wrapper for the MediaWiki API.
v0.1
la 4-a de novembro 2013
la 8-a de februaro 2017
go-mwclient
Wrapper for the MediaWiki API (supports maxlag, query continuations, OAuth).
v1.2.0
la 3-a de junio 2020
la 3-a de junio 2020
Haskell
Nomo
Priskribo
Last release
Release date
Last activity
haskell mediawiki
A complete Haskell binding to the MediaWiki API letting you programmatically access (read and write) MediaWiki content.
0.2.6
la 20-a de novembro 2013
la 20-a de novembro 2013
Java
Nomo
Priskribo
Last release
Release date
Last activity
JavaWikiBotFramework
A library to retrieve data from and maintain MediaWiki-based wikis such as Wikipedia.
4.0.0
la 13-a de septembro 2016
la 15-a de februaro 2019
jwiki
A library for effortlessly interacting with Wikipedia/MediaWiki.
1.8.0
la 14-a de aprilo 2020
la 6-a de majo 2020
Bliki Engine
Can convert wikicode to HTML, DocBook or PDF. Has a helper library for API calls.
la 27-a de aprilo 2019
More Java libraries available at API:Client_code/All#Java .
JavaScript
Nomo
Priskribo
Last release
Release date
Last activity
mwn (Node.js)
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.
v2.0.2
la 30-a de septembro 2023
la 6-a de aprilo 2024
mwbot (Node.js)
MWBot uses the Promise pattern and other ES6 methodologies, optimised for creating bots that make edits. Works with any MediaWiki site.
v2.0.0
la 30-a de oktobro 2017
la 1-a de februaro 2021
nodemw (Node.js)
A generic MediaWiki API client for Node.js.
v0.16.0
la 16-a de septembro 2018
la 29-a de oktobro 2021
wikiapi (Node.js)
A simple way to access MediaWiki API via JavaScript with simple wikitext parser.
v1.16.0
la 1-a de oktobro 2020
la 22-a de oktobro 2021
mediawiki.api (browser)
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.
Maintained as part of MediaWiki.
In-wiki JavaScript clients:
Nomo
Priskribo
Last release
Release date
Last activity
mwapilib2
A layer overtop of the requests. Make JS gadgets easier.
la 25-a de septembro 2016
JsMwApi
A convenience wrapper around raw requests, with some helpers for editing and parsing.
la 11-a de junio 2014
More JavaScript libraries available at API:Client_code/All#JavaScript .
Lua
Nomo
Priskribo
Last release
Release date
Last activity
dtMediaWiki
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.
la 20-a de septembro 2018
MATLAB
Nomo
Priskribo
Last release
Release date
Last activity
MatWiki
A preliminary (as of Feb 2019) MATLAB R2016b(9.1.x) client supporting just bot-logins & semantic #ask queries.
v1.0.0
la 19-a de februaro 2019
la 19-a de februaro 2019
.NET
Nomo
Priskribo
Last release
Release date
Last activity
WikiFunctions
Library with classes for editing and getting lists of pages via the API, used by AutoWikiBrowser .
6.2.1.0
la 8-a de junio 2021
la 5-a de oktobro 2023
LinqToWiki
Strongly typed library for accessing most of MediaWiki API, with support for autocompletion.
1.5.0
la 7-a de majo 2015
la 7-a de majo 2015
WikiClientLibrary
A .NET Standard & asynchronous MediaWiki API client library for wiki sites. The library also supports Flow/Wikibase/Wikia-specific API.
v0.7.5
la 31-a de januaro 2021
la 5-a de novembro 2022
More .NET libraries available at API:Client code/All#.NET .
OCaml
Nomo
Priskribo
Last release
Release date
Last activity
ocaml-mediawiki
A high-level binding for the MediaWiki API written in OCaml.
la 29-a de aŭgusto 2012
Perl
PHP
Nomo
Priskribo
Last release
Release date
Last activity
mediawiki-api-base
Library for basic MediaWiki api use.
2.4.0
la 2-a de novembro 2017
la 9-a de julio 2019
mediawiki-api
A simple library for interacting with the MediaWiki API.
0.7.2
la 20-a de novembro 2017
la 6-a de aprilo 2019
wikibase-api
Library for querying Wikidata .
0.7
la 4-a de julio 2016
la 17-a de aŭgusto 2018
More PHP libraries available at API:Client code/All#PHP .
Python
Nomo
Type hints
Priskribo
Last release
Release date
Last activity
Pywikibot (docs )
Yes
A collection of Python scripts and a powerful library for bot writing. (PyPI ) (Git repository ) (#pywikibot connect ) (Evaluation ).
9.5.0
la 30-a de oktobro 2024
oktobro 2024
pwiki (docs )
Yes
A Python library for developing bots/tools, focused on ease of use and simplicity.
1.1.1
la 15-a de oktobro 2021
la 28-a de majo 2022
mwclient (docs )
No
Python library that makes most of the API functions accessible. (PyPI ) (Evaluation ).
0.10.1
la 28-a de majo 2020
la 26-a de septembro 2021
wiki-scripts (docs )
No
Framework for writing bots, maintenance scripts or performing data analysis.
1.2
la 31-a de decembro 2017
la 13-a de junio 2019
Simple Python wrappers for no-abstraction interfaces to the MediaWiki API and basic session handling:
Nomo
Type hints
Priskribo
Last release
Release date
Last activity
pywikiapi
No
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.
1.3.2
la 13-a de aprilo 2019
la 13-a de aprilo 2019
Wikipedia (docs )
No
A Python library that makes it easy to access and parse data from Wikipedia.
v1.1
la 24-a de decembro 2013
la 11-a de novembro 2016
wikitools
No
Provides several layers of abstraction around the API. Doesn't support Python 3.
0.41
la 7-a de junio 2015
la 28-a de aŭgusto 2016
More Python libraries available at API:Client code/All#Python .
R
Nomo
Priskribo
Last release
Release date
Last activity
WikipediR
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.
1.5.0
la 15-a de februaro 2017
la 15-a de februaro 2017
Ruby
More Ruby libraries available at API:Client code/All#Ruby .
Rust
Nomo
Priskribo
Last release
Release date
Last activity
Wikibase RS
Rust library to talk to the Wikibase API and serialize data into Rust data structures.
0.37
la 19-a de junio 2019
la 19-a de junio 2019
mediawiki_rust
A MediaWiki client library in Rust.
la 16-a de novembro 2020
mwbot-rs
A framework for writing bots on MediaWiki
0.4.3
la 15-a de oktobro 2022
la 5-a de novembro 2022
wiki
Library for interacting with MediaWiki APIs
0.0.3
la 10-a de aŭgusto 2022
la 5-a de novembro 2022
More Rust libraries available at API:Client code/All#Rust .
Scala
Nomo
Priskribo
Last release
Release date
Last activity
scalawiki
MediaWiki client in Scala.
0.6.3
la 17-a de septembro 2020
la 28-a de septembro 2019
dbpedia extraction framework
Data extraction framework for DBpedia with support Wiki source retrieved via MediaWiki API.
DBpedia_2015-10
la 25-a de julio 2016
la 13-a de aprilo 2019
scmw
Simple MediaWiki API wrapper for needs of Commonist image upload tool.
v-0.140.0
la 22-a de decembro 2017
la 22-a de decembro 2017
Vidu ankaŭ