{"uid":"cap_cGHWEnkLwO6Sut2awVMcr","slug":"api-strale-io-f3f03a34","name":"Strale Sentiment Analysis","description":"Analyze the sentiment of text. Returns overall sentiment (positive/negative/neutral/mixed), confidence scores, and aspect-level sentiment.","url":"https://api.strale.io/x402/sentiment-analyze","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text to analyze"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"text":"The product quality is excellent but shipping took forever and customer support was unhelpful."}}},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.054000000000000006,"settlement_id":"0x2d0ed5ed35f3b89b832462dcdcc2b76560db6e5d3b2993b17d08ed55835e4e24"},"capability":"sentiment-analyze","latency_ms":1544,"provenance":{"source":"claude-haiku","fetched_at":"2026-06-05T23:36:12.087Z"}},"scores":{"neutral":0.15,"negative":0.5,"positive":0.35},"aspects":[{"aspect":"product quality","sentiment":"positive","text_span":"product quality is excellent"},{"aspect":"shipping speed","sentiment":"negative","text_span":"shipping took forever"},{"aspect":"customer support","sentiment":"negative","text_span":"customer support was unhelpful"}],"summary":"The text expresses mixed sentiment with praise for product quality offset by complaints about slow shipping and poor customer support.","sentiment":"mixed","confidence":0.92,"detected_language":"English"}},"exampleRequest":{"text":"The product quality is excellent but shipping took forever and customer support was unhelpful."},"tags":["x402"],"displayCostAmount":"0.054001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.054001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_x75Duu5CM2_QeM6vRQ25Z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes text sentiment returning overall polarity (positive/negative/neutral/mixed), confidence scores, and aspect-level sentiment breakdown.","exampleAgentPrompt":"Analyze the sentiment of this customer review and tell me if it's positive, negative, neutral, or mixed along with a confidence score: \"The product quality is excellent but shipping took forever and customer support was unhelpful.\"","exampleUseCases":null,"resultDescription":"Returns an overall sentiment label (positive, negative, neutral, or mixed), confidence scores indicating certainty, and aspect-level sentiment identifying sentiment toward specific aspects or topics mentioned in the text.","failureModes":["Missing required 'text' query parameter returns validation error","Empty string input may return undefined or error response","Very long text inputs may be truncated or rejected","Non-English text may produce lower accuracy results","Rate limiting or quota exceeded returns 402/429 error","Network timeout for unusually complex or long inputs"],"whenToPreferThis":"Use this endpoint when you need both overall sentiment classification and granular aspect-level sentiment in a single call, especially when confidence scores are required for downstream decision-making. Prefer over simpler polarity classifiers when mixed sentiment detection is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:41.584Z","isFirstParty":false}