Introduction
The API is currently simple and it follows industry standards. This document tends to be brief at the moment, but we will be adding more features and guides in the future. If you run into any questions, please do not hesistate to reach out to us at support@what-lang.com.
Authentication
We use HTTP Bearer token for authentication of the API. You can get your token from the dashboard after logging in.
Request Body
The request body is in JSON format, so make sure you include Content-Type: application/json
in your request header.
We currently have a limit of 1MB per request, which includes the size of the entire JSON payload. If you run into 413 error, please reduce the size of your request.
Response body
The response body is in JSON format. The response will include the detected language and the confidence score. The confidence score is a float between 0 and 1, where 1 is the highest confidence.
Supported Languages
Please check the supported languages page for the list of languages that are supported by What-Lang API.
Rate Limit
Generally the requests are queued for processing in our system, and the results will be returned when the request is processed. We currently do not disclose our rate limit policy. You will receive a 429 error if you exceed the rate limit. Please make sure to implement a back off and retry mechanism in your code.