I am getting some #REDIRECT in the snippet but i actually want the query to give me the redirected results, is there a way to do that without parsing what the redirect is and initialed another query? I tried setting the parameter redirects but it did nothing.
i would like it to return something like this: https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=Unity%20(game%20engine)&srlimit=1
What you can do is to use search
as a generator. If you do that, redirects
will work: