API for Detection Language (Beta)


This API is for detection language. You can use for send TEXT or PHRASE and result is language in short format and in extention format.

URL of API to use is: https://detectlanguage.onionsearchengine.com/api.php?text=TEXT_OR_PHRASE

API output result is in this format: {"success":true,"language":"en","extend":"English"}

Parameter Description:

How to use API in PHP

$url = ' https://detectlanguage.onionsearchengine.com/api.php?text=TEXT_OR_PHRASE ';
$json = file_get_contents($url);
$obj = json_decode($json);
echo $obj->language;
echo $obj->success;
$extended= $obj->extend;
echo $extended;

Language supported: English, Italian, Spanish, French, German, Russian, Bulgarian, Croatian, Czech, Danish, Dutch, Estonian, Greek, Hungarian, Icelandic, Indonesian, Latvian, Lithuanian, Malay, Polish, Mongolian, Romanian, Slovak, Swedish, Turkish, Ukrainian, Vietnamese, Portuguese, Norwegian, Finnish, Hebrew, Afrikaans, Hindi, Japanese, Chinese, Korean, Arabic, Albanian, Armenian

For info and for report problem: Helpdesk


Detect Language