Google API速率限制 [英] Google API rate limiting

查看:209
本文介绍了Google API速率限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google限制了可以对其服务器进行的实际API调用。我知道这样一个事实,即这个速率是动态的,即它们动态地确定服务器应该开始阻止请求的请求数量。



我有两个问题 -


  1. Google如何做?即动态计算(可能基于负载/带宽使用情况)限制率。
  2. 如何最优地将请求触发到其API而不会被阻止。

感谢。

解决方案

Google会检查您的IP地址并将其封锁如果您在一段时间内请求太多。



如果您打算在短时间内向Google提出多项请求,他们通常会根据您的IP通过验证码赢取和阻止您。



因此,您可以访问多个IP来执行您正在执行的操作,或者更好地抑制您的请求,以免碰到它们。


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.

解决方案

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.

这篇关于Google API速率限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆