# Tokenguard Social HN Search

> Tokenguard Social HN Search is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Searches Hacker News for posts and discussions matching a given query, returning titles, URLs, points, and comment counts

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/social/hn
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-social-hn-search-4bb3b2aa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N-SJz1_8pB1vvMyTybL6U

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tokenguard-social-hn-search-4bb3b2aa -d '<json body>'
```

Example prompt: Search Hacker News for discussions about 'x402' and show me the top results with their point scores and comment counts.

## When to prefer this

Use this endpoint when you need to surface Hacker News community discussions, sentiment, or awareness around a specific keyword — especially for crypto/DeFi topics, tech startups, or developer tools. Prefer over general web search when you specifically want curated HN signal with points and comment metadata.

## Known failure modes

- Empty results array if no HN posts match the query
- Payment failure if x402 micropayment of $0.005 USDC is not processed
- Service unavailability on HuggingFace Spaces due to cold start or resource limits
- Malformed or missing query body returns error
- Rate limiting if too many requests are made rapidly

## How this service works

Hacker News full-archive search: stories, comments, Show HN and Ask HN with points, comment counts and URLs

## Output

A JSON object containing a count of matching results and an array of HN posts, each with a URL, title, upvote points, and number of comments — useful for gauging community interest or surfacing relevant threads.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tags": {
   "type": "string",
   "description": "story | comment | show_hn | ask_hn | front_page"
  },
  "limit": {
   "type": "integer",
   "description": "1-50 hits (default 20)"
  },
  "query": {
   "type": "string",
   "description": "Search terms; omit for the front page"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "query": "x402",
  "results": [
   {
    "url": "https://…",
    "title": "…",
    "points": 312,
    "comments": 118
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-social-hn-search-4bb3b2aa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
