RapidAPI logo

Sign Up

Log In

Detect Language

FREE
By Immanuel
Updated 2 months ago
Machine Learning
6.1/10
Popularity Score
494ms
Latency
100%
Success Rate

Detect Language API Documentation

Detects the language based on given text

View API Details
GETDetect Language
POSTTrain Model With Your Own Data
GETDetect Language - Private model
GETDetect Language

Detects the language based on the parameter provided

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
textSTRING
REQUIREDactual text in respective language - கர்த்தர் - return as tamil
Request Snippet
unirest.get("https://detect-language1.p.rapidapi.com/language/identify/{text}")
.header("X-RapidAPI-Host", "detect-language1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.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.get("https://detect-language1.p.rapidapi.com/language/identify/{text}")
.header("X-RapidAPI-Host", "detect-language1.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