Overview
Semantria is a powerful text analytics API by Lexalytics that provides sentiment analysis, entity extraction, and content categorization. It processes documents and returns structured insights about the emotional tone and key topics in your text. Businesses use it to analyze customer feedback, social media posts, and support tickets at scale.
Beginner Tip
Semantria uses a queue-based model: you first submit documents, then poll for results after a few seconds. Start with the sandbox environment to understand the async workflow before going to production.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Semantria",
"description": "Text Analytics with sentiment analysis, categorization & named entity extraction",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
id The unique identifier you provided when submitting the document sentiment_score Numeric sentiment score ranging from -1.0 (negative) to 1.0 (positive) sentiment_polarity Human-readable sentiment label: "positive", "negative", or "neutral" entities List of named entities (people, places, organizations) detected in the text themes Key topics and themes extracted from the document content categories Content categories assigned to the document based on its subject matter Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://semantria.readme.io/docs";
// 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
Similar APIs
View All →apilayer languagelayer
apilayer languagelayer is a language detection API that identifies the language of any text across 173 supported languages.
Code Detection API
Code Detection API automatically identifies programming languages and detects code blocks within plain text or mixed content.
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.