Skip to content

Get Group Members ​

GET /group/member

Get the member list of one group, up to 10,000 members. Each member's id works directly as user in Send Message and Send Typing.

Endpoint Details ​

  • Base URL: https://api-zate.azickri.com
  • Headers: id and session-id
  • Requirement: the session must be connected (isConnected: true)

Parameters ​

ParameterInTypeRequiredDescription
idheaderstringYesid from Create Session.
session-idheaderstringYessessionId from Create Session.
groupIdquerystringYesGroup ID, like -1001234567890, or a public group's username.

Example Request ​

bash
curl "https://api-zate.azickri.com/group/member?groupId=-1001234567890" \
  -H "id: YOUR_ID" \
  -H "session-id: YOUR_SESSION_ID"
javascript
import axios from 'axios';

const response = await axios.get('https://api-zate.azickri.com/group/member', {
  params: {
    groupId: '-1001234567890',
  },
  headers: {
    'id': 'YOUR_ID',
    'session-id': 'YOUR_SESSION_ID',
  },
});

console.log(response.data);
javascript
const params = new URLSearchParams({
  groupId: '-1001234567890',
});

const response = await fetch(`https://api-zate.azickri.com/group/member?${params}`, {
  headers: {
    'id': 'YOUR_ID',
    'session-id': 'YOUR_SESSION_ID',
  },
});

const data = await response.json();
console.log(data);

Response ​

json
{
  "docs": [
    {
      "id": "123456789",
      "name": "Azickri",
      "username": "azickri",
      "phone": "6281234567890"
    },
    {
      "id": "111222333",
      "name": "Budi",
      "username": "budi",
      "phone": ""
    }
  ]
}
json
// groupId missing
{
  "statusCode": 400,
  "message": "groupId must be a string\ngroupId should not be empty"
}

// Not a group, or one you haven't joined
{
  "statusCode": 400,
  "message": "group not found"
}
json
{
  "statusCode": 404,
  "message": "session not found"
}
json
// The group hides its members and you're not an admin
{
  "statusCode": 500,
  "message": "400: CHAT_ADMIN_REQUIRED (caused by channels.GetParticipants)"
}
FieldTypeDescription
docsarrayList of group members.
docs[].idstringTelegram user ID.
docs[].namestringDisplay name. Falls back to the username, phone, or ID when empty.
docs[].usernamestringUsername without @. Empty if they have none.
docs[].phonestringPhone number. Empty unless the member shares it with your account.

Groups that hide their members

Supergroup admins can hide the member list. In such groups only admins can fetch it, otherwise Telegram refuses with CHAT_ADMIN_REQUIRED.