How to hit the Papago (Naver Cloud) API

Papago Translation on Naver Cloud Platform at https://papago.apigw.ntruss.com/nmt/v1/translation translates text between Korean and other languages.

Authentication

Create an application with Papago Translation in the Naver Cloud console to get a Client ID and Client Secret. Send them as X-NCP-APIGW-API-KEY-ID and X-NCP-APIGW-API-KEY.

Full reference: https://api.ncloud-docs.com/docs/en/ai-naver-papagonmt

Translate text

source can be auto to detect the language.

curl -X POST https://papago.apigw.ntruss.com/nmt/v1/translation \
  -H "X-NCP-APIGW-API-KEY-ID: {{NCP_CLIENT_ID}}" \
  -H "X-NCP-APIGW-API-KEY: {{NCP_CLIENT_SECRET}}" \
  -H "Content-Type: application/json" \
  -d '{"source": "en", "target": "ko", "text": "Where is the nearest taco stand?"}'
Run in PostTaco