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": "ApiDisabled",
                "path": "parse",
                "group": "action",
                "prefix": "",
                "source": "MediaWiki",
                "sourcename": "MediaWiki",
                "licensetag": "GPL-2.0-or-later",
                "licenselink": "https://mortsilsparlentencore.fr/m/Sp%C3%A9cial:Version/License/MediaWiki",
                "helpurls": [],
                "parameters": [
                    {
                        "index": 1,
                        "name": "mobileformat",
                        "type": "boolean"
                    },
                    {
                        "index": 2,
                        "name": "noimages",
                        "type": "boolean"
                    },
                    {
                        "index": 3,
                        "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://mortsilsparlentencore.fr/m/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://mortsilsparlentencore.fr/m/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://mortsilsparlentencore.fr/m/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": []
            }
        ]
    }
}