# Languagelayer API

Languagelayer is a simple and powerful REST API built to efficiently match text of any length to its corresponding language, cross-referencing single words, expressions, and grammatical constructions, as well as taking into account any existing accents, dialects, and other linguistic deviations.

The Languagelayer API relies on an ever-advancing, powerful and AI-based (Artificial Intelligence) detection algorithm, which increases in complexity and performance with each language detection API request performed. Only this way the languagelayer service can be capable of processing over [170 different languages & accents](https://languagelayer.com/languages//?utm_source=DocumentationPage&utm_medium=Referral) worldwide.

Despite the complexity behind the scenes, our language detection API continues to stand out thanks to its easy-to-use REST interface, simple JSON response format, quick response times, and low bandwidth consumption.

[**Get free API Access Key**](https://languagelayer.com/signup/free/yearly/?utm_source=DocumentationPage&utm_medium=Referral)

## Why Choose Languagelayer?

✔ **AI-Powered Detection** 

Uses an intelligent algorithm that improves with every iteration, maximizing accuracy across varied text inputs.

  
✔ **Broad Language Coverage**  

Detect text across **170+ languages and accents**, making it ideal for global applications. 

  
✔ **Developer-Friendly** 

Easy REST interface with universal JSON responses that work with any language or platform.

  
✔ **Secure and Reliable** 

256-bit HTTPS encryption ensures your data is safe during API requests. 

  
✔ **Efficient and Fast** 

Designed to deliver quick responses with low bandwidth usage. 

Whether you’re building multilingual apps, content analytics tools, or international user interfaces, languagelayer offers a robust, scalable foundation.

## API Endpoints Summary

| Endpoint | Purpose |
| --- | --- |
| [`/detect`](https://docs.apilayer.com/languagelayer/docs/languagelayer-api-v-1-0-0#/default/detectLanguage) | Detect the language of a single text query.  |
| [`/batch`](https://docs.apilayer.com/languagelayer/docs/languagelayer-api-v-1-0-0#/default/batchDetectGet) | Detect languages for multiple text strings in one request.  |
| `/languages` | List all languages supported by the API. |

## Typical Usage Examples

### **Single Detection**

Make a GET request with your text:

```javascript
https://api.languagelayer.com/detect?
access_key=YOUR_ACCESS_KEY
&query=Hello%20world
```

### **Batch Detection**

Use the `batch` endpoint to detect language for many strings at once:

```javascript
https://api.languagelayer.com/batch?
access_key=YOUR_ACCESS_KEY
&query[]=Hello
&query[]=Hola
&query[]=Bonjour
```

### **Supported Languages**

Retrieve all available languages in a JSON list:

```javascript
https://api.languagelayer.com/languages?
access_key=YOUR_ACCESS_KEY
```

[← API Endpoints](https://docs.apilayer.com/languagelayer/docs/languagelayer-api-v-1-0-0)

[Quickstart Guide →](https://docs.apilayer.com/languagelayer/docs/quickstart-guide)

* * *

Chat with APILayer´s team on [Discord](https://discord.com/invite/hgjA78638n).

Questions? [Contact Sales](https://languagelayer.com/contact) .

Need help? [Contact Support](https://languagelayer.com/contact) .

© 2026 APILayer. All rights reserved.
