Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question