Answer the question
In order to leave comments, you need to log in
How to get a list of events from the groups.search VK API method?
How to get a list of events from the groups.search VK API method.
If you make a query with the parameters type = "event" q = "" or q = "*"
does not produce results except for one event.
Although there is a vkevent dot ru site where this is implemented.
How is it implemented?
Answer the question
In order to leave comments, you need to log in
in order to collect all the communities one search is not enough, you need to sort through all the communities and select events from them.
he himself somehow tried to do a search by letters a b c d e etc. finds a lot, but not all, the search returns only the top 1000 events for each letter (and then you can’t get it through the api), and in most cases they are repeated, in this way you can only 2-3k unique events to get. although if you add a filter by city, it may work, but there will be much more requests
q is a required parameter, so you need to pass a search query there, in your example * it will search for communities with a name containing *
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question