# 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 %}
