MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{ "paraminfo": { "helpformat": "none", "modules": [ { "name": "parse", "classname": "ApiParse", "path": "parse", "group": "action", "prefix": "", "source": "MediaWiki", "sourcename": "MediaWiki", "licensetag": "GPL-2.0-or-later", "licenselink": "http://lib.gdufe.edu.cn/wiki/index.php/%E7%89%B9%E6%AE%8A:%E7%89%88%E6%9C%AC/License/MediaWiki", "readrights": "", "helpurls": [ "https://www.mediawiki.org/wiki/Special:MyLanguage/API:Parsing_wikitext#parse" ], "parameters": [ { "index": 1, "name": "title", "type": "string" }, { "index": 2, "name": "text", "type": "text" }, { "index": 3, "name": "revid", "type": "integer" }, { "index": 4, "name": "summary", "type": "string" }, { "index": 5, "name": "page", "type": "string" }, { "index": 6, "name": "pageid", "type": "integer" }, { "index": 7, "name": "redirects", "type": "boolean" }, { "index": 8, "name": "oldid", "type": "integer" }, { "index": 9, "name": "prop", "type": [ "categories", "categorieshtml", "displaytitle", "encodedjsconfigvars", "externallinks", "headhtml", "images", "indicators", "iwlinks", "jsconfigvars", "langlinks", "limitreportdata", "limitreporthtml", "links", "modules", "parsetree", "parsewarnings", "parsewarningshtml", "properties", "revid", "sections", "subtitle", "templates", "text", "wikitext", "headitems" ], "default": "text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle|iwlinks|properties|parsewarnings", "multi": "", "lowlimit": 50, "highlimit": 500, "limit": 50, "deprecatedvalues": [ "headitems" ] }, { "index": 10, "name": "wrapoutputclass", "type": "string", "default": "mw-parser-output" }, { "index": 11, "name": "pst", "type": "boolean" }, { "index": 12, "name": "onlypst", "type": "boolean" }, { "index": 13, "name": "effectivelanglinks", "type": "boolean", "deprecated": "" }, { "index": 14, "name": "section", "type": "string" }, { "index": 15, "name": "sectiontitle", "type": "string" }, { "index": 16, "name": "disablepp", "type": "boolean", "deprecated": "" }, { "index": 17, "name": "disablelimitreport", "type": "boolean" }, { "index": 18, "name": "disableeditsection", "type": "boolean" }, { "index": 19, "name": "disablestylededuplication", "type": "boolean" }, { "index": 20, "name": "generatexml", "type": "boolean", "deprecated": "" }, { "index": 21, "name": "preview", "type": "boolean" }, { "index": 22, "name": "sectionpreview", "type": "boolean" }, { "index": 23, "name": "disabletoc", "type": "boolean" }, { "index": 24, "name": "useskin", "type": [ "monobook", "timeless", "vector" ] }, { "index": 25, "name": "contentformat", "type": [ "application/json", "application/octet-stream", "application/unknown", "application/x-binary", "text/css", "text/javascript", "text/plain", "text/unknown", "text/x-wiki", "unknown/unknown" ] }, { "index": 26, "name": "contentmodel", "type": [ "css", "javascript", "json", "text", "unknown", "wikitext" ] } ], "templatedparameters": [] }, { "name": "phpfm", "classname": "ApiFormatPhp", "path": "phpfm", "group": "format", "prefix": "", "source": "MediaWiki", "sourcename": "MediaWiki", "licensetag": "GPL-2.0-or-later", "licenselink": "http://lib.gdufe.edu.cn/wiki/index.php/%E7%89%B9%E6%AE%8A:%E7%89%88%E6%9C%AC/License/MediaWiki", "readrights": "", "helpurls": [ "https://www.mediawiki.org/wiki/Special:MyLanguage/API:Data_formats" ], "parameters": [ { "index": 1, "name": "wrappedhtml", "type": "boolean" }, { "index": 2, "name": "formatversion", "type": [ "1", "2", "latest" ], "default": "1" } ], "templatedparameters": [] }, { "name": "allpages", "classname": "ApiQueryAllPages", "path": "query+allpages", "group": "list", "prefix": "ap", "source": "MediaWiki", "sourcename": "MediaWiki", "licensetag": "GPL-2.0-or-later", "licenselink": "http://lib.gdufe.edu.cn/wiki/index.php/%E7%89%B9%E6%AE%8A:%E7%89%88%E6%9C%AC/License/MediaWiki", "readrights": "", "generator": "", "helpurls": [ "https://www.mediawiki.org/wiki/Special:MyLanguage/API:Allpages" ], "parameters": [ { "index": 1, "name": "from", "type": "string" }, { "index": 2, "name": "continue", "type": "string" }, { "index": 3, "name": "to", "type": "string" }, { "index": 4, "name": "prefix", "type": "string" }, { "index": 5, "name": "namespace", "type": "namespace", "default": 0 }, { "index": 6, "name": "filterredir", "type": [ "all", "nonredirects", "redirects" ], "default": "all" }, { "index": 7, "name": "minsize", "type": "integer" }, { "index": 8, "name": "maxsize", "type": "integer" }, { "index": 9, "name": "prtype", "type": [ "edit", "move", "upload" ], "multi": "", "lowlimit": 50, "highlimit": 500, "limit": 50 }, { "index": 10, "name": "prlevel", "type": [ "", "autoconfirmed", "sysop" ], "multi": "", "lowlimit": 50, "highlimit": 500, "limit": 50 }, { "index": 11, "name": "prfiltercascade", "type": [ "all", "cascading", "noncascading" ], "default": "all" }, { "index": 12, "name": "limit", "type": "limit", "default": 10, "min": 1, "max": 500, "highmax": 5000 }, { "index": 13, "name": "dir", "type": [ "ascending", "descending" ], "default": "ascending" }, { "index": 14, "name": "filterlanglinks", "type": [ "all", "withlanglinks", "withoutlanglinks" ], "default": "all" }, { "index": 15, "name": "prexpiry", "type": [ "all", "definite", "indefinite" ], "default": "all" } ], "templatedparameters": [] }, { "name": "siteinfo", "classname": "ApiQuerySiteinfo", "path": "query+siteinfo", "group": "meta", "prefix": "si", "source": "MediaWiki", "sourcename": "MediaWiki", "licensetag": "GPL-2.0-or-later", "licenselink": "http://lib.gdufe.edu.cn/wiki/index.php/%E7%89%B9%E6%AE%8A:%E7%89%88%E6%9C%AC/License/MediaWiki", "readrights": "", "helpurls": [ "https://www.mediawiki.org/wiki/Special:MyLanguage/API:Siteinfo" ], "parameters": [ { "index": 1, "name": "prop", "type": [ "dbrepllag", "defaultoptions", "extensions", "extensiontags", "fileextensions", "functionhooks", "general", "interwikimap", "languages", "languagevariants", "libraries", "magicwords", "namespacealiases", "namespaces", "protocols", "restrictions", "rightsinfo", "showhooks", "skins", "specialpagealiases", "statistics", "uploaddialog", "usergroups", "variables" ], "default": "general", "multi": "", "lowlimit": 50, "highlimit": 500, "limit": 50 }, { "index": 2, "name": "filteriw", "type": [ "!local", "local" ] }, { "index": 3, "name": "showalldb", "type": "boolean" }, { "index": 4, "name": "numberingroup", "type": "boolean" }, { "index": 5, "name": "inlanguagecode", "type": "string" } ], "templatedparameters": [] } ] } }