Do you have any questions? Just write us an email or ask us through the feedback section.

Request

Requests are made using GET or POST data submissions to the API entry point. Typically, a POST method is recommended in order to overcome the parameter maximum length limit associated to the GET method.

Request

Endpoint

This is the endpoint to access the API.

Service Method Url
Language Identification POST https://api.meaningcloud.com/lang-2.0 Console

If you are working with an on-premises installation, you will need to substitute api.meaningcloud.com by your own server address.

Parameters

These are the supported parameters.

Name Description Values Default
key Authorization key required for making requests to any of our web services. Required
of Output format json (JSON format)
xml (XML format)
Default: json
txt Input text (using UTF-8 encoding). Required
url URL of the content to analyze. Currently only non-authenticated HTTP and FTP are supported. Required
doc Input file with the content to analyze. Required
selection List of expected languages, separated by |.
threshold Language detection threshold as a percentage of similarity with respect to the top result Default: 100
verbose When active, it shows additional information about the languages detected. y (Enabled)
n (Disabled)
Default: n

Important

The fields txt, doc and url are mutually exclusive; in other words, at least one of them must not be empty (a content parameter is required), and in cases where more than one of them has a value assigned, only one will be processed. The precedence order is txt, url and doc.