RapidAPI logo

Sign Up

Log In

GoogleTranslate

FREE
By dimashirokov
Updated 3 months ago
Translation
8.2/10
Popularity Score
249ms
Latency
-
Success Rate

GoogleTranslate API Documentation

Translate any language into another language automatically.

View API Details
POSTdetectLanguage
POSTtranslate
POSTtranslateAutomatic
POSTdetectLanguage

Detect language of string

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apiKeyCREDENTIALS
REQUIREDThe api key obtained from Google Cloud.
stringSTRING
REQUIREDThe string to detect.
Request Snippet
unirest.post("https://GoogleTranslatedimashirokovV1.p.rapidapi.com/detectLanguage")
.header("X-RapidAPI-Host", "GoogleTranslatedimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
Log inSign up

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://GoogleTranslatedimashirokovV1.p.rapidapi.com/detectLanguage")
.header("X-RapidAPI-Host", "GoogleTranslatedimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication