---
title: Language Detection
slug: detect-language
url: https://apyverse.com/apyhub/service/detect-language
provider: ApyHub
categories: [Artificial Intelligence, Standard Data]
tags: [language-detection, text-analysis, nlp, localization, content-classification]
auth: api_key
---

# Language Detection

Detect the language of a text string using ApyHub, Azure, or Google. Useful for routing, translation, and text classification.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `` | What it does Detects the language of the provided text and returns a JSON object containing provide… | 500 |

## About

## What it does
Language Detection identifies the language of a text string and returns a structured result from the selected provider. Send plain text in `body.text`, and choose `requested_service` to use `apyhub`, `azure`, or `google`.

Use it when you need to route user content, label documents, or apply the right downstream NLP pipeline. A chat app can detect the language of an incoming message before translation; a content system can classify uploaded text before indexing or moderation.

The request schema also supports provider-specific credentials through `body.azure` and `body.google` when you want to call those services directly. The response wraps provider output under `data.azure`, `data.apyhub`, or `data.google`, so you can consume the result from the service you selected without guessing the response shape.

This is a lightweight text-analysis endpoint: you provide the text, and Language Detection returns the detected-language response from the chosen backend.

## Usage

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