Detects text language
This API rapidly detects the language of provided text, supporting 216 languages, batch requests, and offering high accuracy.
import requests
url = "https://ws.detectlanguage.com/json/v2/detect"
headers = {"Content-Type": "application/json"}
data = {"q": "Hello world", "key": "YOUR_API_KEY"}
response = requests.post(url, headers=headers, json=data)
print(response.json())Last 50 checks (10 min intervals)