Language Detection API is a simple language identification API; it is a tool that may be useful when dealing with texts, so we decided to open it to all our users. It currently supports 96 languages.
We support both GET and POST methods to query the API.
Remember to authenticate yourself specifying the token parameter (or the legacy $app_id and $app_key pair). See the API doc about authentication for any questions.
Type | string |
Type | boolean |
Default value | false |
Accepted values | true | false |
The response is structured in JSON as follow:
{
"timestamp": "Date and time of the response generation process",
"time": "Time elapsed for generating the response (milliseconds)",
"detectedLangs": [
{
"lang": "ISO 639-1 code of the detected language",
"confidence": "Accuracy of the language detection",
}
]
}
For more information about status codes and error handling please refer to the dandelion generic API documentations. The cost of each request can be found in the response headers as described here.
Connection: keep-alive
Content-Length: 2748
Content-Type: application/json;charset=UTF-8
Date: Wed, 21 Oct 2015 16:29:37 GMT
Server: Apache-Coyote/1.1
X-DL-units: 0.1
X-DL-units-left: 999.9
X-DL-units-reset: 2015-10-22 00:00:00 +0000
{
"timestamp": "2015-10-21T16:29:37",
"time": 1,
"text": "The annotated text. Present only if the 'html' parameter has been used",
"detectedLangs": [
{
"lang": "de",
"confidence": 0.5714284059202707
},
{
"lang": "en",
"confidence": 0.42857127625587477
}
]
}
Dandelion API
built with ❤ by SpazioDati S.r.l.
Company subject to management and coordination of Cerved Group S.p.A.
site privacy | api privacy | tos | cookies | consent preferences
We're a startup based in Italy, specialized in Semantics & Big Data.
Find out more about us at spaziodati.eu