Help & Support

Fetch Members

This guide will help you with fetching Group members from Lens API.

Fetch Groups Members

Use the paginated fetchGroupMembers action to fetch a list of group members based on the provided group address.

import { evmAddress } from "@lens-protocol/client";import { fetchGroupMembers } from "@lens-protocol/client/actions";
import { client } from "./client";
const result = await fetchGroupMembers(client, {  group: evmAddress("0x1234…"),});
if (result.isErr()) {  return console.error(result.error);}
// items: Array<GroupMember>: [{account: Account, joinedAt: Date, lastActiveAt: Date}, ...]const { items, pageInfo } = result.value;

See the Pagination guide for more information on how to handle paginated results.