Résultat de l’API de MediaWiki

Voici la représentation HTML du format JSON. HTML est bien pour le débogage, mais inapproprié pour être utilisé dans une application.

Spécifiez le paramètre format pour modifier le format de sortie. Pour voir la représentation non HTML du format JSON, mettez format=json.

Voir la documentation complète, ou l’ aide de l’API pour plus d’information.

{
    "paraminfo": {
        "helpformat": "none",
        "modules": [
            {
                "name": "parse",
                "classname": "ApiParse",
                "path": "parse",
                "group": "action",
                "prefix": "",
                "source": "MediaWiki",
                "sourcename": "MediaWiki",
                "licensetag": "GPL-2.0-or-later",
                "licenselink": "//oc.uncyclopedia.info/wiki/Especial:Versi%C3%B3/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",
                            "cologneblue",
                            "modern",
                            "minerva"
                        ]
                    },
                    {
                        "name": "contentformat",
                        "type": [
                            "application/json",
                            "text/plain",
                            "text/x-wiki",
                            "text/javascript",
                            "text/css"
                        ]
                    },
                    {
                        "name": "contentmodel",
                        "type": [
                            "GadgetDefinition",
                            "MassMessageListContent",
                            "Scribunto",
                            "wikitext",
                            "javascript",
                            "json",
                            "css",
                            "text"
                        ]
                    },
                    {
                        "name": "mobileformat",
                        "type": "boolean"
                    },
                    {
                        "name": "noimages",
                        "type": "boolean"
                    },
                    {
                        "name": "mainpage",
                        "type": "boolean"
                    },
                    {
                        "name": "templatesandboxprefix",
                        "multi": "",
                        "lowlimit": 50,
                        "highlimit": 500,
                        "limit": 50,
                        "type": "string"
                    },
                    {
                        "name": "templatesandboxtitle",
                        "type": "string"
                    },
                    {
                        "name": "templatesandboxtext",
                        "type": "text"
                    },
                    {
                        "name": "templatesandboxcontentmodel",
                        "type": [
                            "GadgetDefinition",
                            "MassMessageListContent",
                            "Scribunto",
                            "wikitext",
                            "javascript",
                            "json",
                            "css",
                            "text"
                        ]
                    },
                    {
                        "name": "templatesandboxcontentformat",
                        "type": [
                            "application/json",
                            "text/plain",
                            "text/x-wiki",
                            "text/javascript",
                            "text/css"
                        ]
                    }
                ]
            },
            {
                "name": "phpfm",
                "classname": "ApiFormatPhp",
                "path": "phpfm",
                "group": "format",
                "prefix": "",
                "source": "MediaWiki",
                "sourcename": "MediaWiki",
                "licensetag": "GPL-2.0-or-later",
                "licenselink": "//oc.uncyclopedia.info/wiki/Especial:Versi%C3%B3/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": "//oc.uncyclopedia.info/wiki/Especial:Versi%C3%B3/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": "//oc.uncyclopedia.info/wiki/Especial:Versi%C3%B3/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"
                    }
                ]
            }
        ]
    }
}