MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=compare

(main | compare)
  • This module requires read rights.

Get the difference between 2 pages.

A revision number, a page title, or a page ID for both "from" and "to" must be passed.

Parameters:
fromtitle

First title to compare.

fromid

First page ID to compare.

fromrev

First revision to compare.

totitle

Second title to compare.

toid

Second page ID to compare.

torev

Second revision to compare.

Example:
Create a diff between revision 1 and 2.
api.php?action=compare&fromrev=1&torev=2
𐌲𐌰𐌽𐌰𐌼 π†π‚πŒ°πŒΌ "http://unsaiklopedia.org/wiki/Special:ApiHelp"