Pricing 
API Pricing

Try For Free Now

Dark

Light

TEXT TRANSLATION
Async Get
After sending an asynchronized text translation request, use the queue ID to get the translated text.
Async Get is only applied to T-4OO engine and T-3MT engine.
Endpoint
Request details
GET
https://translate.rozetta-api.io/api/v1/translate/async/<queueId>
Path parameter
Path parameter
Description
queueId
Queue ID. Included in the response to the asynchronize text translation request.
Header
Header
Description
accessKey, nonce, signature
Please refer to the authentication section.
Request Sample
curl -H "nonce: Your Nonce" -H "accessKey: Your Access Key" -H "signature: Your Signature" https://translate.rozetta-api.io/api/v1/translate/async/ae914ccc-8866-43bc-8a26-0a652c4f1819
Response
Key
Description
status
For successful request, success will be specified for this field, otherwise failure will be specified. ※When a request contains multiple texts, even only one text is failed to translate, the entire request will be failed.
taskId
Task ID. This helps us to locate the root cause of the problem in timely manner when answering your enquiry.
translationResult
Translation results list.
sourceText
Original text.
translatedText
Translated text.
wordCount
Word counts of all original texts.

api/v1/translate/async/<queueId>
After sending an asynchronized text translation request, use the queue ID to get the translated text.
Go
JavaScript
PHP
C#
VB.NET
// Get translate result using queue ID
func GetApiExample(accessKey, secretKey, basePath, nonce string) {
  path := "/api/v1/translate/async"
  // Generate a signature
  sign := MakeHMAC(nonce, path, secretKey)

  // Set headers and call the api
  client := &http.Client{}
  req, _ := http.NewRequest("GET", GetFullUrl(basePath, path), nil)
  req.Header.Set("nonce", nonce)
  req.Header.Set("accessKey", accessKey)
  req.Header.Set("signature", sign)
  res, err := client.Do(req)

  // Output response
  if err != nil {
    fmt.Printf("The HTTP request failed with error %s\n", err)
  } else {
    data, _ := ioutil.ReadAll(res.Body)
    fmt.Println(string(data))
  }
}
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.

^