![]() Values (separate with '|'): edit, delete, protect, move, block, unblock, email, import Intoken - Request a token to perform a data-modifying action on a page Values (separate with '|'): protection, talkid, watched, subjectid, url, readable, preload Preload - Gives the text returned by EditFormPreloadText Readable - Whether the user can read this page Url - Gives a full URL to the page, and also an edit URL Subjectid - The page ID of the parent page for each talk page Watched - List the watched status of each page Talkid - The page ID of the talk page for each non-talk page Protection - List the protection level of each page Inprop - Which additional properties to get: Get basic page information such as namespace, title, last touched date. Can only be used with exportĪpi.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20Page&rvprop=user|comment api.php?action=query&generator=allpages&gapprefix=API/&prop=revisions Indexpageids - Include an additional pageids section listing all returned page IDs.Įxport - Export the current revisions of all given or generated pagesĮxportnowrap - Return the export XML without wrapping it in an XML result (same format as Special:Export). Redirects - Automatically resolve redirects One value: links, images, templates, categories, duplicatefiles, allimages, allpages, alllinks, allcategories, backlinks, categorymembers, embeddedin, imageusage, search, watchlist, watchlistraw, exturlusage, random, protectedtitles NOTE: generator parameter names must be prefixed with a 'g', see examples. Generator - Use the output of a list as the input for other prop/list/meta items Values (separate with '|'): siteinfo, userinfo, allmessages Meta - Which meta data to get about the site ![]() Values (separate with '|'): allimages, allpages, alllinks, allcategories, allusers, backlinks, blocks, categorymembers, deletedrevs, embeddedin, imageusage, logevents, recentchanges, search, tags, usercontribs, watchlist, watchlistraw, exturlusage, users, random, protectedtitles Values (separate with '|'): info, revisions, links, langlinks, images, imageinfo, templates, categories, extlinks, categoryinfo, duplicatefiles Prop - Which properties to get for the titles/revisions/pageids Revids - A list of revision IDs to work on 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. This module is used to logout and clear session data Lgtoken - Login token obtained in first requestĪpi.php?action=login&lgname=user&lgpassword=password * action=logout * 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 This module is used to login and get the authentication tokens. 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. Version - When showing help, include version for each module One value: login, logout, query, expandtemplates, parse, opensearch, feedwatchlist, help, paraminfo, purge, rollback, delete, undelete, protect, block, unblock, move, edit, upload, emailuser, watch, patrol, import, userrights 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 ![]() Make sure to monitor our mailing list for any updates. Is still in active development, and may change at any time. Status: All features shown on this page should be working, but the API
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |