RapidAPI logo

YandexTranslate

FREE
By zakutynsky
Updated 6 months ago
Translation
8.3/10
Popularity Score
273ms
Latency
100%
Success Rate

YandexTranslate API Documentation

The API provides access to the Yandex online machine translation service.

View API Details
POSTdetectLanguage
POSTgetSupportedLanguages
POSTtranslate
POSTdetectLanguage

Detects the language of the specified text.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apiKeyCREDENTIALS
REQUIREDYour yandex api key.
textSTRING
REQUIREDThe text to detect the language for.
Optional Parameters
hintSTRING
OPTIONALThe most likely language (they will be given preference when detecting the text language).
Code Snippet
unirest.post("https://YandexTranslatezakutynskyV1.p.rapidapi.com/detectLanguage")
.header("X-RapidAPI-Host", "YandexTranslatezakutynskyV1.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
General
Request URL: https://YandexTranslatezakutynskyV1.p.rapidapi.com/detectLanguage
Request Method: POST
Response Headers
Response Body

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://YandexTranslatezakutynskyV1.p.rapidapi.com/detectLanguage")
.header("X-RapidAPI-Host", "YandexTranslatezakutynskyV1.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