News sentiment: headlines with sentiment scores
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.
Inputs
| Name | Type | Description |
|---|---|---|
q (required) | string | News topic, at most 400 characters |
count | integer | Number of articles (1-10, default 5) |
freshness | string | Only articles from the past day, week or month (default: week) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/pack/news-sentiment?q=bitcoin"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"pack": "news-sentiment",
"query": "bitcoin",
"summary": {
"articles": 5,
"positive": 3,
"negative": 2,
"averageScore": 0.21,
"tone": "mixed, leaning positive"
},
"articles": [
{
"title": "Bitcoin ETFs see record inflows",
"url": "https://www.example-news.com/markets/bitcoin-etf-inflows",
"source": "example-news.com",
"age": "3 hours ago",
"sentiment": "POSITIVE",
"score": 0.98
}
],
"terms": "Results are for the caller's immediate use…",
"failed": {}
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is pack_news_sentiment, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp