all-about-apikey/languagelayer
Muhammad Daffa 2eba183f8b Added 13 templates 2022-08-18 14:40:21 +07:00
..
README.md Added 13 templates 2022-08-18 14:40:21 +07:00

README.md

languagelayer

Description

Language Detection JSON API supporting 173 languages

Example Request

  • Curl
curl "https://api.languagelayer.com/detect?access_key={{token}}&query=The%20pessimist%20complains%20about%20the%20wind%3B%20the%20optimist%20expects%20it%20to%20change%3B%20the%20realist%20adjusts%20the%20sails"
  • Raw
GET /detect?access_key={{token}}&query=The%20pessimist%20complains%20about%20the%20wind%3B%20the%20optimist%20expects%20it%20to%20change%3B%20the%20realist%20adjusts%20the%20sails HTTP/1.1
Host: api.languagelayer.com
...

Response

  • Success
{
    "success": true,
    "results": [
        {
        "language_code": "en",
        "language_name": "English",
        "probability": 83.896703655741,
        "percentage": 100,
        "reliable_result": true
        }
    ]
}
  • Error
{
    "success": false,
    "error": {
        "code": 101,
        "type": "invalid_access_key",
        "info": "You have not supplied a valid API Access Key. [Technical Support: support@apilayer.com]"
    }
}

Regex

[a-z0-9]{32}

Example API key

tue3sv9hzsey1me4l7fwq3t46u5k8wag