{"uid":"cap_nsy-qvMsFELZdWCMwlS9j","slug":"api-x402node-dev-949f2fac","name":"x402node AFINN Sentiment Scorer","description":"Lexicon-based sentiment scoring (AFINN-style). Returns raw score, length-normalized score, label (positive/neutral/negative), positive/negative word hits. Use ?text=This+product+is+amazing. Built for AI agents doing review analysis, social monitoring, and feedback triage. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/nlp/sentiment","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"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Input text (required)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CCVCSfYnfnNqwpCA_yShv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scores the sentiment of a text string using lexicon-based (AFINN-style) analysis, returning a raw score, normalized score, label, and positive/negative word hits.","exampleAgentPrompt":"Score the sentiment of this review and tell me if it's positive, negative, or neutral, along with which words pushed it each way: 'The battery life is incredible but the screen is way too dim.'","exampleUseCases":null,"resultDescription":"Returns a raw AFINN-style sentiment score, a length-normalized score, a categorical label (positive/neutral/negative), and lists of positive and negative word hits found in the input text.","failureModes":["Empty or missing text parameter returns an error or neutral score","Very short or stopword-only text may produce a neutral label with zero word hits","Non-English text may score inaccurately since AFINN is English-centric","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need fast, lightweight, interpretable sentiment scoring with explicit word-level evidence (positive/negative hits) — ideal for review triage, social monitoring, and feedback classification where you want to see which specific words drove the score, rather than a black-box ML model output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:56:59.481Z","isFirstParty":false}