vijay shanker
vijay shanker

Reputation: 2663

How to find most commented article (using disqus)

I am using Disqus for commenting on articles in my site. I want to find the most-commented article using the API. Could you provide me with some pointers?

Upvotes: 1

Views: 713

Answers (1)

Ryan V
Ryan V

Reputation: 3100

This API endpoint will load the most-commented articles on your site within an interval up to 90 days: http://disqus.com/api/docs/threads/listPopular/

An API request for you would look like this:

GET https://disqus.com/api/3.0/threads/listPopular.json?api_key=YOUR_API_KEY&forum=YOUR_SHORTNAME&limit=1&interval=90d

Additionally if you wanted to also get the top comment from that article, you can add &with_top_post=1

Upvotes: 1

Related Questions