Catalog/text-sentiment

Text

VADER-style lexicon sentiment with breakdown API

Score sentiment with a VADER-style bundled valence lexicon: per-token valence with negation flipping, intensifier boosting and ALL-CAPS/exclamation emphasis, squashed to a compound score in [-1,1] with pos/neg/neutral proportions and a per-sentence breakdown. A stable, deterministic, reproducible score with no model or upstream. Answers 'what is the sentiment of this', 'is this positive or negative', 'score the tone of this text', 'per-sentence sentiment breakdown'.

Price$0.01per request
MethodPOST
Route/v1/text/sentiment
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
textsentimentvaderpolaritytoneemotionnlpopinion
API URLhttps://x402.hexl.dev/v1/text/sentiment
Integration docs
Example request
{
  "text": "I love this, it is wonderful and great!"
}
Example response
{
  "compound": 0.8932,
  "label": "positive",
  "positive": 0.82,
  "negative": 0,
  "neutral": 0.18,
  "sentenceCount": 1,
  "sentences": [
    {
      "text": "I love this, it is wonderful and great!",
      "compound": 0.8932,
      "label": "positive"
    }
  ]
}
Input schema
{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "examples": [
        "I love this, it is wonderful and great!"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}