Search public Hacker News stories using the HN Algolia search API
概览
Hacker News Trends
Search Hacker News stories and calculate engagement velocity。每条结果对应一条公开记录,适合研究和监测。
数据说明
数据以采集时的公开来源为准;缺失字段不会填造。
结果示例
主要字段:storyId, title, url, author, points, comments, pointsPerHour, engagementTier。
适用场景
适合公开数据分析和定期观察。
输入参数
调用本 Data App 需要传入的参数。
- Keyword
query必填stringSearch phrase示例python - Maximum stories
max_items选填integerMaximum results范围1–100默认值20示例20
输出数据
单条记录的字段结构。
- storyId
storyIdstringstoryId from the public source - title
titlestringtitle from the public source - url
urlstringurl from the public source - author
authorstringauthor from the public source
价格
Record
按实际成功返回的数据条数计费,任务失败不计费。
¥0.001/ 条
多个计费事件按各自口径独立累计,具体以每一项说明为准;任务失败不计费。
立即运行
用你填写的参数真实运行一次,按价格计费。
填写输入参数
调用方式
通过 MCP 可在 Claude、Cursor 等 AI 客户端中直接调用本 Data App。
已接入八爪鱼 Data Hub?直接在对话里用
不用再配置。复制下面这句话发给你的 AI,在后面接着写你要做的事:
用 “4weeniik/hacker-news-trends” 这个 Data App,帮我:这里写你想要用这个 Data App 做的事情。
还没接入过?用下面任一方式配置一次,之后所有 Data App 都能直接用。
客户端配置
把 YOUR_API_KEY 替换为你自己的 API Key 即可,各类客户端与 CI、无浏览器环境通用。获取 API Key →
mcpServers 配置
{
"mcpServers": {
"bazhuayu_datahub": {
"type": "http",
"url": "https://mcp-v2.bazhuayu.com",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}让 AI 自己完成配置
不想手动改配置?复制配置提示词,粘贴到任意 AI 客户端对话框,由它按自身方式完成接入(默认引导你登录授权,不会让你把 API Key 发在对话里)。
注意事项
适用边界
Public data only, bounded to 50 records per run
不适用
- Private or login-only data is needed
运行与取消
本应用异步运行,可以中途取消;取消前已返回的结果保留,照常计费。
失败处理
通过 MCP 接入时,AI 会自动读到以下说明;通过 API 或 SDK 接入时,请在代码里按此处理。
- 1Blocked access or missing required business fields fails the run; no CAPTCHA solving
常见问题
¥0.001 / 条