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.

limit

Numero massimo di risultati da restituire.

Non più di 100 (100 per bot) consentito.
Tipo: intero o max
Predefinito: 10
namespace

Namespaces to search.

Valori (separati da |): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 104, 105, 106, 107, 110, 111
Predefinito: 0
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]