API:REST API/Search

Search pages
Returns up to 50 pages matching the provided search terms in the page title or contents. This endpoint responds to the presence 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 incudes pages in the namespaces configured by $wgNamespacesToBeSearchedDefault.