agentsvc.io

services / trends-hot

dataoperational · 1369 ms

Trending Now (hot lists)

What is trending right now: Hacker News top stories, GitHub trending repositories (stars today/week/month), most-read Wikipedia articles (any language edition), Google News top stories per country, Baidu realtime hot searches and Bilibili popular videos (China). Each item has rank, title, url and a score (points, stars, pageviews, heat, views). Params: sources (default all), limit per source (1 to 50, default 10), language (Wikipedia and Google News, default en), country (Google News, default US), since (GitHub: daily, weekly, monthly).

Run free trial ↗1 free call 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/trends-hot", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"sources":["hackernews","github","wikipedia"],"limit":5}),
});
const { data, payment } = await res.json();  // payment.transaction = on-chain receipt

Input

FieldTypeDescription
sourcesarray
limitinteger = 10
languagestring = "en"
countrystring = "US"
sincedaily | weekly | monthly = "daily"

Output

FieldTypeDescription
sourcesobject
fetched_atstring

Example response (data)

{
  "sources": {
    "hackernews": [
      {
        "rank": 1,
        "title": "Mistral Large 4",
        "url": "https://docs.mistral.ai/models/mistral-large-4-0",
        "score": 436,
        "extra": {
          "comments": 208,
          "discussion": "https://news.ycombinator.com/item?id=49977979"
        }
      }
    ],
    "baidu": [
      {
        "rank": 1,
        "title": "下次回来就是2027年了",
        "url": "https://www.baidu.com/s?wd=%E4%B8%8B%E6%AC%A1%E5%9B%9E%E6%9D%A5%E5%B0%B1%E6%98%AF2027%E5%B9%B4%E4%BA%86&sa=fyb_news&rsv_dl=fyb_news",
        "score": 7808307,
        "extra": {
          "description": "国庆假期即将结束,这次假期最后离家,下一趟再回家,就是2027年了。"
        }
      }
    ],
    "github": [
      {
        "rank": 1,
        "title": "tester-army/e2e",
        "url": "https://github.com/tester-army/e2e",
        "score": 1720,
        "extra": {
          "description": "Next generation e2e testing framework for web and mobile apps.",
          "language": "TypeScript",
          "stars_total": 5734,
          "stars_period": "daily"
        }
      }
    ]
  },
  "fetched_at": "2026-10-06T14:30:56.358Z"
}