# AnyAPI Hacker News Story Fetcher

> AnyAPI Hacker News Story Fetcher 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).

Fetches data for a specific Hacker News story by scraping the HN platform

## Facts

- Endpoint: POST https://api.getanyapi.com/v1/run/hackernews.story
- 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-story-fetcher-e3c715e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wxyTmFqETALho0e3G4Jlt

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-story-fetcher-e3c715e0 -d '<json body>'
```

Example prompt: Can you grab the details for Hacker News story ID 39948218 — I need the title, score, author, and comment count?

## When to prefer this

Choose this endpoint when you need structured data from a specific Hacker News story and don't want to scrape HN yourself or manage API subscriptions. Ideal for pay-per-use, one-off lookups where subscribing to a dedicated HN API or building a scraper is overkill. Best when you already have a story ID and need metadata programmatically.

## Known failure modes

- Story ID not found — returns error or empty result
- Invalid or missing story ID parameter — returns 400-level error
- Hacker News site temporarily unavailable — scrape fails with timeout or 5xx
- Payment failure via x402 — request not processed
- Rate limiting or IP block on HN side — intermittent failures

## 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 structured JSON with Hacker News story metadata including title, URL, score, author username, number of comments, submission time, and story type.

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anyapi-hacker-news-story-fetcher-e3c715e0/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)
