MediaWiki API 结果

这是JSON格式的HTML表示。HTML对调试很有用,但不适合应用程序使用。

指定format参数以更改输出格式。要查看JSON格式的非HTML表示,设置format=json

参见完整文档,或API 帮助以获取更多信息。

{
    "batchcomplete": "",
    "query": {
        "abusefilters": [
            {
                "id": 1,
                "description": "Spam Keywords"
            },
            {
                "id": 2,
                "description": "Large deletion from article by new editors",
                "pattern": "action = 'edit'\r\n& user_editcount < 20\r\n& ((edit_delta <= -2500)|(old_size >=1500 &  new_size<=200))"
            },
            {
                "id": 3,
                "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)"
            },
            {
                "id": 4,
                "description": "Adding external images/links"
            },
            {
                "id": 5,
                "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": 6,
                "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": 7,
                "description": "Users can't edit other people's userpages",
                "pattern": "!(\"sysop\" in user_groups)\r\n& !(\"Managers\" in user_groups)\r\n& (article_namespace == 2)\r\n& !(user_name in article_text)"
            },
            {
                "id": 8,
                "description": "Mass edit by new user"
            },
            {
                "id": 9,
                "description": "Prohibited Characters in Account Name"
            }
        ]
    }
}