@this-npm-test-org/connection-hackernews
v0.0.2
Published
Hacker News stories, comments, user profiles, and rankings via the official Firebase API. Read-only, no authentication required.
Readme
Hacker News Connection
Connects your agent to the Hacker News API for stories, comments, user profiles, and rankings. Read-only access to all public data via the official Firebase API. No authentication required.
Authentication
No authentication required. The Hacker News API is public.
Endpoints
Items
GET /item/{id}.json— Get any item (story, comment, job, poll) by IDGET /maxitem.json— Get the current maximum item ID
Users
GET /user/{id}.json— Get user profile by username
Story Rankings
GET /topstories.json— Top 500 story IDs, ranked by scoreGET /newstories.json— Newest 500 story IDsGET /beststories.json— Best 500 story IDsGET /askstories.json— Current Ask HN story IDsGET /showstories.json— Current Show HN story IDsGET /jobstories.json— Current job posting IDs
Rules
- No authentication or API key required
- No official rate limit currently — be a good citizen, limit to ~10 req/s
- All endpoints require the
.jsonsuffix - Story list endpoints return arrays of integer IDs — fetch each item individually
- Text fields contain HTML, not plain text
- All timestamps are Unix epoch seconds
- Items can be stories, comments, jobs, polls, or poll options — use the
typefield to distinguish
