← 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

PathDescription
/hackernews/itemItem · Get a Hacker News story, comment, job, or poll by ID.
/hackernews/storiesStories · Get ranked Hacker News stories with scores and discussion IDs.
/hackernews/userUser · 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.

价格

More Developer & content APIs