How to programmatically detect that the quota is reached with a premium subscription

Hi,

I integrate LT in my solution and I want to notify my users that they have reached the limit (number of requests per day, or other limit). Is there a http response code, a http header, or should I find a keyword in the response body ?

I can’t find how to correctly detect this on the documentation LanguageTool HTTP API

If I test with more than 20 requests in a minute on the free endpoint (https://api.languagetool.org/v2/check), the error will be similar ?

Thanks.

The LT server usually sends code 429 if there are too many requests.

1 Like