81trust / 100
News Hn Search
by 2s in Search & web
x402 APIPassing, checked 59 min ago
Full-text search across all of Hacker News (via the Algolia HN API). Search stories or comments by keyword, sorted by relevance or by date (newest first). Filter by tags (story/comment/ask_hn/show_hn/poll) and by author. Each hit: title, URL, author, points, comment count, story/comment text, created time, and canonical HN URL. Net-new vs news.hn-top (curated feeds) and news.search (general news).
GET https://2s.io/api/news/hn-search
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 212 ms typical, 212 ms slowest 5%
- Last check
- 59 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://2s.io/api/news/hn-search?author=example&limit=1&query=&sort=relevance&tags=story"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F2s.io%2Fapi%2Fnews%2Fhn-search
const res = await pay("https://2s.io/api/news/hn-search?author=example&limit=1&query=&sort=relevance&tags=story");
console.log(await res.json());Example input
{
"author": "example",
"limit": 1,
"query": "",
"sort": "relevance",
"tags": "story"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 59 min ago | Passed | 402 | 212 ms | $0.003 |
| 4 h ago | Passed | 402 | 156 ms | $0.003 |
| 9 h ago | Passed | 402 | 224 ms | $0.003 |