Skip to content
//Hacker News Scraper example\\

Newest Rust stories with 100+ points, 10 results

Popular stories sorted by date.

Updated November 14, 2026

What this example returns

This example returns up to 10 results.

The dataset’s “Overview” view shows 11 columns: Rank, Type, Title, Link, Author, Points, Comments, Created, Text, HN page, and Input. See every output field.

What each setting does

The input this example runs Hacker News Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Search queries searchQueries

rust show

Keywords to search across all Hacker News stories and comments (full-text search). Each query returns up to Max results.

Max results per input maxResults

10

Maximum stories or comments per search query, list or user (comments under stories are counted separately). 0 = all available. Relevance search lists 1,000 hits per query; past that, the query is read again in date windows, each sorted by relevance.

Default: 20 → this example uses 10

Content types contentTypes

story

Only return these kinds of posts. Leave empty for everything. 'Currently on front page' only matches stories on the front page right now.

Sort search results by sortBy

Date (newest first)

Relevance ranks by match quality and popularity (the first 1,000 results in one ranking, more in date windows, newest window first). Date returns the newest first.

Default: Relevance → this example uses Date (newest first)

Minimum points minPoints

100

Only stories with at least this many upvotes.

Include comments includeComments

No

Add the comment tree of every story from searches, lists and usernames as extra rows (recordType 'comment', with depth and parent). Item URLs always return their comment tree, capped by the max comments per item.

Max comments per story maxCommentsPerItem

5

Cap on comments per story or item. 0 = the whole thread.

Default: 50 → this example uses 5

Max comment depth maxCommentDepth

0

1 = direct replies only, 2 = replies to replies, ... 0 = any depth.

User submissions userContent

Stories

What to return for each username besides the profile (newest first, up to Max results).

.json
{
  "searchQueries": [
    "rust show"
  ],
  "contentTypes": [
    "story"
  ],
  "minPoints": 100,
  "sortBy": "date",
  "maxResults": 10,
  "includeComments": false,
  "maxCommentsPerItem": 5,
  "maxCommentDepth": 0,
  "userContent": "stories"
}

What it costs

From about $0.008 for 10 results

An estimate at the lowest plan price: 10 × $0.000796 per result (One Hacker News story, comment or user profile saved to the dataset). A run is charged for the events it reports, so one that finds fewer results costs less. Platform usage is included in the event price.

Full pricing

When to use this example

From the Hacker News Scraper readme:

Why are some fields empty?

Hacker News leaves them empty: link posts have no text, Ask HN posts have no url, comments have no points (HN hides them), and deleted comments are skipped.

Known limit

Comment scores are not public on Hacker News, so points is empty for comments.

Other ways to run Hacker News Scraper

All examples of Hacker News Scraper

About Hacker News Scraper

Scrape Hacker News stories, comments, front-page lists and user profiles. Full-archive search with points, comments, date and author filters, complete comment trees, live rankings. No login needed.

Price:
From $0.796 / 1,000 results
Developer:
Querystone
Categories:
News, Developer tools

Hacker News Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.