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.

Methods
There are basically three main methods to get the content of the page. These are defined below:

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