Forum Discussion
3 Replies
- nathan12 years agoExecutive
There is a REST API call that gets popular threads for a specific board:
e.g.
http://lithosphere.lithium.com/restapi/vc/categories/id/Developer/boards/id/studio/threads/popular
I can't see one that applies at the community or category level however.
- AdamN12 years agoKhoros Oracle
It largely depends on what is meant by "popular" or "hot". I typically recommend using the kudos leaderboards for this purpose. You can get the leaderboard at the community, category, and board levels:
- http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=Community.kudos.messages.leaderboard#Community.kudos.messages.leaderboard
- http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=Category.kudos.messages.leaderboard#Category.kudos.messages.leaderboard
- http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=Board.kudos.messages.leaderboard#Board.kudos.messages.leaderboard
In this case, the sorting is by number of Kudos received. However, you can specify the date range for which the kudos are counted, and you could sort after the fact if you still wanted them in order by date. - peterlu12 years agoChampion
Sorry, I wasn't clear at the beginning. Hot means hot by replies count.
Looks like we can use /search/messages api and use ?sort_by=-replies
Related Content
- 6 years ago
- 6 years ago
- 2 months ago