Résultat de l’API de MediaWiki

Voici la représentation HTML du format JSON. HTML convient au débogage, mais est 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’informations.

{
    "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://groupe-begaiement-selfhelp.fr/wiki/index.php/Sp%C3%A9cial:Version/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": "showstrategykeys",
                        "type": "boolean"
                    },
                    {
                        "index": 21,
                        "name": "generatexml",
                        "type": "boolean",
                        "deprecated": ""
                    },
                    {
                        "index": 22,
                        "name": "preview",
                        "type": "boolean"
                    },
                    {
                        "index": 23,
                        "name": "sectionpreview",
                        "type": "boolean"
                    },
                    {
                        "index": 24,
                        "name": "disabletoc",
                        "type": "boolean"
                    },
                    {
                        "index": 25,
                        "name": "useskin",
                        "type": [
                            "apioutput",
                            "fallback",
                            "minerva",
                            "monobook",
                            "timeless",
                            "vector",
                            "vector-2022"
                        ]
                    },
                    {
                        "index": 26,
                        "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": 27,
                        "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": "https://groupe-begaiement-selfhelp.fr/wiki/index.php/Sp%C3%A9cial:Version/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": "https://groupe-begaiement-selfhelp.fr/wiki/index.php/Sp%C3%A9cial:Version/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": "https://groupe-begaiement-selfhelp.fr/wiki/index.php/Sp%C3%A9cial:Version/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": []
            }
        ]
    }
}