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

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to