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": "https://ebgreencard.com/wiki/Special:%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",
"default": "text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle|iwlinks|properties|parsewarnings",
"multi": "",
"lowlimit": 50,
"highlimit": 500,
"limit": 50,
"type": [
"text",
"langlinks",
"categories",
"categorieshtml",
"links",
"templates",
"images",
"externallinks",
"sections",
"revid",
"displaytitle",
"headhtml",
"modules",
"jsconfigvars",
"encodedjsconfigvars",
"indicators",
"iwlinks",
"wikitext",
"properties",
"limitreportdata",
"limitreporthtml",
"parsetree",
"parsewarnings",
"headitems"
],
"deprecatedvalues": [
"headitems"
]
},
{
"index": 10,
"name": "wrapoutputclass",
"default": "mw-parser-output",
"type": "string"
},
{
"index": 11,
"name": "pst",
"type": "boolean"
},
{
"index": 12,
"name": "onlypst",
"type": "boolean"
},
{
"index": 13,
"name": "effectivelanglinks",
"deprecated": "",
"type": "boolean"
},
{
"index": 14,
"name": "section",
"type": "string"
},
{
"index": 15,
"name": "sectiontitle",
"type": "string"
},
{
"index": 16,
"name": "disablepp",
"deprecated": "",
"type": "boolean"
},
{
"index": 17,
"name": "disablelimitreport",
"type": "boolean"
},
{
"index": 18,
"name": "disableeditsection",
"type": "boolean"
},
{
"index": 19,
"name": "disabletidy",
"deprecated": "",
"type": "boolean"
},
{
"index": 20,
"name": "disablestylededuplication",
"type": "boolean"
},
{
"index": 21,
"name": "generatexml",
"deprecated": "",
"type": "boolean"
},
{
"index": 22,
"name": "preview",
"type": "boolean"
},
{
"index": 23,
"name": "sectionpreview",
"type": "boolean"
},
{
"index": 24,
"name": "disabletoc",
"type": "boolean"
},
{
"index": 25,
"name": "useskin",
"type": [
"monobook",
"timeless",
"vector",
"minerva"
]
},
{
"index": 26,
"name": "contentformat",
"type": [
"application/json",
"text/plain",
"text/css",
"text/x-wiki",
"text/javascript"
]
},
{
"index": 27,
"name": "contentmodel",
"type": [
"GadgetDefinition",
"flow-board",
"Scribunto",
"sanitized-css",
"JsonSchema",
"wikitext",
"javascript",
"json",
"css",
"text"
]
},
{
"index": 28,
"name": "mobileformat",
"type": "boolean"
},
{
"index": 29,
"name": "noimages",
"type": "boolean"
},
{
"index": 30,
"name": "mainpage",
"type": "boolean"
}
],
"templatedparameters": []
},
{
"name": "phpfm",
"classname": "ApiFormatPhp",
"path": "phpfm",
"group": "format",
"prefix": "",
"source": "MediaWiki",
"sourcename": "MediaWiki",
"licensetag": "GPL-2.0-or-later",
"licenselink": "https://ebgreencard.com/wiki/Special:%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",
"default": "1",
"type": [
"1",
"2",
"latest"
]
}
],
"templatedparameters": []
},
{
"name": "allpages",
"classname": "ApiQueryAllPages",
"path": "query+allpages",
"group": "list",
"prefix": "ap",
"source": "MediaWiki",
"sourcename": "MediaWiki",
"licensetag": "GPL-2.0-or-later",
"licenselink": "https://ebgreencard.com/wiki/Special:%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",
"default": 0,
"type": "namespace"
},
{
"index": 6,
"name": "filterredir",
"default": "all",
"type": [
"all",
"redirects",
"nonredirects"
]
},
{
"index": 7,
"name": "minsize",
"type": "integer"
},
{
"index": 8,
"name": "maxsize",
"type": "integer"
},
{
"index": 9,
"name": "prtype",
"multi": "",
"lowlimit": 50,
"highlimit": 500,
"limit": 50,
"type": [
"edit",
"move",
"upload"
]
},
{
"index": 10,
"name": "prlevel",
"multi": "",
"lowlimit": 50,
"highlimit": 500,
"limit": 50,
"type": [
"",
"autoconfirmed",
"sysop"
]
},
{
"index": 11,
"name": "prfiltercascade",
"default": "all",
"type": [
"cascading",
"noncascading",
"all"
]
},
{
"index": 12,
"name": "limit",
"default": 10,
"type": "limit",
"max": 500,
"highmax": 5000,
"min": 1
},
{
"index": 13,
"name": "dir",
"default": "ascending",
"type": [
"ascending",
"descending"
]
},
{
"index": 14,
"name": "filterlanglinks",
"default": "all",
"type": [
"withlanglinks",
"withoutlanglinks",
"all"
]
},
{
"index": 15,
"name": "prexpiry",
"default": "all",
"type": [
"indefinite",
"definite",
"all"
]
}
],
"templatedparameters": []
},
{
"name": "siteinfo",
"classname": "ApiQuerySiteinfo",
"path": "query+siteinfo",
"group": "meta",
"prefix": "si",
"source": "MediaWiki",
"sourcename": "MediaWiki",
"licensetag": "GPL-2.0-or-later",
"licenselink": "https://ebgreencard.com/wiki/Special:%E7%89%88%E6%9C%AC/License/MediaWiki",
"readrights": "",
"helpurls": [
"https://www.mediawiki.org/wiki/Special:MyLanguage/API:Siteinfo"
],
"parameters": [
{
"index": 1,
"name": "prop",
"default": "general",
"multi": "",
"lowlimit": 50,
"highlimit": 500,
"limit": 50,
"type": [
"general",
"namespaces",
"namespacealiases",
"specialpagealiases",
"magicwords",
"interwikimap",
"dbrepllag",
"statistics",
"usergroups",
"libraries",
"extensions",
"fileextensions",
"rightsinfo",
"restrictions",
"languages",
"languagevariants",
"skins",
"extensiontags",
"functionhooks",
"showhooks",
"variables",
"protocols",
"defaultoptions",
"uploaddialog"
]
},
{
"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": []
}
]
}
}