Yandex Translate API · Example Payload

Translate With Glossary Request

Machine TranslationNatural Language ProcessingLanguage DetectionTranslation DictionaryMultilingualYandex CloudLocalizationInternationalization

Translate With Glossary Request is an example object payload from Yandex Translate API, with 5 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

sourceLanguageCodetargetLanguageCodetextsfolderIdglossaryConfig

Example Payload

translate-with-glossary-request.json Raw ↑
{
  "sourceLanguageCode": "en",
  "targetLanguageCode": "ru",
  "texts": [
    "The API key is required for authentication."
  ],
  "folderId": "b1gd3hm2nj34ibndf3sd",
  "glossaryConfig": {
    "glossaryData": {
      "glossaryPairs": [
        {
          "sourceText": "API key",
          "translatedText": "ключ API",
          "exact": true
        },
        {
          "sourceText": "authentication",
          "translatedText": "аутентификация",
          "exact": false
        }
      ]
    }
  }
}