Hacker News Story
One Hacker News item (story, comment, job or poll) by id.
live hackernews.story $0.0015 per request ($1.50 per 1,000)
Pricing
$0.0015 per request ($1.50 per 1,000), paid from a prepaid USD wallet. The exact amount is on every response as cost_usd; max_cost_usd refuses anything higher; failed calls are refunded.
1,000 requests = $1.50 · 10,000 = $15.00 · 100,000 = $150.00
Run it
curl -s -X POST https://getallapis.com/v1/run/hackernews.story \
-H "Authorization: Bearer $GETALLAPIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":8863}'
from getallapis_client import Client
client = Client() # reads GETALLAPIS_API_KEY
result = client.run('hackernews.story', {'id': 8863})
print(result['cost_usd'], result['output'])
getallapis run hackernews.story '{"id":8863}'
Quote first, free: POST /v1/quote/hackernews.story with the same body. MCP: run_endpoint with endpoint="hackernews.story".
Input
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | yes | | Hacker News item id |
Output
Returned in output of the run envelope (ok, request_id, endpoint, status, cost_usd, items, latency_ms, source, output).
| Field | Meaning |
|---|---|
title | Title. |
points | Score. |
num_comments | Comment count. |
url | Linked URL. |
Source and latency
Hacker News API + HN Search (Algolia) (official api). Official Firebase API and the public HN Search API. One upstream per endpoint; no automatic failover.
Not enough calls measured yet.