MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "26861": {
                "pageid": 26861,
                "ns": 0,
                "title": "SPARQL Examples",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "=== All records ===\n\nAll records associated with our various projects on Wikibase\n\n{{SPARQL|query=<nowiki># All records associated with our various projects on Wikibase\n\nSELECT DISTINCT ?item ?itemLabel ?type ?typeLabel ?project ?projectLabel WHERE {\n    ?item wdt:P1 ?type.\n    ?item wdt:P11 ?project.\n  SERVICE wikibase:label { bd:serviceParam wikibase:language \"[AUTO_LANGUAGE],en\". }\n  \n}\nORDER BY ?projectLabel</nowiki>\n}}\n\n=== All person records ===\n\n\n{{SPARQL|query=<nowiki>#All person records associated with our projects on Wikibase\n\nSELECT ?person ?personLabel ?project ?projectLabel\nWHERE \n{\n  ?person  wdt:P1 wd:Q1.\n  ?person wdt:P11 ?project.\n  SERVICE wikibase:label { bd:serviceParam wikibase:language \"[AUTO_LANGUAGE],en\". }\n}\n\nORDER BY ?projectLabel</nowiki>\n}}\n\n=== All city records ===\n\n\n{{SPARQL|query=<nowiki>#All city records associated with our projects on Wikibase\n\nSELECT ?city ?cityLabel WHERE {\n  ?city wdt:P1 wd:Q19058.\n  SERVICE wikibase:label { bd:serviceParam wikibase:language \"[AUTO_LANGUAGE],en\". }\n}</nowiki>\n}}"
                    }
                ]
            }
        }
    }
}