Google Cloud Translation API (translate:v2)

2024-10-29

5 new methods | New API

Additions

    Methods
  • language.detections.list

  • language.detections.detect

  • language.languages.list

      Path : v2/languages

      HTTP Method : GET

      Description : Returns a list of supported languages for translation.

      Scopes :

    • https://www.googleapis.com/auth/cloud-translation
    • https://www.googleapis.com/auth/cloud-platform
    • Parameters :

        target

          Type : string

          Description : The language to use to return localized, human readable names of supported languages.

          Location : query

        model

          Type : string

          Description : The model type for which supported languages should be returned.

          Location : query

  • language.translations.list

      Path : v2

      HTTP Method : GET

      Description : Translates input text, returning translated text.

      Scopes :

    • https://www.googleapis.com/auth/cloud-translation
    • https://www.googleapis.com/auth/cloud-platform
    • Parameters :

        cid

          Type : string

          Description : The customization id for translate

          Repeated : Yes

          Location : query

        format

          Type : string

          Description : The format of the source text, in either HTML (default) or plain-text. A value of "html" indicates HTML and a value of "text" indicates plain-text.

          Enum :

        • html
        • text
        • Enum Descriptions :

        • Specifies the input is in HTML
        • Specifies the input is in plain textual format
        • Location : query

        q

          Type : string

          Description : The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.

          Required : Yes

          Repeated : Yes

          Location : query

        source

          Type : string

          Description : The language of the source text, set to one of the language codes listed in Language Support. If the source language is not specified, the API will attempt to identify the source language automatically and return it within the response.

          Location : query

        target

          Type : string

          Description : The language to use for translation of the input text, set to one of the language codes listed in Language Support.

          Required : Yes

          Location : query

        model

          Type : string

          Description : The `model` type requested for this translation. Valid values are listed in public documentation.

          Location : query

      Parameter Order :

    • q
    • target
  • language.translations.translate

5 removed methods | Removed API

Deletions

    Methods
  • language.detections.list

  • language.detections.detect

  • language.languages.list

      Path : v2/languages

      HTTP Method : GET

      Description : Returns a list of supported languages for translation.

      Scopes :

    • https://www.googleapis.com/auth/cloud-translation
    • https://www.googleapis.com/auth/cloud-platform
    • Parameters :

        target

          Type : string

          Description : The language to use to return localized, human readable names of supported languages.

          Location : query

        model

          Type : string

          Description : The model type for which supported languages should be returned.

          Location : query

  • language.translations.list

      Path : v2

      HTTP Method : GET

      Description : Translates input text, returning translated text.

      Scopes :

    • https://www.googleapis.com/auth/cloud-translation
    • https://www.googleapis.com/auth/cloud-platform
    • Parameters :

        cid

          Type : string

          Description : The customization id for translate

          Repeated : Yes

          Location : query

        format

          Type : string

          Description : The format of the source text, in either HTML (default) or plain-text. A value of "html" indicates HTML and a value of "text" indicates plain-text.

          Enum :

        • html
        • text
        • Enum Descriptions :

        • Specifies the input is in HTML
        • Specifies the input is in plain textual format
        • Location : query

        q

          Type : string

          Description : The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.

          Required : Yes

          Repeated : Yes

          Location : query

        source

          Type : string

          Description : The language of the source text, set to one of the language codes listed in Language Support. If the source language is not specified, the API will attempt to identify the source language automatically and return it within the response.

          Location : query

        target

          Type : string

          Description : The language to use for translation of the input text, set to one of the language codes listed in Language Support.

          Required : Yes

          Location : query

        model

          Type : string

          Description : The `model` type requested for this translation. Valid values are listed in public documentation.

          Location : query

      Parameter Order :

    • q
    • target
  • language.translations.translate