Text & Language API
Extract, analyze, and understand text from any web page. Sentiment analysis, entity extraction, language detection, and more — all through a simple API.
Text Extraction
Clean, structured text from any web page. Strips ads, navigation, and boilerplate to deliver the main content.
Sentiment Analysis
Determine the emotional tone of any text. Returns positive, negative, or neutral sentiment with a confidence score.
Entity Extraction
Identify people, organizations, locations, dates, and other named entities within any text.
Language Detection
Automatically detect the language of any text with high accuracy. Supports 100+ languages.
Keyword Extraction
Pull the most relevant keywords and phrases from any text. Weighted by frequency and contextual importance.
Summarization
Generate concise summaries of long-form content. Configurable output length for different use cases.
API preview
Here is what a typical request and response will look like.
POST /api/v1/text/analyze
Content-Type: application/json
Authorization: Bearer mk_live_xxxxxxxxxxxxxxxxxxxxxxxx
{
"url": "https://example.com/article",
"features": ["sentiment", "entities", "keywords", "language"]
}{
"language": { "code": "en", "name": "English", "confidence": 0.99 },
"sentiment": { "label": "positive", "score": 0.87 },
"entities": [
{ "text": "OpenAI", "type": "ORGANIZATION", "count": 5 },
{ "text": "San Francisco", "type": "LOCATION", "count": 2 }
],
"keywords": [
{ "text": "artificial intelligence", "relevance": 0.95 },
{ "text": "language model", "relevance": 0.88 }
]
}Get notified when it launches
The Text & Language API is currently in development. Sign up to be the first to know when it goes live.