{"uid":"cap_MTyW4johH16lvK1fQrLyu","slug":"sentiment-analyzer-by-pdfextractapi-c10c9524","name":"Sentiment Analyzer by PDFExtractAPI","description":"Analyze the sentiment of text: classification, score, confidence, and detected emotions.","url":"https://sentiment-analyzer.pdfextractapi.workers.dev/analyze","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":"The text to analyze, max 20,000 characters."}}},"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"}}}}},"responseSchema":null,"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_RfffzWI6KrLcl_hVU0H1U","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 sentiment classification, numeric score, confidence level, and detected emotions.","exampleAgentPrompt":"Analyze the sentiment of this customer review and give me the classification, score, confidence, and any detected emotions: 'The product arrived late and was damaged, but customer support was surprisingly helpful and resolved everything quickly.'","exampleUseCases":[{"title":"Customer review sentiment scoring","prompt":"Classify this product review as positive, negative, or neutral, give me a confidence score, and tell me what emotions are detected: 'I've been using this blender for three months and it's already broken — completely disappointed.'"},{"title":"Social media post tone monitoring","prompt":"What's the sentiment and emotional tone of this tweet? 'Just got the new firmware update and wow, the app is buttery smooth now — loving it! 🙌' I need the classification, score, and confidence level."},{"title":"Support ticket triage by emotion","prompt":"Analyze the sentiment and emotions in this support message so I can prioritize it: 'I've contacted you four times already and nothing has been fixed. I'm furious and about to cancel my subscription.'"}],"resultDescription":"Returns a sentiment classification (e.g. positive, negative, neutral), a numeric sentiment score, a confidence value indicating certainty of the classification, and a list of detected emotions present in the text.","failureModes":["Text exceeds 20,000 character limit — request rejected or truncated","Empty or missing 'text' field — validation error returned","Non-UTF8 or malformed body — parse error","Payment failure or insufficient USDC balance — x402 payment required error","Service unavailable on Cloudflare Workers edge — 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a combined sentiment classification, numeric score, confidence measure, AND emotion detection in a single call. It is well-suited for processing individual text snippets up to 20,000 characters via a pay-per-call model ($0.01 USDC), making it ideal for low-volume or on-demand sentiment analysis without a subscription commitment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:31:02.206Z","isFirstParty":false}