> For the complete documentation index, see [llms.txt](https://support.whapi.cloud/help-desk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.whapi.cloud/help-desk/groups/get-list-of-group-members.md).

# Get list of group members

Get the numbers of the group participants

{% hint style="success" %}
**Looking for a full overview of WhatsApp group automation?**\
Check out our guide: [**How to Manage and Automate WhatsApp Groups via API**](https://whapi.cloud/how-to-automate-whatsapp-groups-api) - it includes code examples (Python, Node.js, PHP) and no-code setups using Make, Zapier, and n8n.
{% endhint %}

{% embed url="<https://youtu.be/PlVVoWkDb08>" %}

First, you need to make sure you are in a group. Of course, it is not possible to get information about the members of a group without being a member.

After that, you will need to get a list of your groups:

{% embed url="<https://whapi.readme.io/reference/getgroups>" %}

The response to the query will contain an array of information, including group members `"participants": []`:

```json
{
      "id": "120367831605595066@g.us",
      "name": "A group of researchers",
      "type": "group",
      "timestamp": 1699349020,
      "archive": true,
      "last_message": {
        "id": "GWkmcWg-0iE5Bq2sW4Fu.g-E8JdK1c",
        "type": "system",
        "subtype": "group_create",
        "chat_id": "120367831605595066@g.us",
        "from": "14409416972",
        "from_me": true,
        "source": "system",
        "timestamp": 1699349020
      },
      "participants": [
        {
          "id": "972558557032",
          "rank": "member"
        },
        {
          "id": "14409416972",
          "rank": "creator"
        },
        {
          "id": "905589461962",
          "rank": "member"
        }
      ],
      "name_at": 1699349020,
      "created_at": 1699349020,
      "created_by": "14409416972"
    }
```

{% hint style="success" %}
All Group API Calls to work with WhatsApp groups: <https://whapi.readme.io/reference/getgroups>
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.whapi.cloud/help-desk/groups/get-list-of-group-members.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
