Papago Language Detection overview
- Print
- PDF
Papago Language Detection overview
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
This API automatically detects the language of the input text for translation. The API supports fast and accurate language detection for a total of 15 major languages using a learning-based language detection model based on a large number of corpora.
Common settings
Client IDs are issued by registering the application in the NAVER Cloud Platform console.
Register the application at AI Service > Papago Translation > APIs.
Select the registered application from AI Service > Papago Translation > APIs and check the client ID and client secret value.
Ensure that Papago Language Detection is selected from AI Service > Papago Translation > APIs > Edit. Note that error 429 (Quota Exceeded) will occur unless Papago Language Detection is selected.
API URL
API name | Method | Request URL | Output format |
---|---|---|---|
Language detection API | POST | https://naveropenapi.apigw.ntruss.com/langs/v1/dect | JSON |
Request headers
Header | Description |
---|---|
X-NCP-APIGW-API-KEY-ID | Client ID issued when registering the appX-NCP-APIGW-API-KEY-ID:{Client ID} |
X-NCP-APIGW-API-KEY | Client secret issued when registering the appX-NCP-APIGW-API-KEY:{Client Secret} |
Errors
{
"error": {
"errorCode": "300",
"message": "Not Found Exception"
}
}
Common errors
HttpStatusCode | ErrorCode | ErrorMessage | Description |
---|---|---|---|
400 | 100 | Bad Request Exception | Request error such as protocol (https) or encoding (UTF-8) |
401 | 200 | Authentication Failed | Authentication failure |
401 | 210 | Permission Denied | No permission |
404 | 300 | Not Found Exception | No permission |
429 | 400 | Quota Exceeded | Quota exceeded |
429 | 410 | Throttle Limited | Rate exceeded |
429 | 420 | Rate Limited | Rate exceeded |
413 | 430 | Request Entity Too Large | content-length exceeded (10 MB) |
503 | 500 | Endpoint Error | Endpoint connection error |
504 | 510 | Endpoint Timeout | Endpoint connection time exceeded |
500 | 900 | Unexpected Error | Error without exception handling |
API errors
HttpStatusCode | ErrorCode | ErrorMessage | Description |
---|---|---|---|
400 | LD01 | Empty text | No text |
500 | LD99 | Internal server errors | Internal server error Requires contact via customer service forum/board. |
Was this article helpful?