Pricing 
API Pricing

Try For Free Now

Dark

Light

GET T-3MT ENGINE FIELD
Get T-3MT Engine Field
Get T-3MT Engine Field.
Customization is only applicable to T-3MT engine.
Endpoint
Request details
GET
https://translate.rozetta-api.io/api/v1/training/fields/sourceLang/<sourceLang>/targetLang/<targetLang>
Path parameter
Path parameter
Description
sourceLang
The language of the original text. Except for languages such as zh-CN and zh-TW, please use the ISO 639-1 code. To get the list of supported languages, please refer to Languages section.
targetLang
The language of the translated text. Except for languages such as zh-CN and zh-TW, please use the ISO 639-1 code. To get the list of supported languages, please refer to Languages section.
Header
Header
Description
Content-Type
application/json
Request Sample
curl 'https://translate.rozetta-api.io/api/v1/training/fields/sourceLang/<sourceLang>/targetLang/<targetLang>' -H 'accessKey: YOUR_ACCESS_KEY' -H 'signature: SET_SIGNATURE' -H 'nonce: SET_NONCE' -H 'Content-Type: application/json'
Response
Key
Description
lid
Professional field ID.(L + 6 digit number)
name
Specialized Field name Please refer to name in the Response.
orgId
Organization ID.
parent_lid
Parent Field Name.
source_lang
Source Language. Specify the language of the manuscript to be translated.
target_lang
Target Language. Specify the language of the translated text output as a result of translation.
trainable
If training is possible returns true. If not, returns false.
updatedAt
Last update date and time in UNIX time.

api/v1/training/fields/sourceLang/<sourceLang>/targetLang/<targetLang>
GET T-3MT Field Engine
JavaScript
const axios = require('axios');
const authUtils = require('./utils/auth-utils');

const path = '/api/v1/training/fields/sourceLang/<sourceLang>/targetLang/<targetLang>';

const authConfig = {
  accessKey: 'YOUR_ACCESS_KEY',
  secretKey: 'YOUR_SECRET_KEY',
  nonce: new Date().getTime().toString()
};

const signature = authUtils.generateSignature(
  authConfig.nonce,
  path,
  authConfig.secretKey,
);

const config = {
  method: 'get',
  url: 'https://translate.rozetta-api.io/api/v1/training/fields/sourceLang/<sourceLang>/targetLang/<targetLang>',
  headers: {
    accessKey: authConfig.accessKey,
    signature,
    nonce: authConfig.nonce,
    'Content-Type': 'application/json',
  },
};

const main = async () => {
  try {
    const response = await axios(config)
    console.log(JSON.stringify(response.data));
  } catch (error) {
    console.log(error);
  }
}

main();
About the authentication, please refer to the authentication section.
You can get a full version of sample codes here
©️ 2019 Rozetta API  ・  Powered by Rozetta

Rozetta Corp.

^