
Values (separate with '|'): allcategories, allimages, alllinks, allpages, allusers, backlinks, blocks, categorymembers,ĭeletedrevs, embeddedin, exturlusage, filearchive, imageusage, iwbacklinks, langbacklinks, Langlinks, pageprops, revisions, stashimageinfo, templates Values (separate with '|'): categories, categoryinfo, duplicatefiles, extlinks, images, imageinfo, info, links, iwlinks, Prop - Which properties to get for the titles/revisions/pageids. Revids - A list of revision IDs to work on Maximum number of values 50 (500 for bots) Query API module allows applications to get needed pieces of data from the MediaWiki databases,Īnd is loosely based on the old query.php interface.Īll data modifications will first have to use query to acquire a token to prevent abuse from malicious sites Lgtoken - Login token obtained in first requestĪpi.php?action=login&lgname=user&lgpassword=password
#Princeton mergex api password
This is to prevent password guessing by automated password crackers In the event of a failed log-in, you will notīe able to attempt another log-in through this method for 5 seconds. In the event of a successful log-in, a cookie will be attached Log in and get the authentication tokens. If this parameter matches the Origin: header and the origin is whitelisted, an Access-Control-Allow-Origin header will be set. If this parameter does not match the Origin: header, a 403 response will be returned. This must match one of the origins in the Origin: header exactly, so it has to be set to something like or. Origin - When accessing the API using a cross-domain AJAX request (CORS), set this to the originating domain. Servedby - Include the hostname that served the request in the results. Requestid - Request ID to distinguish requests. Maxage - Set the max-age header to this many seconds. Smaxage - Set the s-maxage header to this many seconds. "Waiting for $host: $lag seconds lagged\n". In case of a replag error, a HTTP 503 error is returned, with the message like Wait until the replication lag is less than the specified value.

To save actions causing any more site replication lag, this parameter can make the client Maxlag - Maximum lag can be used when MediaWiki is installed on a database replicated cluster. Version - When showing help, include version for each module Protect, block, unblock, move, edit, upload, filerevert, emailuser, watch, patrol, import, Paraminfo, rsd, compare, tokens, purge, setnotificationtimestamp, rollback, delete, undelete, One value: login, logout, query, expandtemplates, parse, opensearch, feedcontributions, feedwatchlist, help,

One value: json, jsonfm, php, phpfm, wddx, wddxfm, xml, xmlfm, yaml, yamlfm, rawfm, txt, txtfm, dbg, dbgfm,Īction - What action you would like to perform.

In the case of an invalid action being passed, these will have a value
#Princeton mergex api code
Header and the error code sent back will be set to the same value With the key "MediaWiki-API-Error" and then both the value of the Make sure to monitor our mailing list for any updatesĮrroneous requests: When erroneous requests are sent to the API, a HTTP header will be sent

Is still in active development, and may change at any time. Status: All features shown on this page should be working, but the API
