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.

{
    "batchcomplete": "",
    "query": {
        "abusefilters": [
            {
                "id": 1,
                "description": "Users can't edit other people's user pages",
                "pattern": "!(\"sysop\" in user_groups)\r\n& (article_namespace == 2)\r\n& !(user_name in article_text)"
            },
            {
                "id": 2,
                "description": "Spam Keywords"
            },
            {
                "id": 3,
                "description": "Long string of characters containing no spaces",
                "pattern": "!\"autoconfirmed\" in user_groups & (\r\n  article_namespace == 0 & (\r\n    added_lines rlike \"[a-zA-Z0-9]{50,}\" & (\r\n      !(removed_lines rlike \"[a-zA-Z0-9]{50,}\") & (\r\n        !(added_lines rlike \"https?://[^ ]*?[a-zA-Z0-9]{50,}\") &\r\n        !(added_lines rlike \"word|thumb|file|sequence\")\r\n      )\r\n    )\r\n  )\r\n)"
            },
            {
                "id": 4,
                "description": "Adding external links"
            },
            {
                "id": 5,
                "description": "Large deletion from article by new users"
            },
            {
                "id": 6,
                "description": "Mass edit by new user"
            },
            {
                "id": 7,
                "description": "Prohibited characters in account name"
            },
            {
                "id": 8,
                "description": "Unacceptable page name"
            },
            {
                "id": 9,
                "description": "You/He/She/It sucks",
                "pattern": "! \"autoconfirmed\" in USER_GROUPS & ( \r\n  article_namespace == 0 & (   \r\n    you_suck :=\"\\b((yo)?u( ?all)?|(s?h|w)e|they|it?|y'?al+) suc?k\";\r\n    added_lines irlike you_suck & (\r\n      ! removed_lines irlike you_suck\r\n    )\r\n  )\r\n)"
            },
            {
                "id": 10,
                "description": "Youtube links",
                "pattern": "\"user\" in user_groups & (\r\n    user_age < 600 & (\r\n        (\r\n            added_lines contains \"youtube.com\" &\r\n            !(removed_lines contains \"youtube.com\")\r\n        )\r\n        |\r\n        (\r\n            added_lines contains \"youtu.be\" &\r\n            !(removed_lines contains \"youtu.be\")\r\n        )\r\n    )\r\n)"
            }
        ]
    }
}