On Thu, Apr 6, 2017 at 2:19 PM, Anandroid Inc <anandrdinc@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=json&prop=extracts%7Cinfo%7Cpageimages&generator=mostviewed&exlimit=max&exintro=1&inprop=url&pilimit=max


--
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation