{"uid":"cap_nHjw6Kol5emu61m4PSXLR","slug":"news-sentiment-analysis-api-18592ae6","name":"News Sentiment Analysis API","description":"Invoice-to-JSON, on-chain tools (transaction explainer + payment check, wallet profile, contract ABI, ERC-20 token risk), company contacts and web-to-RAG for AI agents. Pay per call with x402 (USDC on Base). No signup, no API key.","url":"https://freetier-agent-api.pages.dev/api/news-sentiment?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"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"topic, company or person"},"lang":{"type":"string","description":"optional source language"},"timespan":{"type":"string","description":"e.g. 24h, 7d, 2w (default 7d)"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"label":"slightly-negative","query":"Bitcoin","trend":"improving","timeline":[{"date":"2026-10-28T00:00:00Z","tone":-1.2}],"averageTone":-0.8}},"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_JHHjftsYmHWDCDjcDSgz5","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":"Analyzes news sentiment for a given topic, company, or person over a configurable timespan, returning a sentiment label, trend direction, average tone, and a daily timeline of tone scores.","exampleAgentPrompt":"What's the news sentiment around Nvidia right now — is it positive or negative, and has the tone been improving or getting worse over the past 7 days?","exampleUseCases":[{"title":"Pre-investment media sentiment check","prompt":"Before I buy more Nvidia stock, can you check the news sentiment for Nvidia over the past 2 weeks — is coverage positive or negative, and is the trend improving?"},{"title":"Crypto news mood tracker","prompt":"What's the overall news sentiment around Bitcoin right now? Give me the vibe and a day-by-day breakdown for the last 7 days."},{"title":"Brand reputation monitoring","prompt":"I want to know how the media has been covering Tesla over the past 24 hours — is the tone positive, negative, or mixed, and is it getting better or worse?"}],"resultDescription":"A JSON object with a sentiment label (e.g. 'slightly-negative', 'positive'), the query term, a trend direction string (e.g. 'improving'), an average tone score (float), and a timeline array of daily date/tone objects showing how sentiment has shifted over the requested period.","failureModes":["Missing required 'q' parameter returns an error","Invalid timespan format (e.g. unsupported units) may return default or error","Obscure topics with little news coverage may return sparse or empty timeline","Unsupported language codes may fall back to default or return error","Rate limiting or x402 payment failure blocks access to the endpoint"],"whenToPreferThis":"Use this endpoint when you need structured, quantified news sentiment for a specific topic, company, or person — especially when you want both a summary label and a daily trend timeline. Prefer this over generic web search when you need a numerical tone score and trend direction rather than raw article content, or when you want to monitor sentiment changes over a configurable window (24h, 7d, 2w).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:31:00.789Z","isFirstParty":false,"canonicalSlug":"news-sentiment-analysis-api-18592ae6"}