[
{
"storyId": 41650000,
"title": "Show HN: SQLite in the Browser with WebAssembly and OPFS",
"author": "dang",
"score": 340,
"commentsCount": 142,
"url": "https://news.ycombinator.com/item?id=41650000",
"publishedAt": "2026-10-12T07:12:34.130Z"
},
{
"storyId": 41650001,
"title": "PostgreSQL 17 Released",
"author": "swyx",
"score": 385,
"commentsCount": 160,
"url": "https://news.ycombinator.com/item?id=41650001",
"publishedAt": "2026-10-12T07:12:34.130Z"
},
{
"storyId": 41650002,
"title": "Why Clean Code is Hard",
"author": "tptacek",
"score": 430,
"commentsCount": 178,
"url": "https://news.ycombinator.com/item?id=41650002",
"publishedAt": "2026-10-12T07:12:34.130Z"
},
{
"storyId": 41650003,
"title": "Building High-Performance APIs in Rust",
"author": "simonw",
"score": 475,
"commentsCount": 196,
"url": "https://news.ycombinator.com/item?id=41650003",
"publishedAt": "2026-10-12T07:12:34.130Z"
},
{
"storyId": 41650004,
"title": "Show HN: SQLite in the Browser with WebAssembly and OPFS",
"author": "dang",
"score": 520,
"commentsCount": 214,
"url": "https://news.ycombinator.com/item?id=41650004",
"publishedAt": "2026-10-12T07:12:34.130Z"
}
]
curl --location --request POST 'https://zylalabs.com/api/14165/hacker+news+top+stories+and+discussions+extractor+api/35209/execute+hacker+news+top+stories+and+discussions+extractor+api' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"storyType":"top","maxStories":30}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 黑客新闻热门故事和讨论提取器 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
使用Firebase API提取热门故事、新提交、Ask HN和Show HN讨论,包括点赞、作者用户名、时间戳、评论数和链接
该端点返回来自Hacker News的热门故事和讨论的结构化列表,包括标题、作者、得分、评论数量和发布时间戳
响应中的关键字段包括 `storyId` `title` `author` `score` `commentsCount` `url` 和 `publishedAt` 提供有关每个故事的基本信息
响应数据被组织为一个对象数组,其中每个对象代表一个故事及其相关字段,便于解析和集成到应用程序中
该端点提供关于热门故事、新提交、Ask HN和Show HN讨论的信息,涵盖与科技社区相关的广泛主题
典型的用例包括将热门故事整合到新闻聚合器中 增强分析平台 并为个人项目或应用程序提供实时更新
用户可以通过指定参数来定制他们的请求,例如故事类型(热门故事、新提交)以根据他们的需求过滤数据
数据来源于黑客新闻,利用其公开可用的信息以确保对讨论和故事的全面且最新的表示
数据的准确性通过直接从Hacker News提取来维护,这是一个信誉良好的平台,确保信息反映最新的讨论和社区参与