Answer the question
In order to leave comments, you need to log in
How to bypass the limit of requests to api VK?
The bottom line is that VK prohibits making requests too often and gives an error. Question: Do I have to make a delay on my server? Otherwise it turns out too long, because. VK does not always return 0, but after several requests (if I do not delay). Can VK suddenly limit my application to requests if I don’t make a delay, or how can I parse tens of thousands of posts as quickly as possible?
And yet, I read that there is generally some kind of limit by one user for parsing data. What is this limit?
Answer the question
In order to leave comments, you need to log in
Limitations and Recommendationshttps://vk.com/dev/api_requests
From the client side, you can access API methods no more than 3 times per second.
The maximum number of requests from the server side depends on the number of users who installed the application.
If the application is installed by less than 10,000 people, then you can make 5 requests per second, up to 100,000 - 8 requests, up to 1,000,000 - 20 requests, more than 1 million - 35 requests per second.
If these values are exceeded, the server will return an error with code 6: "Too many requests per second.".
If the logic of your application involves calling several methods in a row, it makes sense to pay attention to the execute method.
In addition to restrictions on the frequency of calls, there are also quantitative restrictions on calling methods of the same type. For obvious reasons, we do not provide information on the exact limits.
After exceeding the quantitative limit, access to a particular method may require entering a captcha (see captcha_error), and then may be temporarily restricted (in this case, the server does not return a response to a particular method call, but processes any other requests without problems).
Here you can see a specific example: https://vivazzi.ru/it/vk-error-6/
Written in python, but the logic, I think, will be clear, and it will be easy to transfer it to another language.
- no, it will just return an error with code 6
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question