Detects the language of text within a request.
HTTP request
POST https://{TRANSLATION_GDC_ENDPOINT}/v3/{parent}:detectLanguage
Path parameters
Parameters | |
---|---|
parent |
Required. Project to make a call. Must refer to a caller's project. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "mime_type": string, string: string, ... }, "content": string } |
Fields | |
---|---|
mime_type |
Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html". |
content |
The content of the input stored as a string. |
Response body
If successful, the response body contains an instance of DetectLanguageResponse
.