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": "",
    "continue": {
        "sroffset": 10,
        "continue": "-||"
    },
    "query": {
        "searchinfo": {
            "totalhits": 28
        },
        "search": [
            {
                "ns": 0,
                "title": "Gestion des exceptions",
                "pageid": 64545,
                "size": 2396,
                "wordcount": 338,
                "snippet": "When an error occurs, the program raises an exception, <span class='searchmatch'>meaning</span> it creates an exception object and rolls back the stack to the first point  <b>...</b> ",
                "timestamp": "2014-02-04T12:35:23Z"
            },
            {
                "ns": 0,
                "title": "Stderr, stdin, stdout",
                "pageid": 62100,
                "size": 664,
                "wordcount": 39,
                "snippet": "<span class='searchmatch'>Meaning</span>  |  stdin | Standard input device |  stdout | Standard output device |  stderr | Standard error output device |  Cat\u00e9gorie:R\u00e9f\u00e9rence  <b>...</b> ",
                "timestamp": "2015-08-27T10:52:07Z"
            },
            {
                "ns": 0,
                "title": "EDOM, ERANGE, defines",
                "pageid": 61265,
                "size": 621,
                "wordcount": 48,
                "snippet": "<span class='searchmatch'>Meaning</span>  |  EDOM | Error code for math domain error |  ERANGE | Error code for result out of range |  Category:R\u00e9f\u00e9rence C++ Category:C++ <b>...</b> ",
                "timestamp": "2016-01-04T18:18:34Z"
            },
            {
                "ns": 0,
                "title": "PI constants",
                "pageid": 61463,
                "size": 674,
                "wordcount": 72,
                "snippet": "<span class='searchmatch'>Meaning</span>  |  M_PI | pi |  M_PI_2 | One-half pi |  M_PI_4 | One-fourth pi |  M_1_PI | One divided by pi |  M_2_PI | Two divided by pi |  <b>...</b> ",
                "timestamp": "2015-08-27T10:43:56Z"
            },
            {
                "ns": 0,
                "title": "IOxxx defines",
                "pageid": 60745,
                "size": 1174,
                "wordcount": 141,
                "snippet": "<span class='searchmatch'>Meaning</span>  |_ IOFBF | The file is fully buffered.  When a buffer is empty, the next input operation will attempt to fill the entire buffer. |  <b>...</b> ",
                "timestamp": "2015-08-27T10:25:58Z"
            },
            {
                "ns": 0,
                "title": "OPEN MAX define",
                "pageid": 61032,
                "size": 527,
                "wordcount": 37,
                "snippet": "<span class='searchmatch'>Meaning</span>  |  FOPEN_MAX | Maximum files per process |  SYS_OPEN | Maximum files for system |  Cat\u00e9gorie:R\u00e9f\u00e9rence C++ Cat\u00e9gorie:C++ Cat\u00e9gorie: <b>...</b> ",
                "timestamp": "2015-08-27T10:43:15Z"
            },
            {
                "ns": 0,
                "title": "MAXxxxx defines (fnsplit)",
                "pageid": 61681,
                "size": 815,
                "wordcount": 60,
                "snippet": "<span class='searchmatch'>Meaning</span>  |  MAXPATH | Complete file name with path |  MAXDRIVE | Disk drive (e.g., \" \"A:\") |  MAXDIR | File subdirectory specification |  <b>...</b> ",
                "timestamp": "2015-08-27T10:36:02Z"
            },
            {
                "ns": 0,
                "title": "HIBITx defines",
                "pageid": 61763,
                "size": 548,
                "wordcount": 40,
                "snippet": "<span class='searchmatch'>Meaning</span>  |  HIBITS | For type short |  HIBITI | For type int |  HIBITL | For type long |  Cat\u00e9gorie:R\u00e9f\u00e9rence C++ Cat\u00e9gorie:C++ Cat\u00e9gorie: <b>...</b> ",
                "timestamp": "2015-08-27T10:24:43Z"
            },
            {
                "ns": 0,
                "title": "F xxxx defines",
                "pageid": 61916,
                "size": 860,
                "wordcount": 74,
                "snippet": "<span class='searchmatch'>Meaning</span>  |_ F_RDWR | Read and write |_ F_READ | Read-only file |_ F_WRIT | Write-only file |_ F_BUF | Malloc'ed buffer data |_ F_LBUF | Line- <b>...</b> ",
                "timestamp": "2011-06-02T03:01:29Z"
            },
            {
                "ns": 0,
                "title": "Heapcheck",
                "pageid": 62035,
                "size": 1593,
                "wordcount": 114,
                "snippet": "The return values and their <span class='searchmatch'>meaning</span> are as follows: |_ HEAPCORRUPT | Heap has been corrupted |_ HEAPEMPTY | No heap |_ HEAPOK | Heap is  <b>...</b> ",
                "timestamp": "2015-08-27T10:25:11Z"
            }
        ]
    }
}