New The MCP server is live: all 44 APIs in Claude, Cursor or any MCP client. Connect your agent

AI-powered text analysis for modern applications

Text Analysis API

Comprehensive text analysis API that combines advanced pattern detection with cutting-edge NLP analysis. Extract insights from any text content with support for multiple input formats and real-time processing.

Powered by state-of-the-art AI technology, our API delivers accurate results for pattern recognition, sentiment analysis, and entity extraction across multiple languages and content types.

Free tier included, no credit card required. One key works across every API.

At a glance

Text Analysis API

25 credits / call
Free calls / month
40
Accuracy Rate
98.5%
Languages Supported
50+
Pattern Types
15+
Get your free API key

40 free calls on the free plan

Key features

  • Multi-pattern detection in single request
  • Real-time sentiment & emotion analysis
  • Named entity recognition (NER)
  • Topic modeling & keyword extraction
  • Content moderation & safety scoring
  • Multi-format input support

Built for

  • Content management systems
  • Social media monitoring
  • Customer feedback analysis
  • Document processing pipelines
  • Compliance & risk assessment
  • Research & data mining

MCP · for your agent

Hand the Text Analysis API to your agent

Connect Claude, Cursor or any MCP client once, then ask in plain words. Your agent finds this API, reads its docs and makes the call: 25 credits per call, the same as REST, from your team's balance.

Find themes in customer feedback

“Here are 200 NPS comments from last quarter. What are the main topics, and how does sentiment differ between them?”

list_apis · get_api_docsfree

api_request POST /text-analysis/v1/analyze/text 25 cr

Sentiment, topics and keywords per comment, rolled up into themes with their overall mood.

Summarize a competitor's page

“Summarize Fabrikam's new pricing page for our battlecard: key points, keywords and any figures they mention.”

list_apis · get_api_docsfree

api_request POST /text-analysis/v1/analyze/url 25 cr

A summary, keywords, entities and figures from the page, formatted for the battlecard.

Moderate community posts

“Screen the latest 50 posts in our r/acmehq subreddit for toxic content and any leaked emails or phone numbers.”

list_apis · get_api_docsfree

api_request POST /text-analysis/v1/analyze/text 25 cr

+ Advanced Reddit API25 cr

Moderation flags plus detected emails and phone numbers per post, queued for the mods.

$ claude mcp add --transport http apicodex https://mcp.apicodex.io

Illustrative asks; the calls and prices are real. Claude, Cursor, VS Code and Windsurf setup: mcp.apicodex.io

Try it

Build the request for your data

Edit the parameters below and see the exact request and curl command you'd send. No key required to preview.

POST /text-analysis/v1/analyze/text
Open in Playground
Request · HTTP
POST /text-analysis/v1/analyze/text HTTP/1.1
Host: api.apicodex.io
Content-Type: application/json
X-Api-Key: YOUR_API_KEY

{
  "text": "Apple Inc. announced new products in California yesterday.",
  "analysis": ["patterns", "entities", "sentiment", "language"]
}
Response · JSON 200 OK
{
  "success": true,
  "language": { "detected": "en", "confidence": 0.99 },
  "sentiment": { "score": 0.65, "label": "positive" },
  "entities": [
    { "type": "ORG", "value": "Apple Inc.", "start": 0, "end": 10 },
    { "type": "LOCATION", "value": "California", "start": 39, "end": 49 },
    { "type": "DATE", "value": "yesterday", "start": 50, "end": 59 }
  ],
  "patterns": { "emails": [], "urls": [], "dates": ["yesterday"] }
}

Documentation

Text Analysis API Documentation

Learn how to use the Text Analysis API to analyze and extract insights from your content. The API supports text input, file uploads, and URL-based content processing.

Base URL

url
https://api.apicodex.io/text-analysis

Authentication

Authenticate every request with your API key: send it in an X-Api-Key header, or pass it as an ?apikey= query parameter.

headers
{
"X-Api-Key": "YOUR_API_KEY"
}

Request and response

Illustrative values. Confirm current endpoint behavior, quotas, and data freshness in the API documentation before production use.

request · http
POST /text-analysis/v1/analyze/text HTTP/1.1
Host: api.apicodex.io
Content-Type: application/json
X-Api-Key: YOUR_API_KEY

{
  "text": "Apple Inc. announced new products in California yesterday.",
  "analysis": ["patterns", "entities", "sentiment", "language"]
}
response · json
{
  "success": true,
  "language": { "detected": "en", "confidence": 0.99 },
  "sentiment": { "score": 0.65, "label": "positive" },
  "entities": [
    { "type": "ORG", "value": "Apple Inc.", "start": 0, "end": 10 },
    { "type": "LOCATION", "value": "California", "start": 39, "end": 49 },
    { "type": "DATE", "value": "yesterday", "start": 50, "end": 59 }
  ],
  "patterns": { "emails": [], "urls": [], "dates": ["yesterday"] }
}

Code examples

JavaScript/Node.js
const axios = require('axios');

const options = {
  method: 'POST',
  url: 'https://api.apicodex.io/text-analysis/v1/analyze/text',
  headers: {
    'content-type': 'application/json',
    'X-Api-Key': 'YOUR_API_KEY'
  },
  data: {
    text: 'Apple Inc. announced new products in California yesterday.',
    analysis: ['patterns', 'entities', 'sentiment', 'language']
  }
};

try {
  const response = await axios.request(options);
  console.log(response.data);
} catch (error) {
  console.error(error);
}

Endpoints

POST /v1/analyze/text

Send the text as JSON {"text": "..."}, as text/plain, or as a multipart text field.

POST /v1/analyze/upload

Upload a PDF, HTML or plain-text file (multipart/form-data, field name: file).

curl -X POST "https://api.apicodex.io/text-analysis/v1/analyze/upload" -H "X-Api-Key: YOUR_API_KEY" -F "[email protected]"

POST /v1/analyze/url

Fetch a public URL and process its text. JSON body: {"url": "https://..."}.

Analysis Types

The API supports the following types of analysis:

patterns Detect common text patterns
entities Named entity recognition
sentiment Text sentiment analysis
language Language detection
topics Topic extraction
keywords Keyword extraction
summary Text summarization
moderation Content moderation
custom Custom analysis rules

Pricing

Text Analysis API Pricing

This API costs 25 credits per request. Credits are shared across every API on your plan.

Cost estimator

requests per month → cheapest plan that covers it

Estimate your monthly cost

Drag the slider to match your expected request volume. We'll recommend the cheapest plan that covers it.

10,000

Recommended plan

Starter

$29.99 /month

Credits used
Credits included
Cost per 1K requests
Choose Starter

Free

Free
1,000 credits · ~40 requests/mo · 2 rps
  • All APIs included
  • No credit card required
  • Full documentation and examples
  • MCP server for your AI agents
  • Up to 5 active API keys
Start for free

Starter

Popular
$29.99 /month
50,000 credits · ~2,000 requests/mo · 10 rps
  • All APIs included
  • Email support
  • Usage dashboard and analytics
  • MCP server for your AI agents
  • Up to 5 active API keys
Start with Starter

Pro

$99.99 /month
250,000 credits · ~10,000 requests/mo · 25 rps
  • All APIs included
  • Priority support
  • MCP server for your AI agents
  • Up to 5 active API keys
Start with Pro

Need a different plan?

Tell us about your API, volume, or support requirements.

Contact us

FAQ

Frequently asked questions

Ready to integrate Text Analysis?