---
title: "Detect"
method: POST
path: "/v1/data/x/translate/detect"
tags: ["X (Twitter): Translation"]
---

# Detect

`POST /v1/data/x/translate/detect`

## Request

- Base URL: `https://api.superagnt.com`
- URL: `https://api.superagnt.com/v1/data/x/translate/detect`
- Auth: API key in header `Authorization`

This endpoint will return the Language of the Text

## Request body

- object
  - `text` string

## Response `200`

Response

- object
  - `lang` string
  - `confidence` integer
  - `script` string
  - `is_reliable` boolean

---

[API](https://skmtc.dev/superagnt/apis/superagnt-api.md) · [All operations](https://skmtc.dev/superagnt/apis/superagnt-api/llms.txt) · [OpenAPI document](https://skmtc.dev/superagnt/apis/superagnt-api/revisions/b2d8de30ccf0?raw)
