Access to the Cloud Translation API

How do I sign up?
See the Quickstart for how to sign up for the Cloud Translation API service.
How do I create a corporate account and not use my personal gmail account?
You can sign up for a Google Account using your work email address. Then use the account you just created when you login to the Google Cloud Platform Console.
Is there any free quota?
No, the Cloud Translation API is only available as a paid service. Please see Pricing for more details.
What languages are supported?
See the list of supported languages.
Can I resell the Cloud Translation API?
No, you are not permitted to resell the Cloud Translation API service.
Can my users sign up for their own Translation API key and use it in my application?
Yes. However, one requirement is that you identify the application by providing a unique user agent and/or referrer when making requests to the Cloud Translation API with your user's key.

Data confidentiality

Does Google look at or use the text I send for translation?
Google will not use any of your content for any purpose except to provide you with the service.
Will Google share the text I translate with others?
We will not make the content of the text that you translate available to the public, or share it with anyone else, except as necessary to provide the Translation API service. For example, sometimes we may need to use a third-party vendor to help us provide some aspect of our services, such as storage or transmission of data. We won’t share the text that you translate with any other parties, or make it public, for any other purpose.
Will the text I send for translation, the translation itself, or other information about translation requests be stored on Google servers? If so, how long and where is the information kept?
When you send Google text for translation, we must store that text for a short period of time in order to perform the translation and return the results to you. The stored text is typically deleted in a few hours, although occasionally we will retain it for longer while we perform debugging and other testing. Google also temporarily logs some metadata about translation requests (such as the time the request was received and the size of the request) to improve our service and combat abuse. For security and reliability, we distribute data storage across many machines in different locations. You can read more about our data security practices here.
Does the Cloud Translation API support secure connections?
Yes, we provide SSL connection support for secure connectivity to the Translation API.
Does Google claim ownership of the content I send for translation?
Google does not claim any ownership in any of the content that you transmit in the Translation API.
How does Google protect and ensure the security of the data I send for translation?
Please refer to the following webpage which describes the security measures in place for Google’s Cloud Services.
Does Google use my data for training purposes?
No, Google does not use the content you translate to train and improve our machine translation engine. In order to improve the quality of machine translation, Google needs parallel text - the content along with the human translation of that content.


Do I have to attribute Google when publishing the results of translation?
Usually, yes. See the attribution guidelines for more information.
If I’m post-editing the translation results, do I need to display attribution?
No. If you are post-editing the machine translation, no attribution is required.

Technical Questions

How do I tell Cloud Translation API to NOT translate something?

You can use the following HTML tags:

  • <span translate="no"> </span>
  • <span class="notranslate"> </span>

This functionality requires the source text to be submitted in HTML.

Why was a style attribute added to the translated text with text-align and direction CSS properties?

This occurs when you include HTML with the requested text to be translated, and you are translating from a right-to-left to a left-to-right language, or from a left-to-right to a right-to-left language. The translation includes the HTML style attribute with the text-align and direction CSS properties to ensure that the translated text is oriented in the proper direction. For example, translating <h2>Sample text</h2> from English to Hebrew returns the following JSON:

  "data": {
    "translations": [
        "translatedText": "\u003ch2 style=\";text-align:right;direction:rtl\"\u003e טקסט לדוגמה (דברים) \u003c/h2\u003e"
I get an HTTP 403 error when I call the API.
You may be exceeding your quota: either the daily billable total, or the limit on characters per 100 seconds. The error message says Daily Limit Exceeded if you exceeded the daily limit or User Rate Limit Exceeded if you exceeded either of the "Characters per 100 seconds" quotas.

To view or change usage limits for your project, or to request an increase to your quota, do the following:

  1. If you don't already have a billing account for your project, then create one.
  2. Visit the Enabled APIs page of the API library in the GCP Console, and select an API from the list.
  3. To view and change quota-related settings, select Quotas. To view usage statistics, select Usage.
I sometimes get HTTP 500 (Internal Errors) response from the API
This could happen if you submit text without the source language specified. If Google cannot determine the source language given the text (usually because the text is too short), we will return a 500. This situation can be fixed by specifying the source language explicitly.
Can I specify multiple target languages in one request?
No, the V2 API only allows one target language per request.
What is the recommended number of characters per request?
Less than 5000, including HTML characters.
Is it possible to get multiple translations of a word?
No. This feature is only available via the web interface at translate.google.com
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Translation API
Need help? Visit our support page.