I'm using the Wikipedia API to retrieve links within pages, and backlinks to those pages. Is there any way to filter results of prop=links, prop=linkshere or list=backlinks to retrieve only results that e.g. begin with a certain letter? Something like from=La&to=Lz would be nice - but it doesn't appear to be available.
At the moment the solution I have is to get ALL the links, using the continuation parameters, then just pull out those that match my criteria. But this can sometimes require numerous API calls, and seems a bit inelegant. Have I missed any other options?
Thanks; Andrew
On Thu, Feb 26, 2015 at 10:03 AM, Andrew Chapman hatmandu@gmail.com wrote:
I'm using the Wikipedia API to retrieve links within pages, and backlinks to those pages. Is there any way to filter results of prop=links, prop=linkshere or list=backlinks to retrieve only results that e.g. begin with a certain letter? Something like from=La&to=Lz would be nice - but it doesn't appear to be available.
There isn't anything like this available at the moment. It might be able to be added, but that doesn't help you right now.
mediawiki-api@lists.wikimedia.org