API:Search

 GET Request  to search for a title or text in a wiki

Note: This module was introduced in v1.11

GET Request
Note: Default search results are without UTF8 encoding. Replace  in the get request above to see the difference.

Sample code
Search.py

Demo app(s)

 * MediaWiki Action API Search Demo.png sample app that allows you to pick a category and suggest articles to write on that don't yet exist on English Wikipedia: https://github.com/srish/MediaWiki_Action_API_Code_Samples/tree/master/API_All_Search_Modules/API_Search

Parameter history

 * srinfo
 * srprop
 * nearmatch Search for a near match in the title
 * score Adds the score if any from the search engine
 * titlesnippet
 * redirecttitle
 * redirectsnippet
 * sectiontitle
 * sectionsnippet
 * hasrelated Indicated whether a related search is available
 * srbackend Class name of search backend to use
 * srinterwiki
 * srredirects Include redirect pages in the search. From v1.23 onwards, redirects are always included

Additional notes

 * Depending on which search backend is in use, how  is interpreted may vary. On Wikimedia wikis which use CirrusSearch, see Help:CirrusSearch for information about the search syntax.