x402

Sentiment Analysis (x402)

Analyze the sentiment of text. Returns overall sentiment (positive/negative/neutral/mixed), confidence scores, and aspect-level sentiment.

get/x402/v2/sentiment-analyze

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/sentiment-analyze
  • Auth: none required

Query parameters

textstring required

Text to analyze

Response

Success

scoresobject
sentimentstring
confidencenumber

Example response

{
  "scores": {
    "neutral": 0.95,
    "negative": 0,
    "positive": 0.05
  },
  "aspects": [
    {
      "aspect": "purpose of the text",
      "sentiment": "neutral",
      "text_span": "test input for automated capability testing"
    }
  ],
  "summary": "The text is neutral in sentiment, describing a technical testing scenario without expressing any emotional valence.",
  "sentiment": "neutral",
  "confidence": 0.95,
  "detected_language": "English"
}

Changes

No recorded changes to this operation across all 1 revision of this API.