Sample response:
{
"status": {
"code": 0,
"credits": 1,
"msg": "OK"
},
"language_list": [
{
"iso-639-1": "en",
"iso-639-2": "eng",
"iso-639-3": "eng",
"language": "en",
"name": "English",
"relevance": 100
}
],
"deepTime": 0.06057405471801758,
"time": 0.16714835166931152
}
Response fields:
Name | Description |
---|
status | Describes the request outcome in terms of success or failure. |
status .code | Numerical value of result code. Refer to theerror code catalog. |
status .msg | Human-readable error code, if any, orOK . |
status .credits | Credits consumed by the request. |
status .remaining_credits | Credits left to reach the usage limit. |
language_list | Contains the list of languages detected, sorted by relevance. |
language_list[] .language | Code of the language. A language included in the ISO-639-1 standard is represented by a two-letter code, while other languages are represented by a three-letter code. |
language_list[] .name | Human-readable name of the language. |
language_list[] .relevance | Relevance value associated to the detected language. |
language_list[] .iso-639-1 | Two-letter code of the language if it is included in the ISO-639-1 standard. |
language_list[] .iso-639-2 | Three-letter code of the language if it is included in the ISO-639-2 standard. |
language_list[] .iso-639-3 | Three-letter code of the language if it is included in the ISO-639-3 standard. |
language_list[] .iso-639-5 | Three-letter code of the language if it is included in the ISO-639-5 standard. |
deepTime | Time taken for the neural network to perform the identification. |
time | Time taken for the API to perform the request. |