MediaWiki:Apihelp-opensearch-param-redirects

How to handle redirects: For historical reasons, the default is 'return' for $1format=json and 'resolve' for other formats.
 * return:Return the redirect itself.
 * resolve:Return the target page. May return fewer than $1limit results.