On Tue, Mar 3, 2015 at 12:14 AM, Dmitry Talisman <[email protected]> wrote:
> While working on my app I came across an issue with extracts that does not > work for certain pages. The extracts is always empty. For example (Newark > International Airport): > > > http://en.wikipedia.org/w/api.php?action=query&prop=extracts&exchars=175&pageids=263652 > I note the pageid you're specifying is a redirect page. If we use the target of the redirect instead, it seems to work fine: https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exchars=175&pageids=248492 You can even ask the API to bypass the redirect for you: https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exchars=175&pageids=263652&redirects=1 -- Brad Jorsch (Anomie) Software Engineer Wikimedia Foundation
_______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
