MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=opensearch
(main | opensearch)
- Questo modulo richiede i diritti di lettura.
 - Fonte: MediaWiki
 - Licenza: GPL-2.0+
 
Search the wiki using the OpenSearch protocol.
Parametri:
- search
 Stringa di ricerca.
- Questo parametro è obbligatorio.
 - namespace
 Namespaces to search.
- Valori (separati da | o alternativa): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
 - Per specificare tutti i valori, utilizza *.
 - Predefinito: 0
 - limit
 Numero massimo di risultati da restituire.
- Non più di 500 (5 000 per bot) consentito.
 - Tipo: intero o max
 - Predefinito: 10
 - suggest
 Non fare nulla se $wgEnableOpenSearchSuggest è falso.
- Tipo: booleano (dettagli)
 - redirects
 How to handle redirects:
- return
 - Return the redirect itself.
 - resolve
 - Return the target page. May return fewer than limit results.
 
For historical reasons, the default is "return" for format=json and "resolve" for other formats.
- Uno dei seguenti valori: return, resolve
 - format
 Il formato dell'output.
- Uno dei seguenti valori: json, jsonfm, xml, xmlfm
 - Predefinito: json
 - warningsaserror
 If warnings are raised with format=json, return an API error instead of ignoring them.
- Tipo: booleano (dettagli)
 
Esempio:
- Trova le pagine che iniziano con Te.
 - api.php?action=opensearch&search=Te [apri in una sandbox]