# AnyAPI Hacker News Search

> AnyAPI Hacker News Search is a paid API for AI agents from api.getanyapi.com, paid per call via x402, $0.00325/call, status unknown (last checked 2026-09-15).

Searches Hacker News stories, posts, and comments via a pay-per-request API with no subscription required

## Facts

- Endpoint: POST https://api.getanyapi.com/v1/run/hackernews.search
- Price: $0.00325/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anyapi-hacker-news-search-748b333c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4RdeMsnNmA10I2bfY8YRy

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 anyapi-hacker-news-search-748b333c -d '<json body>'
```

Example prompt: Search Hacker News for the most recent discussions about 'AI agents' and show me the top 10 results with their scores and comment counts.

## When to prefer this

Use this endpoint when you need to search Hacker News programmatically without committing to a subscription — ideal for one-off or infrequent HN searches, agents that need to occasionally surface tech community sentiment, or workflows that aggregate multiple data sources and only need HN search sometimes. At $0.00325 per call, it is cost-effective for sporadic use compared to maintaining a dedicated HN API subscription.

## Known failure modes

- Invalid or missing search query returns an error response
- Payment failure or insufficient wallet balance results in 402 or authorization error
- Rate limiting if too many requests are made in quick succession
- Empty results if no HN content matches the query
- Network timeout if the upstream Hacker News data source is slow

## How this service works

1,200+ scraping and data APIs behind one key. Pay per request in real dollars. No subscriptions, nothing monthly, nothing to cancel.

## Output

Returns a JSON list of Hacker News stories or comments matching the search query, typically including post titles, URLs, authors, scores, number of comments, and timestamps.

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anyapi-hacker-news-search-748b333c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.getanyapi.com](https://www.zero.xyz/host/api.getanyapi.com/llms.txt)
