News sentiment: headlines scored positive or negative
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
News sentiment for a company or topic: recent headlines, each labelled positive or negative with a score. Use to gauge media coverage tone for a brand or subject before a decision. No account, pay per call over x402.
$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/news/sentiment?q=bitcoin"
Node.js
const r = await fetch("https://glyphtools.com/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/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 news_sentiment, paid from the first call:
https://glyphtools.com/mcp