Skip to content

News & Media

Tools for searching technology news and community discussions. See also Conflict & Humanitarian for GDELT global news coverage and Academic Research for arXiv preprints.


Search Hacker News posts, comments, jobs, and polls via the Algolia HN Search API.

Parameter Type Required Default Description
q str Yes Search query string.
tags str No (all) Filter by type: story, comment, job, poll, show_hn, ask_hn.

Returns: JSON with matching items — titles, authors, scores, comment counts, and URLs.
Auth: None.

Usage examples

Search for stories mentioning a technology:

hn_search(q="model context protocol")

Find Show HN posts about a topic:

hn_search(q="open source", tags="show_hn")

Search comments only:

hn_search(q="FastMCP", tags="comment")


hn_item

Fetch a single Hacker News item by its integer ID from the official Firebase API.

Parameter Type Required Default Description
item_id int Yes Integer ID of the HN item (story, comment, job, or poll).

Returns: Raw item JSON with title, text, score, author, creation time, and child IDs.
Auth: None.

Usage examples

Fetch a specific story by ID:

hn_item(item_id=36517058)

Fetch the first-ever HN submission:

hn_item(item_id=1)