Returns the three leaderboards — last 7 days, last 30 days and all time — each with its top ten members and their profiles attached.
No parameters are read; the ranking size and windows are fixed. Results are cached for five minutes, so a member who has only now earned points may not move immediately.
Endpoint
Method:
GETPath:
/leaderboardEdition: PRO
Controller:
LeaderBoardController@getLeadersRoute source:
fluent-community-pro/app/Modules/LeaderBoard/Http/leaderboard_api.php:8Requires FluentCommunity Pro; visibility is governed by the
leaderboard_members_visibilityprivacy setting, which can open it to everyone, restrict it to signed-in members, or limit it to moderators.This read endpoint writes: where a stored profile point total is behind the calculated one it is corrected and
fluent_community/user_points_updatedfires, which can trigger a level upgrade and any automation listening on it.The routes are registered even when the
leader_board_modulefeature is switched off, though the scoring that feeds them is not.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
GET List Leaderboard
Returns the three leaderboards — last 7 days, last 30 days and all time — each with its top ten members and their profiles attached.
Controller: LeaderBoardController@getLeaders
Route source: fluent-community-pro/app/Modules/LeaderBoard/Http/leaderboard_api.php:8
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Responses
Successful response