********************************************************************************************************** ** ** ** This is an auto-generated MediaWiki API documentation page ** ** ** ** Documentation and Examples: ** ** https://www.mediawiki.org/wiki/API ** ** ** ********************************************************************************************************** Status: All features shown on this page should be working, but the API is still in active development, and may change at any time. Make sure to monitor our mailing list for any updates Erroneous requests: When erroneous requests are sent to the API, a HTTP header will be sent with the key "MediaWiki-API-Error" and then both the value of the header and the error code sent back will be set to the same value In the case of an invalid action being passed, these will have a value of "unknown_action" For more information see https://www.mediawiki.org/wiki/API:Errors_and_warnings Documentation: https://www.mediawiki.org/wiki/API:Main_page FAQ https://www.mediawiki.org/wiki/API:FAQ Mailing list: https://lists.wikimedia.org/mailman/listinfo/mediawiki-api Api Announcements: https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce Bugs & Requests: https://bugzilla.wikimedia.org/buglist.cgi?component=API&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=bugs.delta_ts Parameters: format - The format of the output One value: json, jsonfm, php, phpfm, wddx, wddxfm, xml, xmlfm, yaml, yamlfm, rawfm, txt, txtfm, dbg, dbgfm, dump, dumpfm, none Default: xmlfm action - What action you would like to perform. See below for module help One value: login, logout, createaccount, query, expandtemplates, parse, opensearch, feedcontributions,
feedwatchlist, help, paraminfo, rsd, compare, tokens, purge, setnotificationtimestamp, rollback,
delete, undelete, protect, block, unblock, move, edit, upload, filerevert, emailuser, watch, patrol,
import, userrights, options, imagerotate, scribunto-console
Default: help
maxlag - Maximum lag can be used when MediaWiki is installed on a database replicated cluster.
To save actions causing any more site replication lag, this parameter can make the client
wait until the replication lag is less than the specified value.
In case of a replag error, error code "maxlag" is returned, with the message like
"Waiting for $host: $lag seconds lagged
".
See https://www.mediawiki.org/wiki/Manual:Maxlag_parameter for more information
smaxage - Set the s-maxage header to this many seconds. Errors are never cached
Default: 0
maxage - Set the max-age header to this many seconds. Errors are never cached
Default: 0
requestid - Request ID to distinguish requests. This will just be output back to you
servedby - Include the hostname that served the request in the results. Unconditionally shown on error
origin - When accessing the API using a cross-domain AJAX request (CORS), set this to the originating domain.
This must match one of the origins in the Origin: header exactly, so it has to be set to something like http://en.wikipedia.org or https://meta.wikimedia.org .
If this parameter does not match the Origin: header, a 403 response will be returned.
If this parameter matches the Origin: header and the origin is whitelisted, an Access-Control-Allow-Origin header will be set.
*** *** *** *** *** *** *** *** *** *** *** *** *** *** Modules *** *** *** *
đang được dịch, vui lòng đợi..