---
title: Detect Text Language Probabilities API
slug: detect-text-language
url: https://apyhub.com/dosvak/service/detect-text-language
provider: Dosvak LLC
categories: [Artificial Intelligence, Standard Data]
tags: [language-detection, text-classification, nlp, iso-639-1, multilingual]
auth: api_key
---

# Detect Text Language Probabilities API

Detect the language of short text and get an ISO 639-1 code with probability breakdowns. Useful for routing, translation, and multilingual processing.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `` | What it does Detects the language of the input text and returns the most likely language code along… | 10 |

## About

## What it does
Language Detector identifies the language of a text string and returns the most likely ISO 639-1 code plus a probability breakdown for candidate languages.

Send `text` in the request body and get back a `detected` value for the primary language, along with `probabilities` for the languages the model considered. The input text is limited to 512 characters, so it fits short messages, snippets, comments, or user-generated content.

Use Language Detector when you need to route support tickets, pick a translation workflow, choose the right NLP model, or apply language-specific rules before processing content. Because the response includes per-language probabilities, you can inspect borderline cases instead of relying only on a single label.

The API is a good fit for systems that ingest mixed-language text and need a lightweight classification step before search, moderation, analytics, or translation.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dosvak/service/detect-text-language
