API Reference
Last updated
Last updated
Verb/Method
POST
URL Elements
https://(hostname)
Sample URL
https://revgen.reverieinc.com/get_lang
Content-Type
The format of the data to be posted.
application/JSON
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.
lang
String
The API will return the detected language.
confidence
Float
The API will return the confidence score of detected language.