API:REST API/Search

Search pages
Searches wiki page titles and contents for the provided search terms, and returns up to 50 matching pages. This endpoint responds to the presence of a logged-in user and returns search results appropriate to that user's permissions.

This endpoint uses the search engine configured in the $wgSearchType configuration setting and returns results in the namespaces configured by $wgNamespacesToBeSearchedDefault.