Example of detecting languages for multiple texts in a single request using the POST /detect-batch endpoint. Each text in the input array produces a corresponding array of language candidates in the response.
Language DetectionNatural Language ProcessingText AnalysisMachine-LearningMultilingual
Detect Batch is an example object payload from DetectLanguage, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"title": "Batch Language Detection",
"description": "Example of detecting languages for multiple texts in a single request using the POST /detect-batch endpoint. Each text in the input array produces a corresponding array of language candidates in the response.",
"request": {
"method": "POST",
"url": "https://ws.detectlanguage.com/v3/detect-batch",
"headers": {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
"body": {
"q": [
"Hello world",
"Dolce far niente",
"Labas rytas"
]
}
},
"response": {
"status": 200,
"body": [
[
{
"language": "en",
"score": 0.9098
}
],
[
{
"language": "it",
"score": 0.5074
}
],
[
{
"language": "lt",
"score": 0.3063
}
]
]
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.