Member home-page widgets: who is online now, and the most active members
2 endpoints.
| Method | Path | Summary |
|---|---|---|
GET | /api/communities/{communityId}/home-widgets/online-now | Members connected right now («متصل الآن» home widget) |
GET | /api/communities/{communityId}/home-widgets/top-active | Most active members («الأكثر نشاطاً» home widget) |
GET /api/communities/{communityId}/home-widgets/online-nowThe members of this community with a live connection, others first and the caller last. Members hidden from the directory are left out of both the roster and the count (staff see everyone). Check available before online — false means the server cannot answer, not that nobody is online. Answers 403 HOME_WIDGET_DISABLED while the community admin has the widget off.
Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The online roster | object |
401 | Not signed in | — |
403 | Not a member (NOT_A_COMMUNITY_MEMBER), plan without home widgets (FEATURE_NOT_AVAILABLE), or the widget is off (HOME_WIDGET_DISABLED) | — |
GET /api/communities/{communityId}/home-widgets/top-activeMembers ranked by activity points (the activity leaderboard's total) over this week, this month, or all time. Members hidden from the directory are left out and the ranks close up behind them. Follows the activity heatmap's gates: the plan flag, the community switch, and its audience setting.
Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
range | query | no | enum: week, month, all | — |
limit | query | no | integer | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The ranked members | object |
401 | Not signed in | — |
403 | Not a member, a plan without the flags (FEATURE_NOT_AVAILABLE), the widget off (HOME_WIDGET_DISABLED), the heatmap off (HEATMAP_DISABLED_FOR_COMMUNITY), or activity shown to moderators only (ACTIVITY_MODERATORS_ONLY) | — |