Skip to main content

Overview

Returns a function that fetches the paginated list of followers for any user, identified by userId. This is a public endpoint — authentication is not required. For fetching your own followers, see useFetchFollowers.

Usage Example

Parameters

The hook returns a function. That function accepts:
string
required
The ID of the user whose followers to fetch.
number
Page number to fetch. Defaults to 1.
number
Number of results per page. Defaults to 20.
string
Resolves each follower’s reputation into a spaceReputation number on the embedded user. Accepts a space <uuid> or "none" (project-general bucket) only — "context" is rejected with a 400 on this endpoint. Empty string, "general", and null are also rejected. See Reputation.
boolean
When true, spaceReputation is the subtree sum (the space plus all its descendants). Only honored when spaceReputationId is an explicit <uuid>.

Returns

Returns a PaginatedResponse containing an array of follower entries:
FollowerWithFollowInfo[]
Array of follower entries.
object
Pagination metadata including currentPage, totalPages, totalCount, hasNextPage, and hasPreviousPage.