← All APIs
Hacker News API
3 endpoints returning Hacker News data as JSON, with the same API key, response envelope and credits as every other serpfast API.
Endpoints
| Path | Description |
|---|---|
| /hackernews/item | Item · Get a Hacker News story, comment, job, or poll by ID. |
| /hackernews/stories | Stories · Get ranked Hacker News stories with scores and discussion IDs. |
| /hackernews/user | User · Get a public Hacker News profile and recent submitted item IDs. |
Example request
Item
curl "https://serpfast.com/api/v1/hackernews/item?id=8863" \
-H "Authorization: Bearer $SERPFAST_KEY"Pricing
One credit per request on every Hacker News endpoint. Failed requests are refunded automatically. Start with 5,000 free credits.
Pricing