RapidAPI logo

Text Translation

FREEMIUM
By sentimentanalytics
Updated 5 months ago
4.2/10
Popularity Score
8453ms
Latency
80%
Success Rate

Text Translation API Overview

Easily translate text between Arabic, Chinese (Simplified), Chinese (Traditional), Czech, English, French, German, Italian, Japanese, Portuguese, Russian, Spanish, and Turkish. Source Language is optional now. Target Language can use full language or 2-3 character code (NOT case-sensitive).

Arabic (ar), Chinese -Simplified (zh), Chinese -Traditional (zht OR chinesetraditional), Czech (cs), English (en), French (fr), German (de), Italian (it), Japanese (ja), Portuguese (pt), Russian (ru), Spanish (es), Turkish (tr)

Contact API Provider
star-blueRate

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://sa-translate.p.rapidapi.com/translate")
.header("X-RapidAPI-Host", "sa-translate.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"text":"Provide some text you would like to translate into another language","targetLanguage":"pt"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication