apilayer languagelayer API
Overview
apilayer languagelayer is a language detection API that identifies the language of any text across 173 supported languages. It returns confidence scores and ISO language codes, making it easy to route multilingual content appropriately. It is well-suited for apps that process user input from around the world.
Beginner Tip
Send your text as a query parameter called "query" and include your access key — the API returns the top detected language along with a confidence score from 0 to 1.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from apilayer languagelayer",
"description": "Language Detection JSON API supporting 173 languages",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
detected_languages List of detected language objects sorted by confidence score descending language_code ISO 639-1 two-letter language code (e.g., "en" for English, "fr" for French) language_name Human-readable name of the detected language confidence Detection confidence between 0 and 1; values above 0.9 are highly reliable success Whether the API request completed without errors Implementation Example
const url = "https://languagelayer.com/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Alternatives to apilayer languagelayer
Technical alternatives for different use cases.
Language detection with 173 language support
Free tier (languagelayer requires paid plan)
Detecting more languages with confidence scores
Similar APIs
View All →Code Detection API
Code Detection API automatically identifies programming languages and detects code blocks within plain text or mixed content.
Semantria
Semantria is a powerful text analytics API by Lexalytics that provides sentiment analysis, entity extraction, and content categorization.
Tisane
Tisane is a text analytics API specialized in detecting abusive content, hate speech, and cybercrime in user-generated text.
Watson Natural Language Understanding
IBM Watson Natural Language Understanding (NLU) is a powerful AI-driven API that extracts semantic meaning from text, including sentiment, entities, keywords, categories, and emotion.
Aylien Text Analysis
Aylien Text Analysis provides programmatic access to a collection of information retrieval and natural language apis via REST API.