VK icon

VK

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

👥 Сбор аудитории → Мои сообщества

AI-generated

Summary

Retrieve a list of VKontakte communities (groups, public pages, events) associated with a specified user, filtered by membership role or community type.

Inputs

  • ID пользователя — Numeric ID of the user whose communities to retrieve; 0 denotes the currently authenticated user.
  • Фильтр — Filter to select communities by role or type: all, administrator, editor, moderator, groups, publics, or events.
  • Количество — Number of communities to retrieve per request (1-1000). Defaults to 100.
  • Смещение — Offset for pagination, used only if auto pagination is disabled.
  • Авто-пагинация — Enable automatic retrieval of all pages of results up to the maxItems limit.
  • Размер страницы — Number of communities to request per page when auto pagination is enabled (1-1000). Defaults to 100.
  • Максимум элементов — Maximum total number of communities to retrieve when auto pagination is enabled.

Output shape

multiple JSON objects, each representing a community with extended info (extended=1) as returned by VK API groups.get method.

Supports both single-page and automatic multi-page pagination up to maxItems. If auto pagination is disabled, results start from the specified offset; otherwise, all pages are retrieved automatically up to maxItems limit.

Examples

Example 1: Fetch the first 50 groups where the current user is an administrator.

Set 'ID пользователя' to 0, 'Фильтр' to 'Администратор', 'Количество' to 50, and disable 'Авто-пагинация'.

Links

Discussion