MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{ "batchcomplete": "", "query": { "pages": { "-1": { "ns": 0, "title": "Main Page", "missing": "" } }, "general": { "mainpage": "\u9996\u9875", "base": "https://zh.daoinfo.org/wiki/%E9%A6%96%E9%A1%B5", "sitename": "\u9053\u6559\u6587\u5316\u4e2d\u5fc3\u8cc7\u6599\u5eab", "logo": "https://zh.daoinfo.org/resources/assets/wiki.png", "generator": "MediaWiki 1.34.2", "phpversion": "7.4.12", "phpsapi": "fpm-fcgi", "dbtype": "mysql", "dbversion": "8.0.22", "langconversion": "", "titleconversion": "", "linkprefixcharset": "", "linkprefix": "", "linktrail": "/^()(.*)$/sD", "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+", "invalidusernamechars": "@:", "fixarabicunicode": "", "fixmalayalamunicode": "", "case": "first-letter", "lang": "zh", "fallback": [ { "code": "zh-hans" }, { "code": "en" } ], "variants": [ { "code": "zh-hans", "name": "\u7b80\u4f53" }, { "code": "zh-hant", "name": "\u7e41\u9ad4" } ], "fallback8bitEncoding": "windows-936", "writeapi": "", "maxarticlesize": 2097152, "timezone": "Asia/Hong_Kong", "timeoffset": 480, "articlepath": "/wiki/$1", "scriptpath": "", "script": "/index.php", "variantarticlepath": false, "server": "https://zh.daoinfo.org", "servername": "zh.daoinfo.org", "wikiid": "mediawiki-zh_", "time": "2024-06-03T17:40:39Z", "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://zh.daoinfo.org/favicon.ico", "centralidlookupprovider": "local", "allcentralidlookupproviders": [ "local" ], "interwikimagic": "", "magiclinks": [], "categorycollation": "uppercase", "citeresponsivereferences": "", "mobileserver": "https://zh.daoinfo.org" } } }