API:Opensearch

Parameters

 * – the search string
 * – maximum amount of results to return (defaults to 10)
 * – namespace numbers to search (delimited by, defaults to 0)
 * – do nothing if is false
 * – see below

Error Codes

 * readapidenied – You need read permission to use this module.

Example
The opensearch API module handles formats differently. Only XML and JSON (and their formatted versions) are recognized, every other valid format parameter results in JSON. The JSON format returns an array containing the search query and an array of result titles:

The XML format returns an OpenSearch XML file with titles, URLs and short descriptions: