API Reference

Request URL

Verb/Method

POST

URL Elements

https://(hostname)

Sample URL

https://revgen.reverieinc.com/get_lang

Header NameDescriptionValue

Content-Type

The format of the data to be posted.

application/JSON

Request

ElementTypeIs Mandatory?Description

text

String

Yes

Input text for language detection.

max_length

int

No

Length of the string to be processed for tokenization. It should be a number in the power of 2(i.e, 16 = 2^4, 32 = 2^5 ..). Max value could be 512.

Response

ElementTypeDescription

lang

String

The API will return the detected language.

confidence

Float

The API will return the confidence score of detected language.

Last updated