Get list of group members

Get the numbers of the group participants

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:

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

{
      "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"
    }

All Group API Calls to work with WhatsApp groups: https://whapi.readme.io/reference/getgroups

Last updated