Getting a list of all URLs redirecting to a Wikipedia page?
<p>I need to know all the different URLs that lead to the same end Wikipedia article URL for a project I'm doing. For example:</p>

<p><a href="https://en.wikipedia.org/wiki/Lucite" rel="nofollow">https://en.wikipedia.org/wiki/Lucite</a></p>

<p>redirects to the final URL:</p>

<p><a href="https://en.wikipedia.org/wiki/Poly(methyl_methacrylate)" rel="nofollow">https://en.wikipedia.org/wiki/Poly(methyl_methacrylate)</a></p>

<p>However, I'm not sure how many other URLs also redirect to the final URL of that page, times this issue for every other Wikipedia article. Is there a specific API call I'm not seeing that you can send a final page_name/URL, and it returns a JSON of all the name/URLs that redirect to the final URL? I really need something like this if it exists. For reference, I already looked, and I'm aware of the fact that you can perform two API calls for all pages like this:</p>

<p><a href="https://en.wikipedia.org/w/api.php?action=query&amp;generator=allpages&amp;format=json&amp;gaplimit=500&amp;gapfilterredir=nonredirects" rel="nofollow">https://en.wikipedia.org/w/api.php?action=query&amp;generator=allpages&amp;format=json&amp;gaplimit=500&amp;gapfilterredir=nonredirects</a></p>

<p>then the one that is nonfiltering of redirects</p>

<p><a href="https://en.wikipedia.org/w/api.php?action=query&amp;generator=allpages&amp;format=json&amp;gaplimit=500&amp;" rel="nofollow">https://en.wikipedia.org/w/api.php?action=query&amp;generator=allpages&amp;format=json&amp;gaplimit=500&amp;</a></p>

<p>I understand that you can take the disjoint of these two sets and those are redirecting URLs, and that you can do it ad infinitum for all pages and find all redirecting names/URLs, but it would save me on my project exponential time if I could simply find a way to send a URL to Wikipeidia's API and somehow get a list of all URLs leading back to that final page URL. Thank you in advance! </p>