On Thu, Apr 6, 2017 at 2:19 PM, Anandroid Inc <anandrdinc(a)gmail.com> wrote:
Thanks for the great api provided for all the wiki
info.
I am looking for a combination of right parameters which will return me
most viewed pages with the page url, article snippet, thumbnail image url.
Hope you can help with this.
With the action API, you can use generator=mostviewed to generate the
pages, and prop=info|extracts|pageimages to fetch the requested properties.
For example, using the API Sandbox,
https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=js…
--
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation