MediaWiki API 結果

這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。

指定format參數以更改輸出格式。要查看JSON格式的非HTML實現,設置format=json

參見完整文件,或API幫助以獲取更多信息。

{
    "batchcomplete": "",
    "query": {
        "general": {
            "mainpage": "\u9996\u9801",
            "base": "https://wiki.moztw.org/%E9%A6%96%E9%A0%81",
            "sitename": "MozTW Wiki",
            "logo": "https://wiki.moztw.org/skins/MozTW/moztw_wiki.png",
            "generator": "MediaWiki 1.32.1",
            "phpversion": "7.1.28-1+ubuntu14.04.1+deb.sury.org+3",
            "phpsapi": "fpm-fcgi",
            "dbtype": "mysql",
            "dbversion": "10.0.38-MariaDB-1~trusty",
            "langconversion": "",
            "titleconversion": "",
            "linkprefixcharset": "",
            "linkprefix": "",
            "linktrail": "/^()(.*)$/sD",
            "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
            "invalidusernamechars": "@:",
            "fixarabicunicode": "",
            "fixmalayalamunicode": "",
            "git-hash": "1b00c87158065924d7d86921ecdb6d2c32d98913",
            "git-branch": "master",
            "case": "first-letter",
            "lang": "zh-tw",
            "fallback": [
                {
                    "code": "zh-hant"
                },
                {
                    "code": "zh-hans"
                },
                {
                    "code": "en"
                }
            ],
            "fallback8bitEncoding": "windows-950",
            "writeapi": "",
            "maxarticlesize": 2097152,
            "timezone": "Asia/Taipei",
            "timeoffset": 480,
            "articlepath": "/$1",
            "scriptpath": "",
            "script": "/index.php",
            "variantarticlepath": false,
            "server": "https://wiki.moztw.org",
            "servername": "wiki.moztw.org",
            "wikiid": "wikidb",
            "time": "2019-09-15T12:00:50Z",
            "uploadsenabled": "",
            "maxuploadsize": 104857600,
            "minuploadchunksize": 1024,
            "galleryoptions": {
                "imagesPerRow": 0,
                "imageWidth": 120,
                "imageHeight": 120,
                "captionLength": "",
                "showBytes": "",
                "showDimensions": "",
                "mode": "traditional"
            },
            "thumblimits": [
                120,
                150,
                180,
                200,
                250,
                300
            ],
            "imagelimits": [
                {
                    "width": 320,
                    "height": 240
                },
                {
                    "width": 640,
                    "height": 480
                },
                {
                    "width": 800,
                    "height": 600
                },
                {
                    "width": 1024,
                    "height": 768
                },
                {
                    "width": 1280,
                    "height": 1024
                }
            ],
            "favicon": "https://wiki.moztw.org/favicon.ico",
            "centralidlookupprovider": "local",
            "allcentralidlookupproviders": [
                "local"
            ],
            "interwikimagic": "",
            "magiclinks": [],
            "categorycollation": "uppercase"
        },
        "namespaces": {
            "-2": {
                "id": -2,
                "case": "first-letter",
                "canonical": "Media",
                "*": "\u5a92\u9ad4"
            },
            "-1": {
                "id": -1,
                "case": "first-letter",
                "canonical": "Special",
                "*": "\u7279\u6b8a"
            },
            "0": {
                "id": 0,
                "case": "first-letter",
                "content": "",
                "*": ""
            },
            "1": {
                "id": 1,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Talk",
                "*": "\u8a0e\u8ad6"
            },
            "2": {
                "id": 2,
                "case": "first-letter",
                "subpages": "",
                "canonical": "User",
                "*": "\u4f7f\u7528\u8005"
            },
            "3": {
                "id": 3,
                "case": "first-letter",
                "subpages": "",
                "canonical": "User talk",
                "*": "\u4f7f\u7528\u8005\u8a0e\u8ad6"
            },
            "4": {
                "id": 4,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Project",
                "*": "MozTW Wiki"
            },
            "5": {
                "id": 5,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Project talk",
                "*": "MozTW Wiki\u8a0e\u8ad6"
            },
            "6": {
                "id": 6,
                "case": "first-letter",
                "canonical": "File",
                "*": "\u6a94\u6848"
            },
            "7": {
                "id": 7,
                "case": "first-letter",
                "subpages": "",
                "canonical": "File talk",
                "*": "\u6a94\u6848\u8a0e\u8ad6"
            },
            "8": {
                "id": 8,
                "case": "first-letter",
                "subpages": "",
                "canonical": "MediaWiki",
                "*": "MediaWiki"
            },
            "9": {
                "id": 9,
                "case": "first-letter",
                "subpages": "",
                "canonical": "MediaWiki talk",
                "*": "MediaWiki\u8a0e\u8ad6"
            },
            "10": {
                "id": 10,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Template",
                "*": "\u6a21\u677f"
            },
            "11": {
                "id": 11,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Template talk",
                "*": "\u6a21\u677f\u8a0e\u8ad6"
            },
            "12": {
                "id": 12,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Help",
                "*": "\u4f7f\u7528\u8aaa\u660e"
            },
            "13": {
                "id": 13,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Help talk",
                "*": "\u4f7f\u7528\u8aaa\u660e\u8a0e\u8ad6"
            },
            "14": {
                "id": 14,
                "case": "first-letter",
                "canonical": "Category",
                "*": "\u5206\u985e"
            },
            "15": {
                "id": 15,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Category talk",
                "*": "\u5206\u985e\u8a0e\u8ad6"
            }
        },
        "namespacealiases": [
            {
                "id": -2,
                "*": "\u5a92\u4f53"
            },
            {
                "id": 1,
                "*": "\u5bf9\u8bdd"
            },
            {
                "id": 1,
                "*": "\u5c0d\u8a71"
            },
            {
                "id": 1,
                "*": "\u8ba8\u8bba"
            },
            {
                "id": 2,
                "*": "\u7528\u6236"
            },
            {
                "id": 2,
                "*": "\u7528\u6237"
            },
            {
                "id": 3,
                "*": "\u7528\u6236\u5c0d\u8a71"
            },
            {
                "id": 3,
                "*": "\u7528\u6236\u8a0e\u8ad6"
            },
            {
                "id": 3,
                "*": "\u7528\u6237\u5bf9\u8bdd"
            },
            {
                "id": 3,
                "*": "\u7528\u6237\u8ba8\u8bba"
            },
            {
                "id": 6,
                "*": "Image"
            },
            {
                "id": 6,
                "*": "\u56fe\u50cf"
            },
            {
                "id": 6,
                "*": "\u5716\u50cf"
            },
            {
                "id": 6,
                "*": "\u5716\u7247"
            },
            {
                "id": 6,
                "*": "\u6587\u4ef6"
            },
            {
                "id": 6,
                "*": "\u6863\u6848"
            },
            {
                "id": 7,
                "*": "Image talk"
            },
            {
                "id": 7,
                "*": "\u56fe\u50cf\u5bf9\u8bdd"
            },
            {
                "id": 7,
                "*": "\u56fe\u50cf\u8ba8\u8bba"
            },
            {
                "id": 7,
                "*": "\u5716\u50cf\u5c0d\u8a71"
            },
            {
                "id": 7,
                "*": "\u5716\u50cf\u8a0e\u8ad6"
            },
            {
                "id": 7,
                "*": "\u5716\u7247\u8a0e\u8ad6"
            },
            {
                "id": 7,
                "*": "\u6587\u4ef6\u5bf9\u8bdd"
            },
            {
                "id": 7,
                "*": "\u6587\u4ef6\u5c0d\u8a71"
            },
            {
                "id": 7,
                "*": "\u6587\u4ef6\u8a0e\u8ad6"
            },
            {
                "id": 7,
                "*": "\u6587\u4ef6\u8ba8\u8bba"
            },
            {
                "id": 7,
                "*": "\u6863\u6848\u5bf9\u8bdd"
            },
            {
                "id": 7,
                "*": "\u6863\u6848\u8ba8\u8bba"
            },
            {
                "id": 7,
                "*": "\u6a94\u6848\u5c0d\u8a71"
            },
            {
                "id": 10,
                "*": "\u6a23\u677f"
            },
            {
                "id": 11,
                "*": "\u6a21\u677f\u5bf9\u8bdd"
            },
            {
                "id": 11,
                "*": "\u6a21\u677f\u5c0d\u8a71"
            },
            {
                "id": 11,
                "*": "\u6a21\u677f\u8ba8\u8bba"
            },
            {
                "id": 11,
                "*": "\u6a23\u677f\u5c0d\u8a71"
            },
            {
                "id": 11,
                "*": "\u6a23\u677f\u8a0e\u8ad6"
            },
            {
                "id": 12,
                "*": "\u5e2e\u52a9"
            },
            {
                "id": 12,
                "*": "\u5e6b\u52a9"
            },
            {
                "id": 13,
                "*": "\u5e2e\u52a9\u5bf9\u8bdd"
            },
            {
                "id": 13,
                "*": "\u5e2e\u52a9\u8ba8\u8bba"
            },
            {
                "id": 13,
                "*": "\u5e6b\u52a9\u5c0d\u8a71"
            },
            {
                "id": 13,
                "*": "\u5e6b\u52a9\u8a0e\u8ad6"
            },
            {
                "id": 14,
                "*": "\u5206\u7c7b"
            },
            {
                "id": 15,
                "*": "\u5206\u7c7b\u5bf9\u8bdd"
            },
            {
                "id": 15,
                "*": "\u5206\u7c7b\u8ba8\u8bba"
            },
            {
                "id": 15,
                "*": "\u5206\u985e\u5c0d\u8a71"
            }
        ],
        "statistics": {
            "pages": 3462,
            "articles": 306,
            "edits": 30454,
            "images": 144,
            "users": 5997,
            "activeusers": 0,
            "admins": 12,
            "jobs": 0
        }
    }
}