Papago Language Detection overview
    • PDF

    Papago Language Detection overview

    • PDF

    Article Summary

    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.

    1. Register the application at AI Service > Papago Translation > APIs.

    2. Select the registered application from AI Service > Papago Translation > APIs and check the client ID and client secret value.

    3. 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 nameMethodRequest URLOutput format
    Language detection APIPOSThttps://naveropenapi.apigw.ntruss.com/langs/v1/dectJSON

    Request headers

    HeaderDescription
    X-NCP-APIGW-API-KEY-IDClient ID issued when registering the app
    X-NCP-APIGW-API-KEY-ID:{Client ID}
    X-NCP-APIGW-API-KEYClient secret issued when registering the app
    X-NCP-APIGW-API-KEY:{Client Secret}

    Errors

    {
      "error": {
        "errorCode": "300",
        "message": "Not Found Exception"
      }
    }
    

    Common errors

    HttpStatusCodeErrorCodeErrorMessageDescription
    400100Bad Request ExceptionRequest error such as protocol (https) or encoding (UTF-8)
    401200Authentication FailedAuthentication failure
    401210Permission DeniedNo permission
    404300Not Found ExceptionNo permission
    429400Quota ExceededQuota exceeded
    429410Throttle LimitedRate exceeded
    429420Rate LimitedRate exceeded
    413430Request Entity Too Largecontent-length exceeded (10 MB)
    503500Endpoint ErrorEndpoint connection error
    504510Endpoint TimeoutEndpoint connection time exceeded
    500900Unexpected ErrorError without exception handling

    API errors

    HttpStatusCodeErrorCodeErrorMessageDescription
    400LD01Empty textNo text
    500LD99Internal server errorsInternal server error
    Requires contact via customer service forum/board.

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.