# Detect Language API

Category: [Language and text](https://free-web-services.com/web-services/language/)  
Page: https://free-web-services.com/web-services/language/detect-language-api.html  
Documentation: https://detectlanguage.com/documentation

Detect Language identifies the language of a piece of text, for example to route support messages or pick the right translation. Send text to the REST endpoint with your API key in an Authorization header and get JSON with the detected language codes and a confidence score, also for batches of texts. Client libraries exist for many programming languages. Free with a free API key: 1,000 requests and 1 MB of text a day; paid plans raise the limits.

- API key: Needed, free
- Pricing: Free with a free API key: 1,000 requests and 1 MB of text a day; paid plans raise the limits.
- Formats: JSON
- Interface: REST
- Provider: detectlanguage.com
- Last checked: Working on November 1st, 2026

Example request:

```sh
curl -X POST 'https://ws.detectlanguage.com/v3/detect' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"q": "hello"}'
```

Replace YOUR_API_KEY with your own key.

