Hive Intelligence

Connect AI Agents to
Hive Intelligence

Automate workflows and connect AI agents to Hive Intelligence. Metorial is built for developers. Handling OAuth, compliance, observability, and more.

Back to Hive Intelligence overview

Querying Specific Items by ID

Understanding Item IDs

Every piece of content on Hacker News—whether it's a story, comment, poll, or job posting—has a unique numerical identifier called an item ID. These IDs are assigned sequentially as content is created, making them stable references that won't change over time. When you need to retrieve specific content directly, querying by item ID is the most precise and efficient method available.

When to Use ID-Based Queries

ID-based queries are ideal when you already know exactly what you're looking for. Perhaps you've previously retrieved a list of top stories and now want detailed information about a specific one. Maybe you've found an interesting comment and want to explore its entire thread. Or you might be tracking a particular submission over time to monitor how its score and discussion evolve. In these scenarios, querying by ID gives you direct access without needing to search or filter through lists.

How to Query by Item ID

To retrieve a specific item, simply provide its numerical ID to the server. You can make natural language requests like "Get Hacker News item 38679345" or "Show me details for item 38680123." The server will fetch the complete data for that item, including all available metadata.

The information returned depends on the item type. For stories, you'll receive the title, URL, author, score, submission time, and the list of comment IDs associated with it. For comments, you'll get the comment text, author, timestamp, and references to both parent and child comments, allowing you to navigate the discussion tree.

Finding Item IDs

Item IDs appear in several places throughout your interactions with Hacker News data. When you retrieve lists of top or new stories, each result includes its item ID. Comment threads contain IDs for each comment. User profiles show IDs for all submissions and comments that user has made. You can also find item IDs in Hacker News URLs—they appear after "id=" in the web address.

Practical Applications

Querying by ID enables powerful workflows. You can bookmark interesting discussions and return to them later to see how they've developed. You can build systems that monitor specific submissions, tracking score changes and new comments over time. When analyzing user behavior, you can retrieve every item a user has submitted or commented on by querying their profile first, then fetching each item individually.

The direct nature of ID-based queries also makes them faster and more reliable than searching, since you're requesting exactly one known item rather than filtering through collections.

Hive Intelligence on Metorial

The Hive Intelligence integration lets you query threat intelligence data, analyze indicators of compromise, and enrich security investigations with collective threat information from the Hive Intelligence platform directly within your workflow.

Connect anything. Anywhere.

Ready to build with Metorial?

Let's take your AI-powered applications to the next level, together.

About Metorial

Metorial provides developers with instant access to 600+ MCP servers for building AI agents that can interact with real-world tools and services. Built on MCP, Metorial simplifies agent tool integration by offering pre-configured connections to popular platforms like Google Drive, Slack, GitHub, Notion, and hundreds of other APIs. Our platform supports all major AI agent frameworks—including LangChain, AutoGen, CrewAI, and LangGraph—enabling developers to add tool calling capabilities to their agents in just a few lines of code. By eliminating the need for custom integration code, Metorial helps AI developers move from prototype to production faster while maintaining security and reliability. Whether you're building autonomous research agents, customer service bots, or workflow automation tools, Metorial's MCP server library provides the integrations you need to connect your agents to the real world.

Star us on GitHub