Skip to content

Hacker News API: Search stories

Searches Hacker News stories or comments by words, date range and sort order. Comments include their parent story's website link when one exists; text-only stories have no website link.

news.ycombinator.com (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by Hacker News.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Page optionalpage

Page number, starting with 1, such as 2.

1 (default)

Whole number 1 or more.

Sort optionalsort

Order by relevance or newest, such as newest.

relevance (default)

One of relevance, newest.

Type optionaltype

Search stories or comments, such as comments.

stories (default)

One of stories, comments.

Query, requiredquery

Words to search for, such as remote work.

remote work

Max Results optionalmax_results

Maximum results on this page, such as 20.

20 (default)

Whole number from 1 to 100.

Time Window optionaltime_window

How far back to search, such as past_week.

all_time (default)

One of past_day, past_week, past_month, past_year, all_time.

Output

From a run on Oct 23, 2026, shortened for this page.
{  "results": [    {      "title": "Remote work doesn't seem to affect productivity, Fed study finds",      "author": "simula67",      "points": 848,      "item_id": "39037589",      "posted_at": "2024-01-18T03:55:56Z",      "website_url": "https://www.bloomberg.com/news/articles/2024-01-16/remote-work-doesn-t-seem-to-affect-productivity-fed-study-finds",      "comment_text": null,      "comment_count": 579,      "hacker_news_url": "https://news.ycombinator.com/item?id=39037589"    },    {      "title": "Written communication is remote work super power",      "author": "snird",      "points": 831,      "item_id": "23577228",      "posted_at": "2020-06-19T18:08:45Z",      "website_url": "https://snir.dev/blog/remote-async-communication/",      "comment_text": null,      "comment_count": 190,      "hacker_news_url": "https://news.ycombinator.com/item?id=23577228"    },    {      "title": "SSH hacks – a little sanity for remote workers",      "author": "mxfurman",      "points": 770,      "item_id": "23025756",      "posted_at": "2020-04-29T23:20:48Z",      "website_url": "https://smallstep.com/blog/ssh-tricks-and-tips/",      "comment_text": null,      "comment_count": 227,      "hacker_news_url": "https://news.ycombinator.com/item?id=23025756"    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
news.ycombinator.com/search_stories
Returns
title, comment text, author, points, comment count, posted date, website link, Hacker News link, item ID

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method news.ycombinator.com/search_stories with the inputs above.

Ask your agent

  • Find Hacker News stories about rust borrow checker posted in the past week, sorted by newest
  • Show me the top comments discussing remote work from the past month on Hacker News
  • Search HN for stories mentioning sqlite performance, all time, relevance order, 50 results
  • Look up recent comments on ycombinator.com about LLM fine-tuning from the past day, newest first
  • Get page 2 of Hacker News stories matching kubernetes networking from the past year
  • Gets a Hacker News story and its comments in the order shown on the site. The story can be given as a discussion link or as words from its title. Deleted and flagged comments are left out.

    news.ycombinator.com/get_discussion
  • Lists current Hacker News stories in rank order from the top, newest, best, Ask HN, Show HN or jobs list.

    news.ycombinator.com/list_front_page
  • Searches the Y Combinator company directory by keyword, industry, batch, location, hiring and status, returning companies in directory order.

    ycombinator.com/search_companies
  • Lists top-level job posts from a monthly Ask HN: Who is hiring? thread in thread order, with post text and the company, roles, location, work arrangement, salary and application contact inferred from each post.

    news.ycombinator.com/list_hiring_posts
  • Looks up a Y Combinator company by name or YC company page link and returns its profile, founders, social links and open job count.

    ycombinator.com/get_company
  • Finds public Reddit posts by topic, optionally in one community, for a time window and sort order. Returns up to 100 posts in Reddit search order with score, comment count, text and link.

    reddit.com/search_posts
  • Searches Yahoo News articles by keyword, newest first or by relevance, with optional publication dates and pages; returns only articles hosted on Yahoo News, with authors, original publisher and section.

    yahoo.com/search_news
  • Searches TechCrunch articles by keyword, with an optional publication date range and newest or most relevant order.

    techcrunch.com/search_news