{"uid":"cap_jeEyuyNWQj-CRk5DXuvat","slug":"myworker-agent-api-sentiment-analysis-40ff305a","name":"Myworker Agent API – Sentiment Analysis","description":"Servis berbayar untuk bot/agen (x402): data pasaran Solana via Jupiter + RPC, dan servis AI via Workers AI. Bayar per panggilan dengan USDC di Solana, USDC di Base, atau SOL.","url":"https://crypto-micro-agent.mykira.workers.dev/api/agent/sentimen?utm_source=zero.xyz","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","example":{"text":"teks contoh"},"required":["text"],"properties":{"text":{"type":"string","description":"Teks input"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"hasil":{"skor":0.82,"emosi":["gembira","puas hati"],"sebab":["memuji nilai produk","memuji kepantasan penghantaran"],"sentimen":"positif","keyakinan":0.9,"panjang_teks":48},"servis":"sentimen"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nXsMKD03uMC11TXPxHulV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes the sentiment of input text, returning a score, emotion labels, reasons, and confidence level.","exampleAgentPrompt":"Can you analyze the sentiment of this customer review: 'Produk ini sangat bagus, penghantaran cepat dan servis mesra'? I want to know if it's positive or negative, the confidence score, and what emotions are detected.","exampleUseCases":[{"title":"Customer review sentiment scoring","prompt":"Analyze the sentiment of this customer review and tell me the score and detected emotions: 'Saya sangat gembira dengan pembelian ini, kualiti produk melebihi jangkaan saya.'"},{"title":"Social media post tone detection","prompt":"Is this tweet positive, negative, or neutral? Give me the sentiment score and reasons: 'Perkhidmatan pelanggan syarikat ini sungguh mengecewakan, masalah tidak diselesaikan langsung.'"},{"title":"Product feedback emotional analysis","prompt":"Check the emotional tone of this feedback for me and list out the emotions detected along with why it's rated that way: 'Harga berpatutan dan reka bentuk produk sangat menarik!'"}],"resultDescription":"Returns a JSON object with: ok (boolean), servis ('sentimen'), and hasil containing skor (0–1 float sentiment score), sentimen (label: 'positif'/'negatif'/'neutral'), emosi (array of detected emotion strings), sebab (array of reasons explaining the sentiment), keyakinan (confidence score 0–1), and panjang_teks (character length of input text).","failureModes":["Missing 'text' query parameter returns an error","Payment not completed (HTTP 402) if x402 payment is not provided or fails","Empty or very short text may yield low confidence scores","Non-text or malformed input may cause parsing errors","Rate limiting or infrastructure downtime on Cloudflare Workers"],"whenToPreferThis":"Choose this endpoint when you need fast, per-call AI-powered sentiment analysis with pay-as-you-go micropayment pricing (USDC on Solana/Base or SOL), especially for agents that process text in Malay or multilingual contexts and need not just a label but also emotion tags, reasons, and confidence scores.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T18:35:40.963Z","isFirstParty":false,"canonicalSlug":"myworker-agent-api-sentiment-analysis-40ff305a"}