Forum Discussion

bryanpollack's avatar
11 years ago

Community hot/popular posts

It seems the API has a call to retrieve popular posts within each board, but I'd like to get them across the entire community. Is that possible? Thanks.

  • bryanpollack's avatar
    bryanpollack
    11 years ago

    I'm going to try a custom method going by most replies with the latest reply within a certain timespan. Thanks.

  • HaidongG's avatar
    HaidongG
    Lithium Alumni (Retired)

    Hi bryanpollack ,

     

    the first question to ask you is, what is your understanding to popular?

     

    to what I understand, the board level, threads/popular simplly means sort by kudos, if that is what you want, you may want to just use kudos/messages/leaderboard  to list the most kudoed messages.

     

    if you want to have threads with most number of messages inside, you may consider to use search/messages with ?sort_by=-replies.

     

    I hope that this helps.

  • Try this:

    /restapi/vc/search/messages?q=(is_root:true%20OR%20is_root:false)&has_kudos=true

    This will bring up the posts based on the number of kudos
    • bryanpollack's avatar
      bryanpollack
      Ace

      I'm going to try a custom method going by most replies with the latest reply within a certain timespan. Thanks.