Cloud Translation API

Integrates text translation into your website or application.

Service: translate.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://translate.googleapis.com

REST Resource: v3beta1.projects

Methods
detectLanguage POST /v3beta1/{parent=projects/*}:detectLanguage
Detects the language of text within a request.
getSupportedLanguages GET /v3beta1/{parent=projects/*}/supportedLanguages
Returns a list of supported languages for translation.
translateText POST /v3beta1/{parent=projects/*}:translateText
Translates input text and returns translated text.

REST Resource: v3beta1.projects.locations

Methods
batchTranslateDocument POST /v3beta1/{parent=projects/*/locations/*}:batchTranslateDocument
Translates a large volume of document in asynchronous batch mode.
batchTranslateText POST /v3beta1/{parent=projects/*/locations/*}:batchTranslateText
Translates a large volume of text in asynchronous batch mode.
detectLanguage POST /v3beta1/{parent=projects/*/locations/*}:detectLanguage
Detects the language of text within a request.
get GET /v3beta1/{name=projects/*/locations/*}
Gets information about a location.
getSupportedLanguages GET /v3beta1/{parent=projects/*/locations/*}/supportedLanguages
Returns a list of supported languages for translation.
list GET /v3beta1/{name=projects/*}/locations
Lists information about the supported locations for this service.
translateDocument POST /v3beta1/{parent=projects/*/locations/*}:translateDocument
Translates documents in synchronous mode.
translateText POST /v3beta1/{parent=projects/*/locations/*}:translateText
Translates input text and returns translated text.

REST Resource: v3beta1.projects.locations.glossaries

Methods
create POST /v3beta1/{parent=projects/*/locations/*}/glossaries
Creates a glossary and returns the long-running operation.
delete DELETE /v3beta1/{name=projects/*/locations/*/glossaries/*}
Deletes a glossary, or cancels glossary construction if the glossary isn't created yet.
get GET /v3beta1/{name=projects/*/locations/*/glossaries/*}
Gets a glossary.
list GET /v3beta1/{parent=projects/*/locations/*}/glossaries
Lists glossaries in a project.

REST Resource: v3beta1.projects.locations.operations

Methods
cancel POST /v3beta1/{name=projects/*/locations/*/operations/*}:cancel
Starts asynchronous cancellation on a long-running operation.
delete DELETE /v3beta1/{name=projects/*/locations/*/operations/*}
Deletes a long-running operation.
get GET /v3beta1/{name=projects/*/locations/*/operations/*}
Gets the latest state of a long-running operation.
list GET /v3beta1/{name=projects/*/locations/*}/operations
Lists operations that match the specified filter in the request.
wait POST /v3beta1/{name=projects/*/locations/*/operations/*}:wait
Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state.

Service: translate.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://translate.googleapis.com

REST Resource: v3.projects

Methods
detectLanguage POST /v3/{parent=projects/*}:detectLanguage
Detects the language of text within a request.
getSupportedLanguages GET /v3/{parent=projects/*}/supportedLanguages
Returns a list of supported languages for translation.
translateText POST /v3/{parent=projects/*}:translateText
Translates input text and returns translated text.

REST Resource: v3.projects.locations

Methods
batchTranslateText POST /v3/{parent=projects/*/locations/*}:batchTranslateText
Translates a large volume of text in asynchronous batch mode.
detectLanguage POST /v3/{parent=projects/*/locations/*}:detectLanguage
Detects the language of text within a request.
get GET /v3/{name=projects/*/locations/*}
Gets information about a location.
getSupportedLanguages GET /v3/{parent=projects/*/locations/*}/supportedLanguages
Returns a list of supported languages for translation.
list GET /v3/{name=projects/*}/locations
Lists information about the supported locations for this service.
translateText POST /v3/{parent=projects/*/locations/*}:translateText
Translates input text and returns translated text.

REST Resource: v3.projects.locations.glossaries

Methods
create POST /v3/{parent=projects/*/locations/*}/glossaries
Creates a glossary and returns the long-running operation.
delete DELETE /v3/{name=projects/*/locations/*/glossaries/*}
Deletes a glossary, or cancels glossary construction if the glossary isn't created yet.
get GET /v3/{name=projects/*/locations/*/glossaries/*}
Gets a glossary.
list GET /v3/{parent=projects/*/locations/*}/glossaries
Lists glossaries in a project.

REST Resource: v3.projects.locations.operations

Methods
cancel POST /v3/{name=projects/*/locations/*/operations/*}:cancel
Starts asynchronous cancellation on a long-running operation.
delete DELETE /v3/{name=projects/*/locations/*/operations/*}
Deletes a long-running operation.
get GET /v3/{name=projects/*/locations/*/operations/*}
Gets the latest state of a long-running operation.
list GET /v3/{name=projects/*/locations/*}/operations
Lists operations that match the specified filter in the request.
wait POST /v3/{name=projects/*/locations/*/operations/*}:wait
Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state.