AI Task

Sentiment Analysis API

Detect sentiment, emotions, and tone in any text with a single API call. Understand what your customers, users, and audience really feel.

1

Send your text

POST to /api/v1/generate with task "sentiment" and the text to analyze.

2

AI analyzes tone

Our models detect sentiment polarity, specific emotions, and overall tone.

3

Get structured results

Receive sentiment, confidence score, emotions, and tone in a clean JSON response.

Code example

Request

curl -X POST https://instantapis.net/api/v1/generate \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "task": "sentiment",
    "input": "I absolutely love this product! The build quality is exceptional and the customer support team was incredibly helpful when I had questions. Highly recommend to anyone looking for a reliable solution."
  }'

Response

{
  "success": true,
  "data": {
    "sentiment": "positive",
    "confidence": 0.96,
    "emotions": ["joy", "satisfaction", "trust"],
    "tone": "enthusiastic"
  },
  "task": "sentiment",
  "timestamp": "2026-03-28T12:00:00.000Z"
}

Use cases

Customer Feedback

Automatically classify support tickets, survey responses, and reviews as positive, negative, or neutral. Route critical negative feedback for immediate attention.

Social Media Monitoring

Track brand sentiment across social media posts, comments, and mentions. Detect shifts in public opinion in real time and respond quickly.

Product Reviews

Analyze product review sentiment at scale. Identify common complaints, praise patterns, and trending issues across thousands of reviews.

Market Research

Gauge public sentiment around topics, brands, or events. Combine with data extraction for comprehensive market intelligence.

Sentiment analysis features

Positive, negative, and neutral classification
Confidence score (0-1) for reliability
Specific emotion detection (joy, anger, sadness, etc.)
Overall tone analysis (formal, casual, enthusiastic, etc.)
Batch processing for up to 20 texts per call
Works with reviews, tweets, emails, chat messages, and more

Start analyzing sentiment today

Get 10 free API calls when you sign up. No credit card required.