Classic APIs
ClassicGroupsApi
groupWallPosts_V2

groupWallPosts_V2

Gets a list of group wall posts.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group to get wall posts for.
limit?10 | 25 | 50 | 100The number of results to be returned.
sortOrder?SortOrderThe order that the results are sorted in.
cursor?stringThe paging cursor for the previous or next page.

Example

const { data: wallPosts } = await ClassicGroupsApi.groupWallPosts_V2({ groupId: 5850082 }); 

Example Data

[
  {
    id: 2724986278,
    poster: {
      user: {
        hasVerifiedBadge: false,
        userId: 45348281,
        username: "MightyPart",
        displayName: "MightyPart",
      },
      role: { id: 38353813, name: "Mighty Member", rank: 1 },
    },
    body: "Lorem ipsum dolor sit amet.",
    created: 2022-11-19T16:30:38.197Z,
    updated: 2022-11-19T16:30:38.197Z,
  },
] 

Endpoint

GET /v2/groups/{groupId}/wall/posts