Sentiment Analysis API

POST

Categorize incoming feedback and reviews as positive or negative.

Sentiment Analysis evaluates the emotional tone of any text string. It returns an AFINN valence score, a comparative word-normalized score, and a five-tier sentiment label from very negative to very positive.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/sentimentanalysis
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "comparative": 0.25,
    "sentimentText": "positive",
    "sentiment": 3,
    "isPositive": true,
    "isNegative": false,
    "normalizedScore": 0.3
  }
}

Start from a template — a working app you can deploy in a minute

About the Sentiment Analysis API

Sentiment Analysis works by analyzing the text and comparing it to a large database of sentiment analysis models. It uses advanced algorithms to analyze the sentiment of the text and returns the sentiment score and the sentiment label.

What people use it for

Support Ticket Escalation
Route angry customer messages to senior support reps immediately when the sentiment score drops to very negative.
Review Stream Filtering
Product managers categorize incoming app store feedback into positive praise and negative complaints using the five-tier sentiment label.
Public Mention Tracking
When tracking brand tags on social networks, marketing teams flag sudden spikes in negative valence scores to address PR issues early.
Survey Response Sorting
Sort open-ended employee survey responses automatically by comparative sentiment to isolate recurring workplace grievances without manual reading.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Sentiment Analysis

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Sentiment Analysis API.

Read the docs →
What kinds of text can I analyze?
You can submit any plain text string, including customer reviews, social media posts, support tickets, and survey responses. Sentiment Analysis inspects the wording and flags whether the overall tone is positive or negative.
Is it cheap enough to analyze sentiment on every incoming review?
Yes. Each analysis consumes 10 credits, which works out to about $0.0015 per call, or $1.50 per 1,000 requests on the Starter plan. The Free plan includes 20 calls per month so you can test text scoring before upgrading.
Do I get the normalized score on the Free plan?
No. The normalized sentiment score is a premium field available only on paid plans. Free plan calls return the positive and negative flags, while Starter and higher plans include the full numeric score scaled from -1 to 1.
Do I need to preprocess or clean the text before sending it?
No. You can pass raw, unformatted text directly into the text parameter. There is no need to remove punctuation, tokenize sentences, or strip formatting before making the request.
Can I use this to evaluate incoming support tickets in real time?
Yes. The endpoint takes a text string in a single POST request and returns immediate sentiment classifications. This makes it straightforward to integrate into webhook handlers, live chat queues, or automated ticket triage workflows.

Ready to build with Sentiment Analysis? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs