缺少来自Wikipedia API的重定向

我试图通过此查询来获取Wikipedia页面的重定向:

https://en.wikipedia.org/w/api.php?action=query&generator=search&format=json&gsrsearch=iiroc&gsrlimit=10&prop=pageprops|description|redirects&redirects

如您所见,“加拿大投资行业监管组织”页面没有重定向:

            "18847030": {
                "pageid": 18847030,"ns": 0,"title": "Investment Industry Regulatory Organization of Canada","index": 1,"pageprops": {
                    "page_image": "Investment_Industry_Regulatory_Organization_of_Canada_Logo.jpg","wikibase_item": "Q16987312"
                },"description": "organization","descriptionsource": "central"
            }

但是,如果转到https://en.wikipedia.org/wiki/IIROC,则会重定向到https://en.wikipedia.org/wiki/Investment_Industry_Regulatory_Organization_of_Canada

那么为什么“ IIROC”未包含在“ Investment_Industry_Regulatory_Organization_of_Canada”的重定向中?

谢谢

iCMS 回答:缺少来自Wikipedia API的重定向

您应该continue your prop query until the batch is complete

通过继续查询直到https://en.wikipedia.org/w/api.php?action=query&format=json&prop=pageprops%7Cdescription%7Credirects&continue=%7C%7Cpageprops%7Cdescription&generator=search&redirects=1&rdcontinue=Financial_adviser%7C52889338&gsrsearch=iiroc&gsrlimit=10

,我获得了以下结果
{{1}}
本文链接:https://www.f2er.com/1691807.html

大家都在问