# Get list of group members

{% 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
