Detect Language

Detect the language of the given text. The API returns a list of languages and their confidence scores. The confidence score is a value between 0 and 1, where 1 means the language was detected with 100% confidence. The API supports text in 22 languages.

GET
https://api.apileague.com/detect-language
Example Request and Response
GET
https://api.apileague.com/{{ examples.getDetectLanguage }}
[
    {
        "language": "de",
        "confidence": 0.34
    },
    {
        "language": "et",
        "confidence": 0.22
    },
    {
        "language": "fi",
        "confidence": 0.13
    },
    {
        "language": "sv",
        "confidence": 0.11
    },
    {
        "language": "it",
        "confidence": 0.11
    },
    {
        "language": "es",
        "confidence": 0.05
    },
    {
        "language": "pt",
        "confidence": 0.03
    },
    {
        "language": "lt",
        "confidence": 0.01
    }
]
cURL
Java
Javascript
Python
Go
C#
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}