User:User:Dikshagupta99/Sandbox/API:Get the contents of a page

GET request to retrieve the contents of a page.

There are three main methods for retrieving page contents via the API:


 * 1) Get data about the set of pages by setting titles or page ids(for retrieving wikitext)
 * 2) Specify content explicitely using text, title, revid and content model(for retrieving parsed content)
 * 3) Return plain text or limited HTML extracts of a given page.

Example
The below GET Request is to obtain revision data of pages with titles and

Method 2: Get the content of a page by API:Parsing_wikitext
There are several ways to specify the text to parse:


 * 1) Specify a page or revision, using page, pageid, or oldid.
 * 2) Specify content explicitly, using text, title, revid, and contentmodel.
 * 3) Specify only a summary to parse. prop should be given an empty value.

Example
Get a 175-character extract:

Download Extension
To download extension view-