Continuous display of ‘Daily Limit Exceeded’ by the Google Translate API

As a response, it should be noted that there is no available Google translate API that is free of charge, hence billing must be enabled. To add to @Ishan Arora’s suggestion, once your credit card information is added, you may proceed to the console and open your project. A prompt will appear and ask you to set up a billing account for your project. In order to resolve the error, simply choose “set project into the billing account” from the dropdown list.


Question:

My goal is to activate the
google translate
API, and the getting started guide provides an illustration to do so:

https://www.googleapis.com/language/translate/v2/detect?key={MyAppId}&q=google+translate+is+fast

.

At the moment, my primary focus is to make it function properly. Hence, I am attempting to access it through a browser post and have therefore devised a test web application (a screenshot of which is available).

Settings

After seizing the API key, I substituted the sample URL’s key with my own. Consequently, the response received was as follows:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceeded",
    "message": "Daily Limit Exceeded"
   }
  ],
  "code": 403,
  "message": "Daily Limit Exceeded"
 }
}

It’s worth mentioning that I have enrolled my account in the billing option since I anticipate using the service frequently. Therefore, I don’t foresee any problems as of now.

It’s clear that I’m making a mistake, but I’m unsure what it is. Can you offer any recommendations?


Solution 1:

To translate data, billing must be enabled and your credit/debit card registered. A charge of $1 will be deducted upon registration, after which you can utilize your URL.

I have recently tried it and it worked perfectly.

Presently, I am engaged in a project involving translation.

If you require any assistance regarding this topic, feel free to inform me.

Ishan


Solution 2:


Before proceeding, it is important to ensure that the Translate API is enabled by checking the “APIs” link in the Cloud Console. Failure to do so may result in a zero quota and a message similar to the one encountered.

In case of API activation, the provided link can assist in determining your project’s usage limits. Visit https://developers.google.com/translate/v2/pricing to access the relevant information.


Solution 3:

You can change the quotas manually:


Solution 4:

In addition to Ishan Arora’s suggestion, once you have entered the credit card details, navigate to the console and access your project. A prompt will appear, requesting the setup of
billing account
for your project. To avoid the error, simply choose the “set project into the billing account” option from the drop-down list.

Frequently Asked Questions

Posted in Uncategorized