Live
get_hackernews_stories
news.ycombinator.comScrapes the Hacker News front page and returns stories with rank, title, URL, points, author, comment count, and story ID.
Parameters1
Runs1
Updated3d ago
Playground
Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.
What is get_hackernews_stories?
Scrapes the Hacker News front page and returns stories with rank, title, URL, points, author, comment count, and story ID. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass limit and get the result back without maintaining a scraper.
Response
{
"stories": [
{
"url": "<string>",
"rank": 0,
"title": "<string>",
"author": "<string>",
"points": 0,
"story_id": 0,
"num_comments": 0
}
]
}Call it
curl --location 'https://us-staging.notte.cc/functions/59855f13-a067-4022-acc7-3e8bebe5057c/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "59855f13-a067-4022-acc7-3e8bebe5057c",
"variables": {
"limit": 30
}
}'Ask an agent
Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.
prompt
Use the Anything API MCP server (https://anything-api-m0c52yv4l-nottelabsinc.vercel.app/mcp). Call run(function_id="59855f13-a067-4022-acc7-3e8bebe5057c") — the "get_hackernews_stories" function, which scrapes the Hacker News front page and returns stories with rank, title, URL, points, author, comment count, and story ID.. It takes limit (int). Return the result as structured JSON.