get_item

Pack: hackernews · Endpoint: https://gateway.pipeworx.io/hackernews/mcp

Fetch a Hacker News story or comment by ID (e.g., “42153809”). Returns full text, score, author, timestamp, and child replies.

Parameters

NameTypeRequiredDescription
idnumberyesThe numeric Hacker News item ID

Example call

Arguments

{
  "id": 42153809
}

curl

curl -X POST https://gateway.pipeworx.io/hackernews/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_item","arguments":{"id":42153809}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_item', {
  "id": 42153809
});

More examples

{
  "id": 38000000
}

Response shape

Always returns: id

FieldTypeDescription
idnumberHN item ID
typestringItem type (story, comment, etc.)
titlestringItem title
urlstringItem URL
bystringAuthor username
scorenumberItem score/points
descendantsnumberNumber of child comments
timenumberUnix timestamp of item posting
textstringItem text content
kidsarrayArray of child item IDs
parentnumberParent item ID
deadbooleanWhether item is dead/removed
deletedbooleanWhether item is deleted
Full JSON Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "description": "HN item ID"
    },
    "type": {
      "type": "string",
      "description": "Item type (story, comment, etc.)"
    },
    "title": {
      "type": "string",
      "description": "Item title"
    },
    "url": {
      "type": "string",
      "description": "Item URL"
    },
    "by": {
      "type": "string",
      "description": "Author username"
    },
    "score": {
      "type": "number",
      "description": "Item score/points"
    },
    "descendants": {
      "type": "number",
      "description": "Number of child comments"
    },
    "time": {
      "type": "number",
      "description": "Unix timestamp of item posting"
    },
    "text": {
      "type": "string",
      "description": "Item text content"
    },
    "kids": {
      "type": "array",
      "description": "Array of child item IDs",
      "items": {
        "type": "number"
      }
    },
    "parent": {
      "type": "number",
      "description": "Parent item ID"
    },
    "dead": {
      "type": "boolean",
      "description": "Whether item is dead/removed"
    },
    "deleted": {
      "type": "boolean",
      "description": "Whether item is deleted"
    }
  },
  "required": [
    "id"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "hackernews": {
      "url": "https://gateway.pipeworx.io/hackernews/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026