VK icon

VK

Работа с API ВКонтакте (личная страница)

👥 Сбор аудитории → Участники группы

AI-generated

Summary

Retrieve a list of members of a VK group or public community with optional sorting, profile fields, and pagination controls.

Inputs

  • ID сообщества (required) — Positive integer ID of the VK group or public community to fetch members from.
  • Сортировка — Sorting order of the members list: ascending or descending by ID, or by join time (newest or oldest first).
  • Поля профиля — Comma-separated VK profile fields to include for each member (e.g., photo_200, city, sex, bdate).
  • Количество — Number of members to return per request, between 1 and 1000.
  • Смещение — Offset to start fetching members from, used when auto-pagination is disabled.
  • Авто-пагинация — Enable automatic multi-page fetching to retrieve all members up to a maximum.
  • Размер страницы — Number of members to request per page when auto-pagination is enabled, between 1 and 1000.
  • Максимум элементов — Maximum total number of members to retrieve across all pages when auto-pagination is enabled.

Output shape

a list of user profile objects representing group members

Outputs multiple items, each containing JSON with the member's data including requested profile fields. Supports automatic pagination to fetch large member lists in batches according to specified page size and maximum items.

Examples

Example 1: Fetch first 100 members of group ID 12345 sorted by join time descending with profile photos and cities included.

Set 'ID сообщества' to 12345, 'Сортировка' to 'time_desc', 'Поля профиля' to 'photo_200,city', 'Количество' to 100, and ensure 'Авто-пагинация' is false or unset.

Example 2: Fetch all members of group ID 67890 with default profile fields, using auto-pagination with page size 200 and a total limit of 1000 members.

Set 'ID сообщества' to 67890, 'Авто-пагинация' to true, 'Размер страницы' to 200, and 'Максимум элементов' to 1000.

Links

Discussion