Google API rate limiting

五迷三道 提交于 2019-12-20 01:59:16

问题


Google limits the actual API calls one can make to their servers. I know for a fact that this rate is dynamic i.e. they determine dynamically what number of requests after which the server should start blocking requests.

I have 2 questions -

  1. How does Google do it? i.e. dynamically figure out (maybe based on the load/bandwidth usage) the limit rate.
  2. how can I optimally fire requests to their API's without getting blocked.

thanks.


回答1:


Google checks your IP address and blocks it if you have too many requests in some amount of time.

If you're planning on having many requests to Google in a short amount of time, they'll usually win and block you with a captcha based on your IP.

So you can either get access to multiple IPs to do what you're doing, or better yet throttle your requests so you don't run afoul of them.



来源:https://stackoverflow.com/questions/4662069/google-api-rate-limiting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!