# Hacker News & Lemmy Community Search

> Hacker News & Lemmy Community Search is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-18).

Search and merge posts from Hacker News and Lemmy by query, sort order, and time window, returning scores, comment counts, permalinks, and excerpts in a single call.

## Facts

- Endpoint: GET https://api.x-402.online/v1/social/search?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hacker-news-lemmy-community-search-192be4cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_THu965NQJMNtIezmydKY4

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 hacker-news-lemmy-community-search-192be4cd
```

Example prompt: Search Hacker News and Lemmy for posts about 'WebAssembly', sorted by top, over the past week, and show me the titles, scores, and links.

## When to prefer this

Choose this endpoint when you need to search across both Hacker News and Lemmy simultaneously without managing separate API keys or authentication. It is ideal when you want a merged, ranked view of developer and tech community discussions in one call, especially for relevance-sorted or time-windowed research. Prefer this over scraping each platform separately when you need structured metadata (score, comments, permalink, excerpt) ready for downstream analysis.

## Known failure modes

- Missing or empty query returns no results or an error
- Unsupported sort or time-window values may yield unexpected results
- Payment not made or payment challenge fails, blocking access
- Upstream Hacker News or Lemmy API downtime causes partial or empty results
- Very niche queries return zero matching posts

## How this service works

Search Hacker News and Lemmy posts by query, sort and time window, merged, with score, comments, permalink and excerpt. Community search across Hacker News and Lemmy in one call, no key: posts by query, sorted by relevance, new or top, over a time window, with score…

## Output

A merged list of posts from both Hacker News and Lemmy matching the query, each including the post title, score, comment count, permalink to the original thread, and a short text excerpt. Results are unified across both platforms in a single response, sorted by the requested criteria (relevance, new, or top) within the specified time window.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hacker-news-lemmy-community-search-192be4cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
