Skip to content
//Hacker News Scraper example\\

Stories about AI, 10 results

Search Hacker News stories by keyword.

Updated October 21, 2026

Input

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 queriessearchQueries
artificial intelligence
Max results per inputmaxResults
10
Sort search results bysortBy
Relevance
Include commentsincludeComments
No
Max comments per storymaxCommentsPerItem
5
Max comment depthmaxCommentDepth
0
User submissionsuserContent
Stories
.json
{
  "searchQueries": [
    "artificial intelligence"
  ],
  "storyLists": [],
  "maxResults": 10,
  "sortBy": "relevance",
  "includeComments": false,
  "maxCommentsPerItem": 5,
  "maxCommentDepth": 0,
  "userContent": "stories"
}

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. The advantage lasts forever.

No credit card. No setup calls.