Brand sentiment, news sentiment: headlines with sentiment scores
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
Brand sentiment from the news on a topic 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.
Guide: News headlines API
$0.008 per call with prepaid credits: $1 by card pays for 125 calls, with no account and no subscription.
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://glyphtools.com/pack/news-sentiment?q=bitcoin"
Node.js
const r = await fetch("https://glyphtools.com/pack/news-sentiment?q=bitcoin", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/pack/news-sentiment?q=bitcoin", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
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, paid from the first call:
https://glyphtools.com/mcp