Social

Hacker News Story Comments

The full comment thread of a Hacker News story, flattened with depth.

live hackernews.story_comments $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_comments \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":8863,"limit":50}'
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('hackernews.story_comments', {'id': 8863, 'limit': 50})
print(result['cost_usd'], result['output'])
getallapis run hackernews.story_comments '{"id":8863,"limit":50}'

Quote first, free: POST /v1/quote/hackernews.story_comments with the same body. MCP: run_endpoint with endpoint="hackernews.story_comments".

Input

FieldTypeRequiredDefaultNotes
idintegeryesStory id
limitintegerno200

Output

Returned in output of the run envelope (ok, request_id, endpoint, status, cost_usd, items, latency_ms, source, output).

FieldMeaning
commentsComments with author, text, depth and parent id.

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.

Markdown reference · JSON · Playground