The most probable language detected by the Translation API. For each request, the Translation API will always return only one result.
DetectedLanguage
The response message for language detection.
JSON representation
{"language_code": string,"confidence": number}
Fields
language_code
string
The BCP-47 language code of source content in the request, detected automatically. Note: When detectLanguage returns zh-CN, jw, or tl, use zh, jv, or fil in translation requests and glossaries.
confidence
number
The confidence of the detection result for this language.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-22 UTC."],[],[]]