Get list of group members
Get the numbers of the group participants
Looking for a full overview of WhatsApp group automation? Check out our guide: How to Manage and Automate WhatsApp Groups via API - it includes code examples (Python, Node.js, PHP) and no-code setups using Make, Zapier, and n8n.
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": "[email protected]",
"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": "[email protected]",
"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
PreviousMentioning all participants in a WhatsApp groupNextHow Whapi Processes and Updates WhatsApp Group Data
Last updated
Was this helpful?