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": 2
        },
        "search": [
            {
                "ns": 0,
                "title": "Body default.txt",
                "pageid": 133,
                "size": 79425,
                "wordcount": 10747,
                "snippet": "...lative size of body parts within a creature.  The numbers have no absolute <span class='searchmatch'>meaning</span> or units.\n",
                "timestamp": "2014-04-07T18:24:53Z"
            },
            {
                "ns": 0,
                "title": "B detail plan default.txt",
                "pageid": 1061,
                "size": 22148,
                "wordcount": 3358,
                "snippet": "...lative size of body parts within a creature.  The numbers have no absolute <span class='searchmatch'>meaning</span> or units.\n",
                "timestamp": "2014-04-07T17:52:11Z"
            }
        ]
    }
}