linguatools translate

FREEMIUM
By petapro
Updated 22 days ago
Translation
4.4/10
Popularity Score
318ms
Latency
100%
Success Rate

linguatools translate API Documentation

Looks up a word in a dictionary and returns all translations ordered by frequency. The API translates from and to German for the following languages: English, Spanish, Dutch, Polish, Italian, and Czech. Possibility to filter by a word class.

View API Details
GETtranslate a word
GETtranslate a word

Looks up a word in a bilingual dictionary and returns all translations ordered by frequency. Optionally restricts the result for a given wordclass.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
wordSTRING
REQUIREDRequired. Some word from the source language. Example: verdienen. Case insensitive.
lang1-lang2STRING
REQUIREDRequired. Source language - Target language. Examples: de-en, de-es, it-de. See the documentation for other language pairs. Case sensitive.
Optional Parameters
wordclassSTRING
OPTIONALNOMEN, ADJ, VERB, ADVERB and other wordclasses, see Documentation. Case sensitive.
Code Snippet
unirest.get("https://petapro-translate-v1.p.rapidapi.com/?langpair=de-en&query=verdienen&wortart={wordclass}")
.header("X-RapidAPI-Host", "petapro-translate-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://petapro-translate-v1.p.rapidapi.com/?langpair={lang1-lang2}&query={word}&wortart={wordclass}
Request Method: GET
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.get("https://petapro-translate-v1.p.rapidapi.com/?langpair=de-en&query=verdienen&wortart={wordclass}")
.header("X-RapidAPI-Host", "petapro-translate-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication