G
G
GALIAF952018-08-30 00:52:48
In contact with
GALIAF95, 2018-08-30 00:52:48

Is it possible to use requests of the same type in the execute VK API method?

You need to get group statistics by subscribers. Here I have an array of groups, and I take statistics on users using users.searchthe method indicating the group identifier and, for example, the field sex = 1, i.e. I want to get the number of female followers.
Using the method statswill not give me the desired result, and not all groups have this method available.
I decided to shove everything into execute, i.e. 25 times (as I understood from the documentation, this is the limit) I call the method users.searchfor 25 groups. And I got over the limit .
How else can something like this be done? In order not to exceed the limit, but at the same time not to wait ten minutes, and this is exactly the case if you send a request for each group every 3 seconds, without using execute.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GALIAF95, 2018-09-01
@GALIAF95

Specifically, in this issue, the problem was in the same type of call to the users.search method. And as a result, you cannot call this method after exceeding the limit, the method is limited quantitatively and not frequency.

S
Stockholm Syndrome, 2018-08-30
@StockholmSyndrome

why such difficulties? use stats.get

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question