RapidAPI logo

Sign Up

Log In

Language Identifier

FREEMIUM
By infinitylogesh
Updated 2 months ago
Machine Learning
-/10
Popularity Score
-
Latency
-
Success Rate

Language Identifier API Documentation

Detects 170 + natural languages

View API Details
POSTPredict
POSTPredict

Predict language

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
sample inputJSON_STRING
REQUIREDsample input
Request Snippet
unirest.post("https://language-identifier1.p.rapidapi.com/predict")
.header("X-RapidAPI-Host", "language-identifier1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"text":"API de mejor lenguaje!"})
.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://language-identifier1.p.rapidapi.com/predict")
.header("X-RapidAPI-Host", "language-identifier1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"text":"API de mejor lenguaje!"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication