agentsvc.io

services / news-sentiment

textoperational · 3319 ms

News Sentiment Analysis

News sentiment for a company, token, person or topic: finds up to 25 recent articles in our own news index (GDELT and Hacker News, last 7 days) and rates how the coverage reflects on the topic: overall label (very negative to very positive), a -1 to 1 score, positive, neutral and negative counts, 3 to 5 themes, a two-sentence summary and every article with its own sentiment, title, source, date and URL. For trading signals, brand monitoring and research agents. Rated by Claude Haiku 5.5 from headlines and snippets only. Not charged when fewer than 2 articles are found.

Run free trial ↗3 free calls per day with the example input. Paid: $0.006 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/news-sentiment", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"topic":"Bitcoin","limit":8}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
topic *stringCompany, token, person or topic, e.g. Bitcoin or Siemens
limitinteger = 15
categorygeneral | tech | business | science | health | politics

Output

FieldTypeDescription
topicstring
overallstring
scorenumber
summarystring
themesarray
countsobject
articlesarray
windowstring
modelstring
analysed_atstring

Example response (data)

{
  "topic": "Bitcoin",
  "overall": "mixed",
  "score": 0.1,
  "summary": "Coverage of Bitcoin is split between price-technical analysis showing uncertainty between a fall toward $75,000 and a rebound toward $94,500, and a mix of institutional adoption stories such as ETFs now holding more Bitcoin than Satoshi. Commentary also raises concerns about whether ETF inflows help or undermine Bitcoin's decentralized character, alongside long-dormant wallet movements and a midterm-linked $100k outlook.",
  "themes": [
    "price volatility and technical levels",
    "ETF institutional ownership",
    "decentralization concerns",
    "dormant Satoshi-era wallets",
    "long-term adoption outlook"
  ],
  "counts": {
    "positive": 2,
    "neutral": 5,
    "negative": 1
  },
  "articles": [
    {
      "title": "Bitcoin BTC USD price analysis: Bitcoin's four-month higher-low pattern explained: Will BTC USD price fall below $75,000 or rebound toward $94,500?",
      "url": "https://economictimes.indiatimes.com/news/international/us/bitcoins-four-month-higher-low-pattern-explained-will-btc-usd-price-fall-below-75000-or-rebound-toward-94500/articleshow/134842554.cms",
      "source": "indiatimes.com",
      "published_at": "2026-10-09T21:30:00.000Z",
      "sentiment": "neutral"
    },
    {
      "title": "Bitcoin ETFs Now Hold More Bitcoin Than Satoshi. Are They Helping or Hindering Bitcoin?",
      "url": "https://247wallst.com/investing/cryptocurrency/2026/10/08/bitcoin-etfs-now-hold-more-bitcoin-than-satoshi-are-they-helping-or-hindering-bitcoin/",
      "source": "247wallst.com",
      "published_at": "2026-10-08T09:45:00.000Z",
      "sentiment": "neutral"
    },
    {
      "title": "Stacks Founder Muneeb Ali Shares His 2030 Vision for STX: Bitcoin Capital Markets, Privacy, and Post-Quantum Bitcoin",
      "url": "https://www.manilatimes.net/2026/10/09/tmt-newswire/plentisoft/stacks-founder-muneeb-ali-shares-his-2030-vision-for-stx-bitcoin-capital-markets-privacy-and-post-quantum-bitcoin/2442348",
      "source": "manilatimes.net",
      "published_at": "2026-10-09T02:45:00.000Z",
      "sentiment": "positive"
    },
    {
      "title": "Neovim have a ~$800k Bitcoin donation sitting untouched since 2023",
      "url": "https://news.ycombinator.com/item?id=49738879",
      "source": "Hacker News",
      "published_at": "2026-09-17T10:44:49Z",
      "sentiment": "neutral"
    },
    {
      "title": "Bitcoin mined in 2010 moves after 16 years: Bitcoin worth $29 in 2010 suddenly moves after 16 years. Now this Satoshi-era BTC USD is valued at $8.3 million",
      "url": "https://economictimes.indiatimes.com/news/international/us/bitcoin-worth-29-in-2010-suddenly-moves-after-16-years-now-this-satoshi-era-btc-usd-is-valued-at-8-3-million/articleshow/134800382.cms",
      "source": "indiatimes.com",
      "published_at": "2026-10-08T21:45:00.000Z",
      "sentiment": "neutral"
    },
    {
      "title": "Bitcoin, Crypto And The Midterms: What It Will Take To Reach $100k Bitcoin",
      "url": "https://www.investors.com:443/news/bitcoin-cryptocurrency-outlook-clarity-act-sec-cftc-frameworks-regulations/",
      "source": "investors.com",
      "published_at": "2026-10-08T20:15:00.000Z",
      "sentiment": "positive"
    },
    {
      "title": "There's a spike in Bitcoin activity around the time foreign aid money goes out",
      "url": "https://twitter.com/cremieuxrecueil/status/2105707121073328552",
      "source": "Hacker News",
      "published_at": "2026-10-02T05:15:15Z",
      "sentiment": "negative"
    },
    {
      "title": "Wall Street's Funds Now Hold More Bitcoin Than Satoshi. Did the ETFs Rescue Bitcoin or Capture It?",
      "url": "https://www.aol.com/articles/wall-street-funds-now-hold-050023000.html",
      "source": "aol.com",
      "published_at": "2026-10-08T11:15:00.000Z",
      "sentiment": "neutral"
    }
  ],
  "window": "last 7 days, our news index (GDELT and Hacker News)",
  "model": "claude-haiku-5-5",
  "analysed_at": "2026-10-10T10:12:15.017Z"
}