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

# GroupMembers queries members of a group by group id.

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

## Request

- Base URL: `https://api.nymtech.net` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nymtech.net/cosmos/group/v1/group_members/{group_id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/nymtech/apis/cosmos-sdk-grpc-gateway-docs/docs/cosmos/group/v1/group_members/:group_id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `group_id` string, uint64, required

## Query parameters

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

## Response `200`

A successful response.

- object: QueryGroupMembersResponse is the Query/GroupMembersResponse response type.
  - `members` object[]: members are the members of the group with given group_id.
    - `group_id` string, uint64: group_id is the unique ID of the group.
    - `member` object: member is the member data.
      - `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.
      - `added_at` string, date-time: added_at is a timestamp specifying when a member was added.
  - `pagination` object: pagination defines the pagination in the response.
    - `next_key` 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/nymtech/apis/cosmos-sdk-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/nymtech/apis/cosmos-sdk-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/nymtech/apis/cosmos-sdk-grpc-gateway-docs/revisions/46fa771059b6?raw)
