Skip to content
Eden Engine

Hacker News Top Stories & Keyword Search

omnial/hackernews

Returns Hacker News front-page stories (top, new, or best) with each story's score and comment count, or full-text searches Hacker News for a keyword and returns matching stories with points, comment count, and post date.

activeper callv2

Price

$0.0151 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $0.50.

Data source

Hacker News

Data from Hacker News.

Use it

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

Connect once and your AI can find and run this tool, and any other it needs.

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "omnial/hackernews" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "omnial/hackernews" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "omnial/hackernews", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "omnial/hackernews", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0151
Updated
Oct 25, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "anyOf": [
    {
      "required": [
        "q"
      ]
    },
    {
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "enum": [
            "top",
            "new",
            "best"
          ]
        }
      }
    }
  ],
  "required": [],
  "properties": {
    "q": {
      "type": "string",
      "description": "query (mode=search)"
    },
    "mode": {
      "enum": [
        "search",
        "top",
        "new",
        "best"
      ],
      "type": "string"
    },
    "maxItems": {
      "type": "string",
      "default": "20"
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Number of entries in items. E.g. 10 for top stories with maxItems=10, 20 for search (search's own default page size)."
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "top/new/best mode only: the Hacker News item id."
          },
          "time": {
            "type": "number",
            "description": "top/new/best mode only: Unix timestamp (seconds) the story was posted."
          },
          "type": {
            "type": "string",
            "description": "'hn_story' for top/new/best mode, 'hn_hit' for search mode."
          },
          "score": {
            "type": "number",
            "description": "top/new/best mode only: current upvote score."
          },
          "title": {
            "type": "string"
          },
          "author": {
            "type": "string",
            "description": "The story submitter's Hacker News username."
          },
          "points": {
            "type": "number",
            "description": "search mode only: current upvote score."
          },
          "objectID": {
            "type": "string",
            "description": "search mode only: the Hacker News item id, as a string."
          },
          "createdAt": {
            "type": "string",
            "description": "search mode only: ISO 8601 timestamp the story was posted."
          },
          "descendants": {
            "type": "number",
            "description": "top/new/best mode only: total comment count (including nested replies)."
          },
          "numComments": {
            "type": "number",
            "description": "search mode only: total comment count (including nested replies)."
          }
        },
        "description": "top/new/best mode ('type': 'hn_story') carries id/score/descendants/time. search mode ('type': 'hn_hit') carries objectID/points/numComments/createdAt instead -- never observed mixed on one call.",
        "additionalProperties": true
      }
    }
  },
  "description": "The result. Same top-level shape (count + items) for every mode; the item shape itself differs by mode -- see items.",
  "additionalProperties": true
}