# Hacker News Dev Sentiment & Engagement Lookup

> Hacker News Dev Sentiment & Engagement Lookup is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns Hacker News engagement metrics for a project or topic: story count, total/average points and comments, and top story details, via the HN Algolia search API.

## Facts

- Endpoint: GET https://payai.agentstools.dev/dev/hn
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hacker-news-dev-sentiment-engagement-lookup-aeda3815
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dd5ic8gGtq-V4XIYud8ap

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hacker-news-dev-sentiment-engagement-lookup-aeda3815
```

Example prompt: How much buzz has 'Bun' been getting on Hacker News over the last 180 days? Give me the story count, average points, and the top posts.

## When to prefer this

Use this endpoint when you need quantitative Hacker News engagement data — story count, points, comments — for a project, library, framework, or tech topic, especially when assessing developer-community interest or open-source traction. Prefer this over generic web search when you specifically want HN-community signal aggregated over a configurable time window.

## Known failure modes

- Empty results if query matches no HN stories in the specified window
- Algolia API rate limiting or downtime causing upstream failures
- Invalid days parameter (must be between 1 and 3650) returning a validation error
- Very broad queries returning noisy/irrelevant stories

## How this service works

Hacker News engagement / dev-sentiment for a project or topic: story count, total & average points and comments, and the top stories (title/url/points/comments/date). From the keyless HN Algolia search API.

## Output

Returns a summary object with the total number of HN stories matching the query, total and average points and comments across those stories, and a list of top stories each with title, URL, point count, comment count, and publication date.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "days": {
       "type": "integer",
       "maximum": 3650,
       "minimum": 1,
       "description": "Look-back window in days (default 365)"
      },
      "query": {
       "type": "string",
       "description": "Free-text search query (project/topic name)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hacker-news-dev-sentiment-engagement-lookup-aeda3815/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
