Результат MediaWiki API
Это HTML-представление формата JSON. HTML хорош для отладки, но неудобен для практического применения.
Укажите параметр format для изменения формата вывода. Для отображения не-HTML-представления формата JSON, присвойте format=json.
См. полную документацию или справку API для получения дополнительной информации.
{
"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://wiki.megatec.ru/index.php/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%92%D0%B5%D1%80%D1%81%D0%B8%D1%8F/License/MediaWiki",
"readrights": "",
"helpurls": [
"https://www.mediawiki.org/wiki/Special:MyLanguage/API:Parsing_wikitext#parse"
],
"parameters": [
{
"name": "title",
"type": "string"
},
{
"name": "text",
"type": "text"
},
{
"name": "revid",
"type": "integer"
},
{
"name": "summary",
"type": "string"
},
{
"name": "page",
"type": "string"
},
{
"name": "pageid",
"type": "integer"
},
{
"name": "redirects",
"type": "boolean"
},
{
"name": "oldid",
"type": "integer"
},
{
"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"
]
},
{
"name": "wrapoutputclass",
"default": "mw-parser-output",
"type": "string"
},
{
"name": "pst",
"type": "boolean"
},
{
"name": "onlypst",
"type": "boolean"
},
{
"name": "effectivelanglinks",
"deprecated": "",
"type": "boolean"
},
{
"name": "section",
"type": "string"
},
{
"name": "sectiontitle",
"type": "string"
},
{
"name": "disablepp",
"deprecated": "",
"type": "boolean"
},
{
"name": "disablelimitreport",
"type": "boolean"
},
{
"name": "disableeditsection",
"type": "boolean"
},
{
"name": "disabletidy",
"type": "boolean"
},
{
"name": "disablestylededuplication",
"type": "boolean"
},
{
"name": "generatexml",
"deprecated": "",
"type": "boolean"
},
{
"name": "preview",
"type": "boolean"
},
{
"name": "sectionpreview",
"type": "boolean"
},
{
"name": "disabletoc",
"type": "boolean"
},
{
"name": "useskin",
"type": [
"monobook",
"timeless",
"vector"
]
},
{
"name": "contentformat",
"type": [
"text/x-wiki",
"text/javascript",
"application/json",
"text/css",
"text/plain"
]
},
{
"name": "contentmodel",
"type": [
"wikitext",
"javascript",
"json",
"css",
"text"
]
}
]
},
{
"name": "phpfm",
"classname": "ApiFormatPhp",
"path": "phpfm",
"group": "format",
"prefix": "",
"source": "MediaWiki",
"sourcename": "MediaWiki",
"licensetag": "GPL-2.0-or-later",
"licenselink": "http://wiki.megatec.ru/index.php/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%92%D0%B5%D1%80%D1%81%D0%B8%D1%8F/License/MediaWiki",
"readrights": "",
"helpurls": [
"https://www.mediawiki.org/wiki/Special:MyLanguage/API:Data_formats"
],
"parameters": [
{
"name": "wrappedhtml",
"type": "boolean"
},
{
"name": "formatversion",
"default": "1",
"type": [
"1",
"2",
"latest"
]
}
]
},
{
"name": "allpages",
"classname": "ApiQueryAllPages",
"path": "query+allpages",
"group": "list",
"prefix": "ap",
"source": "MediaWiki",
"sourcename": "MediaWiki",
"licensetag": "GPL-2.0-or-later",
"licenselink": "http://wiki.megatec.ru/index.php/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%92%D0%B5%D1%80%D1%81%D0%B8%D1%8F/License/MediaWiki",
"readrights": "",
"generator": "",
"helpurls": [
"https://www.mediawiki.org/wiki/Special:MyLanguage/API:Allpages"
],
"parameters": [
{
"name": "from",
"type": "string"
},
{
"name": "continue",
"type": "string"
},
{
"name": "to",
"type": "string"
},
{
"name": "prefix",
"type": "string"
},
{
"name": "namespace",
"default": 0,
"type": "namespace"
},
{
"name": "filterredir",
"default": "all",
"type": [
"all",
"redirects",
"nonredirects"
]
},
{
"name": "minsize",
"type": "integer"
},
{
"name": "maxsize",
"type": "integer"
},
{
"name": "prtype",
"multi": "",
"lowlimit": 50,
"highlimit": 500,
"limit": 50,
"type": [
"edit",
"move",
"upload"
]
},
{
"name": "prlevel",
"multi": "",
"lowlimit": 50,
"highlimit": 500,
"limit": 50,
"type": [
"",
"autoconfirmed",
"sysop"
]
},
{
"name": "prfiltercascade",
"default": "all",
"type": [
"cascading",
"noncascading",
"all"
]
},
{
"name": "limit",
"default": 10,
"type": "limit",
"max": 500,
"highmax": 5000,
"min": 1
},
{
"name": "dir",
"default": "ascending",
"type": [
"ascending",
"descending"
]
},
{
"name": "filterlanglinks",
"default": "all",
"type": [
"withlanglinks",
"withoutlanglinks",
"all"
]
},
{
"name": "prexpiry",
"default": "all",
"type": [
"indefinite",
"definite",
"all"
]
}
]
},
{
"name": "siteinfo",
"classname": "ApiQuerySiteinfo",
"path": "query+siteinfo",
"group": "meta",
"prefix": "si",
"source": "MediaWiki",
"sourcename": "MediaWiki",
"licensetag": "GPL-2.0-or-later",
"licenselink": "http://wiki.megatec.ru/index.php/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%92%D0%B5%D1%80%D1%81%D0%B8%D1%8F/License/MediaWiki",
"readrights": "",
"helpurls": [
"https://www.mediawiki.org/wiki/Special:MyLanguage/API:Siteinfo"
],
"parameters": [
{
"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"
]
},
{
"name": "filteriw",
"type": [
"local",
"!local"
]
},
{
"name": "showalldb",
"type": "boolean"
},
{
"name": "numberingroup",
"type": "boolean"
},
{
"name": "inlanguagecode",
"type": "string"
}
]
}
]
}
}