Wikipedia

FREE
By raygorodskij
Updated 4 months ago
News, Media
6.6/10
Popularity Score
247ms
Latency
100%
Success Rate

Wikipedia API Documentation

Wikipedia is a free online encyclopedia with the aim to allow anyone to edit articles.

View API Details
POSTcomparePages
POSTgetAllImageFromPage
POSTgetCurrentUser
POSTgetFileUrl
POSTgetFileUsage
POSTgetFilesInfo
POSTgetPage
POSTgetPageByRevisionId
POSTgetPageByTitles
POSTgetPageContent
POSTgetPagesCategories
POSTgetRevisionByPageId
POSTgetRevisionByPageTitle
POSTgetWatchList
POSTsendEmailToUser
POSTupdateMessageList
POSTuploadFile
POSTcomparePages

Get the difference between two pages.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
passwordCREDENTIALS
REQUIREDYour password.
usernameCREDENTIALS
REQUIREDYour username.
Optional Parameters
propLIST
OPTIONALWhich pieces of information to get.
customParamsARRAY
OPTIONALAdditional custom query param.Like this `&key=value`.
toRelativeSELECT
OPTIONALUse a revision relative to the revision determined from fromtitle, fromid or fromrev. All of the other 'to' options will be ignored.
fromIdNUMBER
OPTIONALFirst page ID to compare.
toTitleSTRING
OPTIONALSecond title to compare.
toContentFormatSELECT
OPTIONALContent serialization format of totext.
fromTextSTRING
OPTIONALUse this text instead of the content of the revision specified by fromtitle, fromid or fromrev.
toRevisionIdNUMBER
OPTIONALSecond revision to compare.
fromContentFormatSELECT
OPTIONALContent serialization format of fromtext.
toPstSELECT
OPTIONALDo a pre-save transform on totext.
fromRevisionIdNUMBER
OPTIONALFirst revision to compare.
fromTitleSTRING
OPTIONALFirst title to compare.
fromPstSELECT
OPTIONALDo a pre-save transform on fromtext.
toIdNUMBER
OPTIONALSecond page ID to compare.
toContentModelSELECT
OPTIONALContent model of totext. If not supplied, it will be guessed based on the other parameters.
toTextSTRING
OPTIONALUse this text instead of the content of the revision specified by totitle, toid or torev.
fromContentModelSELECT
OPTIONALContent model of fromtext. If not supplied, it will be guessed based on the other parameters.
Code Snippet
unirest.post("https://WikipediaraygorodskijV1.p.rapidapi.com/comparePages")
.header("X-RapidAPI-Host", "WikipediaraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://WikipediaraygorodskijV1.p.rapidapi.com/comparePages
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://WikipediaraygorodskijV1.p.rapidapi.com/comparePages")
.header("X-RapidAPI-Host", "WikipediaraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication