{"uid":"cap_SUDF7p0ojvfQxi3UE93pt","slug":"agent-data-tools-revmesh2074-workers-dev-news-sentiment-headlines-35ad4f04","name":"News Sentiment: Headlines with Sentiment Scores","description":"The news on a topic and its tone in one call: the latest headlines from the Brave News index (title, URL, publisher, age), each with a positive or negative score from a DistilBERT model, and the balance across them. Up to 10 articles from the past day, week or month. Not a market signal. Results are for the caller's immediate use only (Brave API terms). Use for a market mood check, brand monitoring or a news brief.","url":"https://agent-data-tools.revmesh2074.workers.dev/pack/news-sentiment?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"News topic, at most 400 characters"},"count":{"type":"integer","description":"Number of articles (1-10, default 5)"},"freshness":{"type":"string","description":"Only articles from the past day, week or month (default: week)"}}},"responseSchema":{"type":"object","properties":{"pack":{"type":"string"},"query":{"type":"string"},"terms":{"type":"string"},"failed":{"type":"object","properties":{}},"summary":{"type":"object","properties":{"tone":{"type":"string"},"articles":{"type":"number"},"negative":{"type":"number"},"positive":{"type":"number"},"averageScore":{"type":"number"}}},"articles":{"type":"array","items":{"type":"object","properties":{"age":{"type":"string"},"url":{"type":"string"},"score":{"type":"number"},"title":{"type":"string"},"source":{"type":"string"},"sentiment":{"type":"string"}}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.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_r9-Div7S1RJDHisQfigrB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Fetches the latest news headlines on a topic from the Brave News index and scores each article positive or negative using a DistilBERT model, returning an aggregate tone summary.","exampleAgentPrompt":"Pull the latest 10 news headlines from this past week about Nvidia and score each one positive or negative — then tell me the overall tone balance.","exampleUseCases":[{"title":"Brand reputation news check","prompt":"Search for the last week of news about 'Patagonia' — give me up to 8 headlines with their positive or negative sentiment scores and tell me what the overall tone looks like."},{"title":"Crypto market mood briefing","prompt":"What's the current news sentiment around Ethereum? Grab 10 articles from the past day and tell me how many are positive vs negative."},{"title":"Competitor press monitoring","prompt":"Check the news tone for 'Salesforce' over the past month — I want to see the headlines, how each one scores, and the overall balance of positive versus negative coverage."}],"resultDescription":"Returns a list of up to 10 news articles (title, URL, publisher, age, sentiment label, and numeric score) along with an aggregate summary containing overall tone label, article count, positive count, negative count, and average sentiment score across all returned articles.","failureModes":["Missing required 'q' parameter returns a 400-level error","Topic query exceeding 400 characters may be rejected or truncated","Brave News index may return fewer articles than requested if coverage is sparse","freshness values outside 'day', 'week', 'month' may default or error","Sentiment model may struggle with ambiguous or very short headlines, producing near-zero scores","Payment failure (402) halts the request before results are returned"],"whenToPreferThis":"Choose this endpoint when you need both news retrieval and sentiment scoring in a single call without stitching together a search API and an NLP model. It is best for lightweight market mood checks, brand or competitor monitoring, or assembling a sentiment-annotated news brief. Prefer it over raw search endpoints when tone quantification matters. Note: results are for immediate use only per Brave API terms, so do not cache or re-serve articles.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:51:10.748Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-news-sentiment-headlines-35ad4f04"}