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": {
        "searchinfo": {
            "totalhits": 1
        },
        "search": [
            {
                "ns": 0,
                "title": "Times (AoC)",
                "pageid": 4125,
                "size": 1556,
                "wordcount": 243,
                "snippet": "\u2026ng&lt;br /&gt;Good times for dying&lt;/p&gt; &lt;p&gt;There&#039;s no <span class='searchmatch'>meaning</span> of life, life&#039;s the <span class='searchmatch'>meaning</span> of itself.&lt;br /&gt;Now, you know that I&#039;m your guide to hell.&lt;br /&gt;Closer and \n",
                "timestamp": "2011-12-02T13:43:41Z"
            }
        ]
    }
}