apihub.biz is an API Marketplace where you can sell your web service. You can register your HTTP endpoint here for free, then it is available for public use. You can define your own pricing for the web service and make money from it.
Create New Service

Name: lang


The natural language identification service can detect the language of a piece of text.

supported languages(82)

af: Afrikaans, ar: العربية, az: Azərbaycan dili, bg: български език, ca: català, cn: 中文, cs: čeština, cy: Cymraeg, da: dansk, de: Deutsch, en: English, es: Español, et: eesti, eu: euskara, fa: فارسی, fi: suomi, fr: français, ha: هَوُسَ, hi: हिन्दी, hk: 漢語, hr: hrvatski jezik, hu: magyar, id: Bahasa Indonesia, is: Íslenska, it: Italiano, ja: 日本語, kk: қазақ тілі, ko: 한국어, ky: Кыргызча, la: Latīnum, lt: lietuvių kalba, lv: latviešu valoda, mk: македонски јазик, mn: Монгол хэл, ne: नेपाली, nl: Nederlands, no: Norsk, nr: isiNdebele, pl: język polski, ps: پښتو, pt: Português, ro: Română, ru: Русский, sk: slovenčina, sl: slovenski jezik, so: Soomaaliga, sq: Shqip, sr: српски језик, ss: SiSwati, st: Sesotho

Get your API key from here. Use this web service with any programming language that supports HTTP calls. The input is in JSON format {text: "text string"} and the output is also in JSON format {code: 'lang_code'}.


const url = "https://apihub.biz/api/lang/your_api_key";
fetch(url, {
  headers: {
    "Content-Type": "application/json"
  method: "POST",
  body: JSON.stringify({text: "企业家"})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));

The returned JSON result of this example is {code: 'cn'}. The language code 'cn' means Simplified Chinese.


require 'net/http'
require 'uri'
require 'json'

res = Net::HTTP.post URI('https://apihub.biz/api/lang/your_api_key'),
  { 'text' => 'een mooie plek' }.to_json,
  'Content-Type' => 'application/json'

if res.is_a?(Net::HTTPSuccess)
  puts JSON.parse(res.body) # => {"code"=>"nl"}
  puts res.message
Online: true Pricing