If Special:WhatLinksHere works for you you can do this using backlinks query.

Find all pages that redirect tošen:Main Page.
http://en.wikipedia.org/w/api.php?action=query&list=backlinks&bltitle=Main%20Page&bllimit=5&blfilterredir=redirects

http://www.mediawiki.org/wiki/API:Query_-_Lists#backlinks_.2F_bl

Greetings,

Simple question: is there any way to use the MediaWiki API to find a list of
redirects *to* a given page? šIn other words, if I have A #REDIRECT [[B]],
can I query B and find out that A is pointing to it? šSpecial:WhatLinksHere
does this in the normal UI, but I couldn't find a matching API query.

Cheers,
-jani

--
âÅÚÕÇÌÏ× óÅÒÇÅÊš