---
title: "Detect language(s) in text"
method: POST
path: "/api/v1/languagelabs/language-detection"
tags: ["Language Detection"]
---

# Detect language(s) in text

`POST /api/v1/languagelabs/language-detection`

## Request body

- object
  - `query` string, required — Input text to analyze.

## Response `200`

Detected languages with confidences.

- object
  - `status` string
  - `data` object[]
    - `label` string
    - `value` string

## Other responses

- `400` — Bad Request — Invalid request format or parameters.
- `401` — Unauthorized — Invalid or missing API key.
- `404` — Not Found — The requested resource was not found.
- `422` — Unprocessable Entity — Validation failed.
- `429` — Too Many Requests — Rate limit exceeded.
- `500` — Internal Server Error.
- `502` — Bad Gateway — Upstream service error.
- `503` — Service Unavailable — Try again later.

---

[API](https://skmtc.net/olakrutrim/apis/object-storage-bucket-api.md) · [All operations](https://skmtc.net/olakrutrim/apis/object-storage-bucket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/olakrutrim/object-storage-bucket-api/revisions/01a982e59414/schema)
