Google翻译API第2版的速率限制是多少? [英] what is the rate limit for Google translate API V2?

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

问题描述

我正在非常频繁地使用Google翻译API V2,经过大约2000个请求之后,我开始在返回的JSON中获取此信息:

I am using the Google translate API V2 very intensely and after about 2000 requests I start getting this in the returning JSON:

Array
(
    [error] => Array
        (
            [errors] => Array
                (
                    [0] => Array
                        (
                            [domain] => usageLimits
                            [reason] => userRateLimitExceeded
                            [message] => User Rate Limit Exceeded
                        )

                )

            [code] => 403
            [message] => User Rate Limit Exceeded
        )

)

您知道速率限制是多少吗?您是否有一种聪明的方式来调节请求率?

Any idea what the rate limit is? and do you have a smart way of regulating the requests rate?

推荐答案

我终于发现了,所以我将回答我自己的问题. 可以在API的管理面板上设置API的速率限制( https://code.google. com/apis/console ). 我没有找到关于API可能返回的错误的完整文档.

I finally found out so I will answer my own question. The rate limit for the API can be set at the admin panel for your API's (https://code.google.com/apis/console) under the quotas section in the left hand menu. I did not find a full documentation of the possible errors that can be returned by an API.

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

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