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