Hi Brad, 

Thanks for your quick response.
While the one you suggested is also helpful, It doesn’t have view count parameter.
I got another reply from your team with below api, which looks better and also has view count:
https://en.wikipedia.org/api/rest_v1/feed/featured/2017/04/06

Thanks,
Anand

On 07-Apr-2017, at 12:26 AM, Brad Jorsch (Anomie) <bjorsch@wikimedia.org> wrote:

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
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api