{"uid":"cap_3Z2uXbH3M5FbKkkkCl66K","slug":"agentutility-sentiment-analysis-5e8cbe36","name":"AgentUtility Sentiment Analysis","description":"Analyzes sentiment in arbitrary text, returning overall sentiment, a score (-1 to +1), per-emotion labels (joy/anger/sadness/fear/surprise/disgust), and optional aspect-based scoring. A text-only analysis endpoint for product reviews, tickets, comments, and support logs. Use it as a sentiment analyzer, text sentiment classifier, emotion classifier, or aspect-based sentiment API.","url":"https://x402.agentutility.ai/sentiment-analysis","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["text"],"properties":{"text":{"type":"string","description":"Text to analyze. Max 12,000 chars."},"aspects":{"type":"array","description":"Optional. Up to 15 aspect names (e.g. 'food', 'service') to score individually alongside overall sentiment."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"overall_score":{"type":"number"},"overall_sentiment":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"overall_score":0.1,"overall_sentiment":"mixed"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KwbUbt-sFSsWR9az8fXQJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes text to return overall sentiment polarity, a numeric score (-1 to +1), per-emotion labels (joy, anger, sadness, fear, surprise, disgust), and optional aspect-based sentiment scoring.","exampleAgentPrompt":"Can you analyze the sentiment of this customer review and tell me the overall polarity score, whether it's positive or negative, and which emotions like joy or anger are present: 'The battery life is incredible but the camera quality was deeply disappointing'?","exampleUseCases":[{"title":"Product review emotion tagging","prompt":"Analyze this product review for sentiment and emotions — I want to know the overall score from -1 to +1 and which specific emotions like joy, anger, or disgust come through: 'Absolutely love the design but the checkout process made me want to throw my laptop out the window.'"},{"title":"Support ticket triage by sentiment","prompt":"Score the sentiment of this customer support ticket and flag any anger or frustration so I can prioritize it: 'I've been waiting three weeks for a refund and nobody has responded to my emails. This is completely unacceptable.'"},{"title":"Aspect-based review breakdown","prompt":"Run aspect-based sentiment analysis on this restaurant review — I want separate sentiment scores for food, service, and ambiance: 'The pasta was heavenly and the atmosphere felt cozy, but our waiter forgot our order twice and never apologized.'"}],"resultDescription":"Returns a JSON object containing: an overall sentiment label (positive/negative/neutral), a numeric sentiment score from -1 to +1, per-emotion labels covering joy, anger, sadness, fear, surprise, and disgust with their intensities, and optionally aspect-level sentiment scores if aspect terms are provided.","failureModes":["Empty or missing text input returns a validation error","Text exceeding maximum character limits may be rejected or truncated","Non-text or binary payloads will fail","Payment not included or insufficient USDC results in 402 Payment Required","Ambiguous or very short text may return low-confidence or neutral scores","Non-English text may yield reduced accuracy depending on underlying model support"],"whenToPreferThis":"Choose this endpoint when you need fine-grained emotional classification (joy, anger, sadness, fear, surprise, disgust) alongside a continuous sentiment score and optional aspect-level breakdown — going beyond simple positive/negative polarity. Ideal for agents processing product reviews, support tickets, or social comments where understanding specific emotions or per-feature sentiment matters. At $0.01 USDC per call with x402 micropayment settlement, it's well-suited for per-document billing in agentic workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:56:26.521Z","isFirstParty":false}