---
title: "GroupMembers queries members of a group by group id."
method: GET
path: "/cosmos/group/v1/group_members/{groupId}"
tags: ["Query"]
---

# GroupMembers queries members of a group by group id.

`GET /cosmos/group/v1/group_members/{groupId}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/docs/cosmos/group/v1/group_members/:groupId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `groupId` string, uint64, required

## Query parameters

- `pagination.key` string, byte
- `pagination.offset` string, uint64
- `pagination.limit` string, uint64
- `pagination.countTotal` boolean
- `pagination.reverse` boolean

## Response `200`

A successful response.

- CosmosGroupV1QueryGroupMembersResponse: QueryGroupMembersResponse is the Query/GroupMembersResponse response type.
  - `members` CosmosGroupV1GroupMember[]: members are the members of the group with given group_id.
    - `groupId` string, uint64: group_id is the unique ID of the group.
    - `member` CosmosGroupV1Member: Member represents a group member with an account address, non-zero weight, metadata and added_at timestamp.
      - `address` string: address is the member's account address.
      - `weight` string: weight is the member's voting weight that should be greater than 0.
      - `metadata` string: metadata is any arbitrary metadata attached to the member.
      - `addedAt` string, date-time: added_at is a timestamp specifying when a member was added.
  - `pagination` CosmosBaseQueryV1beta1PageResponse: PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest. message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }
    - `nextKey` string, byte: next_key is the key to be passed to PageRequest.key to query the next page most efficiently. It will be empty if there are no more results.
    - `total` string, uint64

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api.md) - [All operations](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/llms.txt) - [OpenAPI document](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/revisions/2d0419923f40?raw)
