API:Main page

From MediaWiki.org
(Redirected from API)
Jump to navigation Jump to search
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Esperanto • ‎Nederlands • ‎Taqbaylit • ‎Tiếng Việt • ‎Türkçe • ‎azərbaycanca • ‎dansk • ‎español • ‎français • ‎italiano • ‎lietuvių • ‎polski • ‎português • ‎português do Brasil • ‎română • ‎čeština • ‎български • ‎русский • ‎українська • ‎עברית • ‎العربية • ‎سنڌي • ‎فارسی • ‎پښتو • ‎मराठी • ‎हिन्दी • ‎বাংলা • ‎ಕನ್ನಡ • ‎ไทย • ‎中文 • ‎文言 • ‎日本語 • ‎粵語 • ‎ꯃꯤꯇꯩ ꯂꯣꯟ • ‎한국어

Overview

This page provides an overview of the MediaWiki action API. This page is intended for technical contributors and software developers who wish to understand and use the MediaWiki action API.

Quick Start

Endpoint

All Wikimedia wikis have endpoints that follow this pattern: https://www.example.org/w/api.php

Examples of Wikimedia Wiki Endpoints
API Endpoint Wiki
https://www.mediawiki.org/w/api.php MediaWiki API
https://meta.wikimedia.org/w/api.php Meta-Wiki API
https://en.wikipedia.org/w/api.php English Wikipedia API
https://nl.wikipedia.org/w/api.php Dutch Wikipedia API
https://commons.wikimedia.org/w/api.php Wikimedia Commons API
https://test.wikipedia.org/w/api.php Test Wiki API

Introduction

The MediaWiki action API is a web service that allows access to some wiki-features like authentication, page operations, and search. It can provide meta information about the wiki and the logged-in user.

Uses for the MediaWiki Action API

  • Monitor a MediaWiki installation
  • Create a bot to maintain a MediaWiki installation
  • Log into a wiki, access data, and post changes by making HTTP requests to the web service

Getting started with MediaWiki action API

Before you start using the MediaWiki action API, you should review the following pages:

These terms apply to you when you access or edit using the API, just as they do when you use your web browser.

Other APIs

If you do not find what you are looking for in this API documentation, there are many other APIs related to Wikimedia projects. See the Web APIs hub for information on other APIs for Wikimedia project data and their usage.

Code stewardship