Z
Z
zikvb69x2021-10-23 06:20:59
In contact with
zikvb69x, 2021-10-23 06:20:59

How to display a list of id users subscribed to a VKontakte group more than 1000 limit?

Tell me how to list the id of users subscribed to a group / public VK
When trying to use groups.getMembers, it displays a dictionary in the first 1000 IDs
, is it possible to write a loop to go to the next 1000
or what to do?

I'm just learning this area
thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DimaX, 2021-10-23
@DimaX

Yes, of course you can.
In the description of the https://vk.com/dev/groups.getMembers method , there is a parameter just to solve this problem - "offset".
At the first request of the method, you either do not pass this parameter, or pass 0, you get the first 1000 ID, at the next request you pass offset=1000, then 2000, and so on.

P
Puma Thailand, 2021-10-23
@opium

well, do it in a cycle by offset

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question