Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the rate limit for Google translate API V2?

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?

like image 997
Ido Weinstein Avatar asked Oct 04 '11 09:10

Ido Weinstein


1 Answers

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.

like image 73
Ido Weinstein Avatar answered Oct 29 '22 09:10

Ido Weinstein