--- title: "Detect language" slug: "ai-naver-papagolanguagedetection-dect" tags: ["Papago Translation"] updated: 2026-09-17T09:35:51Z published: 2026-09-17T09:35:51Z canonical: "api.ncloud-docs.com/ai-naver-papagolanguagedetection-dect" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Detect language Available in Classic and VPC Automatically detect the language of the entered text. It recognizes a total of 15 languages. ## Request This section describes the request format. The method and URI are as follows: | Method | URI | | --- | --- | | POST | /dect | ### Request headers For information about the headers common to all Papago Translation APIs, see [Papago Translation request headers](/docs/en/ai-naver-papagonmt#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94). ### Request body You can include the following data in the body of your request: | Field | Type | Required | Description | | --- | --- | --- | --- | | `query` | String | Required | Text to detect language for | ### Request example The request example is as follows: ``` curl --location --request POST 'https://papago.apigw.ntruss.com/langs/v1/dect' \ --header 'X-NCP-APIGW-API-KEY-ID: {Client ID issued when registering the app}' \ --header 'X-NCP-APIGW-API-KEY: {Client secret issued when registering the app}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'query=Yo como manzana todos mananas.' ``` ## Response This section describes the response format. ### Response body The response body includes the following data: | Field | Type | Required | Description | | --- | --- | --- | --- | | `langCode` | String | - | Language code - `ko (Korean)` \| `en (English)` \| `ja (Japanese)` \| `zh-CN` (Chinese (Simplified)) \| `zh-TW` (Chinese (Traditional)) \| `vi` (Vietnamese) \| `th` (Thai) \| `id` (Indonesian) \| `fr` (French) \| `es` (Spanish) \| `ru` (Russian) \| `de` (German) \| `it` (Italian) \| `pt` (Portuguese) \| `hi` (Hindi) | ### Response status codes For information about the HTTP status codes common to all Papago Translation APIs, see [Papago Translation response status codes](/docs/en/ai-naver-papagonmt#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C). ### Response example The response example is as follows: ``` { "langCode": "es" } ```