agentsvc.io

services / discussion-search

weboperational · 817 ms

Discussion Search (HN, Bluesky, Lemmy)

Find out what people say about a topic or a specific link. Searches Hacker News (stories with their top-ranked comments), Bluesky posts and Lemmy threads (with top comments) in one call, by keywords or by URL (finds every thread that shared that link, useful for product launches, articles and competitors). Each thread has title, text snippet, linked URL, discussion URL, author, points, comment count, date and up to 5 top comments; a summary gives total threads, points, comments and the most discussed thread. A source that is down reports an error without failing the call. Reddit and X are not included. Params: query or url (one required), sources (default all: hackernews, bluesky, lemmy), sort ('top' default or 'recent'), days (lookback 1 to 3650, optional), limit per source (1 to 20, default 5), comments per thread (0 to 5, default 2).

Run free trial ↗3 free calls per day with the example input. Paid: $0.003 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/discussion-search", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"query":"x402","limit":3,"comments":2}),
});
const { data, payment } = await res.json();  // payment.transaction = on-chain receipt

Input

FieldTypeDescription
querystringKeywords, e.g. 'x402' or 'rust async'. Required unless url is given.
urlstringFind discussions that shared this link, e.g. https://blog.cloudflare.com/monetization-gateway/
sourcesarray
sorttop | recent = "top"
daysintegerOnly threads from the last N days
limitinteger = 5
commentsinteger = 2

Output

FieldTypeDescription
queryany
urlstring
sortstring
daysany
summaryobject
sourcesobject
fetched_atstring

Example response (data)

{
  "query": null,
  "url": "https://blog.cloudflare.com/monetization-gateway/",
  "sort": "top",
  "days": null,
  "summary": {
    "threads": 3,
    "total_points": 486,
    "total_comments": 259,
    "most_discussed": {
      "source": "hackernews",
      "title": "Monetization Gateway: Charge for any resource behind Cloudflare via x402",
      "discussion_url": "https://news.ycombinator.com/item?id=48746914",
      "comments": 251
    }
  },
  "sources": {
    "hackernews": [
      {
        "source": "hackernews",
        "title": "Monetization Gateway: Charge for any resource behind Cloudflare via x402",
        "text": null,
        "url": "https://blog.cloudflare.com/monetization-gateway/",
        "discussion_url": "https://news.ycombinator.com/item?id=48746914",
        "author": "soheilpro",
        "community": null,
        "points": 355,
        "comments": 251,
        "created_at": "2026-07-01T13:59:13Z",
        "top_comments": [
          {
            "author": "arjie",
            "text": "This is the dream of microtransactions and agents-paying-for-access that so many people have always wanted. It was never going to be implemented on existing …",
            "points": null,
            "created_at": "2026-07-01T21:22:02.000Z"
          }
        ]
      }
    ],
    "bluesky": [
      {
        "source": "bluesky",
        "title": "Announcing the Monetization Gateway: charge for any resource behind Cloudflare via x402",
        "text": "Cloudflareがx402でAIのアクセスに課金できるシステム「Monetization Gateway」の発表、やっとキター 前は closed beta で試せなかったやつ Early Access Waitlist に申請done blog.cloudflare.com/monetization...",
        "url": "https://blog.cloudflare.com/monetization-gateway/",
        "discussion_url": "https://bsky.app/profile/okyawa.bsky.social/post/3mq3n7out3s2e",
        "author": "okyawa.bsky.social",
        "community": null,
        "points": 98,
        "comments": 0,
        "created_at": "2026-07-07T22:20:10.708Z",
        "top_comments": []
      }
    ],
    "lemmy": [
      {
        "source": "lemmy",
        "title": "Announcing the Monetization Gateway: charge for any resource behind Cloudflare via x402",
        "text": "Also relevant: https://netdollar.cloudflare.com/",
        "url": "https://blog.cloudflare.com/monetization-gateway/",
        "discussion_url": "https://lemmy.pt/post/16545343",
        "author": "tmpod",
        "community": "technology",
        "points": 33,
        "comments": 8,
        "created_at": "2026-07-01T23:02:06.765481Z",
        "top_comments": [
          {
            "author": "Zedstrian",
            "text": "Because they felt the web wasn't being enshittified quite fast enough.",
            "points": 37,
            "created_at": "2026-07-01T23:22:05.982226Z"
          }
        ]
      }
    ]
  },
  "fetched_at": "2026-10-07T06:11:37.415Z"
}