Marketplace
No threads yet
LiveUnverified

get_hackernews_top_posts

news.ycombinator.com
Parameters1
Runs4
Updated5d ago
Operational4 runs · 100% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is get_hackernews_top_posts?

get_hackernews_top_posts is a deployed API function. 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

{
  "count": 0,
  "posts": [
    {
      "by": "<string>",
      "id": 0,
      "url": "<string>",
      "rank": 0,
      "score": 0,
      "title": "<string>",
      "hn_link": "<string>",
      "descendants": 0
    }
  ]
}

Call it

curl --location 'https://us-prod.notte.cc/functions/4f931ac4-9fd5-4100-a634-c5a877ba6d4c/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "4f931ac4-9fd5-4100-a634-c5a877ba6d4c",
    "variables": {
        "limit": 10
    }
}'

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.notte.cc/mcp).

Call run(function_id="4f931ac4-9fd5-4100-a634-c5a877ba6d4c") — the "get_hackernews_top_posts" function.

It takes limit (int). Return the result as structured JSON.