扫描二维码即可赞赏支持
感谢您的支持,这将帮助我们提供更好的服务
接口地址:
https://apiserver.alcex.cn/daily-hot/hackernews
请求方式:
GET/POST
返回格式:
JSON
Curl请求示例:
curl -X GET 'https://apiserver.alcex.cn/daily-hot/hackernews'
请求参数:
查询参数(query_param):
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
cache | 否 | Bool | 为保证服务稳定性默认缓存1小时,可选择不缓存获取最新数据 |
limit | 否 | int | 由于部分榜单返回的数据量过多,特地添加了一个 limit 限制,你可以在请求的网址后面加上参数 limit=20 即可 |
rss | 是 | bool | 默认为false,新版本支持了 RSS 模式,就是可以在各大阅读器中直接阅读热榜数据了 |
返回参数:
名称 | 类型 | 说明 |
---|---|---|
code | int | 状态码 |
name | str | 名称 |
title | str | 标题 |
description | str | 介绍 |
link | str | 链接 |
total | int | 数据总数 |
updateTime | str | 更新时间 |
fromCache | Bool | 是否为缓存数据 |
data | json | 数据数组 |
状态码说明:
状态码 | 状态 | 说明 |
---|---|---|
200 | 成功 | 请求成功,返回正确的数据 |
400 | 请求错误 | 请求参数错误或缺失必要参数 |
401 | 未授权 | 缺少有效的身份验证凭据 |
403 | 禁止访问 | 服务器理解请求但拒绝执行 |
404 | 未找到 | 请求的资源不存在 |
429 | 请求过多 | 请求频率超过限制 |
500 | 服务器错误 | 服务器内部错误 |
502 | 网关错误 | 网关或代理服务器错误 |
503 | 服务不可用 | 服务器暂时无法处理请求 |
返回示例:
{
"code": 200,
"name": "hackernews",
"title": "Hacker News",
"type": "Popular",
"description": "News about hacking and startups",
"link": "https://news.ycombinator.com/",
"total": 30,
"fromCache": false,
"updateTime": "2025-08-15T23:21:40.457Z",
"data": [
{
"id": "44915164",
"title": "Show HN: Edka – Kubernetes clusters on your own Hetzner account",
"hot": 243,
"url": "https://edka.io",
"mobileUrl": "https://edka.io"
},
{
"id": "44916783",
"title": "The Future of Large Files in Git Is Git",
"hot": 80,
"url": "https://tylercipriani.com/blog/2025/08/15/git-lfs/",
"mobileUrl": "https://tylercipriani.com/blog/2025/08/15/git-lfs/"
},
{
"id": "44914061",
"title": "Occult books digitized and put online by Amsterdam’s Ritman Library",
"hot": 291,
"url": "https://www.openculture.com/2025/08/2178-occult-books-now-digitized-put-online.html",
"mobileUrl": "https://www.openculture.com/2025/08/2178-occult-books-now-digitized-put-online.html"
},
{
"id": "44917450",
"title": "TextKit 2 – The Promised Land",
"hot": 27,
"url": "https://blog.krzyzanowskim.com/2025/08/14/textkit-2-the-promised-land/",
"mobileUrl": "https://blog.krzyzanowskim.com/2025/08/14/textkit-2-the-promised-land/"
},
{
"id": "44910865",
"title": "I accidentally became PureGym’s unofficial Apple Wallet developer",
"hot": 54,
"url": "https://drobinin.com/posts/how-i-accidentally-became-puregyms-unofficial-apple-wallet-developer/",
"mobileUrl": "https://drobinin.com/posts/how-i-accidentally-became-puregyms-unofficial-apple-wallet-developer/"
},
{
"id": "44913359",
"title": "Do Things That Don't Scale (2013)",
"hot": 232,
"url": "https://paulgraham.com/ds.html",
"mobileUrl": "https://paulgraham.com/ds.html"
},
{
"id": "44915206",
"title": "Launch HN: Embedder (YC S25) – Claude code for embedded software",
"hot": 68,
"url": "item?id=44915206",
"mobileUrl": "item?id=44915206"
},
{
"id": "44915824",
"title": "OpenBSD is so fast, I had to modify the program slightly to measure itself",
"hot": 94,
"url": "https://flak.tedunangst.com/post/is-OpenBSD-10x-faster-than-Linux",
"mobileUrl": "https://flak.tedunangst.com/post/is-OpenBSD-10x-faster-than-Linux"
},
{
"id": "44916813",
"title": "Claude Opus 4 and 4.1 can now end a rare subset of conversations",
"hot": 132,
"url": "https://www.anthropic.com/research/end-subset-conversations",
"mobileUrl": "https://www.anthropic.com/research/end-subset-conversations"
},
{
"id": "44917835",
"title": "California unemployment rises to 5.5%, worst in the U.S. as tech falters",
"hot": 33,
"url": "https://www.sfchronicle.com/california/article/unemployment-rate-rises-tech-20819276.php",
"mobileUrl": "https://www.sfchronicle.com/california/article/unemployment-rate-rises-tech-20819276.php"
},
{
"id": "44917308",
"title": "US F-16s lose out as Thai Air Force seals US$600M deal for Swedish Gripen jets",
"hot": 92,
"url": "https://www.scmp.com/news/asia/southeast-asia/article/3320828/us-f-16s-lose-out-thai-air-force-seals-us600-million-deal-swedish-gripen-jets",
"mobileUrl": "https://www.scmp.com/news/asia/southeast-asia/article/3320828/us-f-16s-lose-out-thai-air-force-seals-us600-million-deal-swedish-gripen-jets"
},
{
"id": "44907358",
"title": "A mind–reading brain implant that comes with password protection",
"hot": 15,
"url": "https://www.nature.com/articles/d41586-025-02589-5",
"mobileUrl": "https://www.nature.com/articles/d41586-025-02589-5"
},
{
"id": "44913081",
"title": "Model intelligence is no longer the constraint for automation",
"hot": 10,
"url": "https://latentintent.substack.com/p/model-intelligence-is-no-longer-the",
"mobileUrl": "https://latentintent.substack.com/p/model-intelligence-is-no-longer-the"
},
{
"id": "44912861",
"title": "ADHD drug treatment and risk of negative events and outcomes",
"hot": 124,
"url": "https://www.bmj.com/content/390/bmj-2024-083658",
"mobileUrl": "https://www.bmj.com/content/390/bmj-2024-083658"
},
{
"id": "44914149",
"title": "Bullfrog in the Dungeon",
"hot": 78,
"url": "https://www.filfre.net/2025/08/bullfrog-in-the-dungeon/",
"mobileUrl": "https://www.filfre.net/2025/08/bullfrog-in-the-dungeon/"
},
{
"id": "44872522",
"title": "'Constantine Cavafy' Review: A Poet's Odyssey Within",
"hot": 5,
"url": "https://www.wsj.com/arts-culture/books/constantine-cavafy-review-a-poets-odyssey-within-1e341d7c",
"mobileUrl": "https://www.wsj.com/arts-culture/books/constantine-cavafy-review-a-poets-odyssey-within-1e341d7c"
},
{
"id": "44872584",
"title": "Compiler Bug Causes Compiler Bug: How a 12-Year-Old G++ Bug Took Down Solidity",
"hot": 101,
"url": "https://osec.io/blog/2025-08-11-compiler-bug-causes-compiler-bug/",
"mobileUrl": "https://osec.io/blog/2025-08-11-compiler-bug-causes-compiler-bug/"
},
{
"id": "44914771",
"title": "EasyPost (YC S13) Is Hiring",
"url": "https://www.easypost.com/careers",
"mobileUrl": "https://www.easypost.com/careers"
},
{
"id": "44888548",
"title": "Show HN: Prime Number Grid Visualizer",
"hot": 40,
"url": "https://enda.sh/primegrid/",
"mobileUrl": "https://enda.sh/primegrid/"
},
{
"id": "44911423",
"title": "Open hardware desktop 3D printing is dead?",
"hot": 610,
"url": "https://www.josefprusa.com/articles/open-hardware-in-3d-printing-is-dead/",
"mobileUrl": "https://www.josefprusa.com/articles/open-hardware-in-3d-printing-is-dead/"
},
{
"id": "44911560",
"title": "Vaultwarden commit introduces SSO using OpenID Connect",
"hot": 138,
"url": "https://github.com/dani-garcia/vaultwarden/pull/3899",
"mobileUrl": "https://github.com/dani-garcia/vaultwarden/pull/3899"
},
{
"id": "44876346",
"title": "ARM adds neural accelerators to GPUs",
"hot": 121,
"url": "https://newsroom.arm.com/news/arm-announces-arm-neural-technology",
"mobileUrl": "https://newsroom.arm.com/news/arm-announces-arm-neural-technology"
},
{
"id": "44916900",
"title": "Porting Gigabyte MZ33-AR1 Server Board with AMD Turin CPU to Coreboot",
"hot": 9,
"url": "https://blog.3mdeb.com/2025/2025-08-07-gigabyte_mz33_ar1_part1/",
"mobileUrl": "https://blog.3mdeb.com/2025/2025-08-07-gigabyte_mz33_ar1_part1/"
},
{
"id": "44914040",
"title": "I let LLMs write an Elixir NIF in C; it mostly worked",
"hot": 46,
"url": "https://overbring.com/blog/2025-08-13-writing-an-elixir-nif-with-genai/",
"mobileUrl": "https://overbring.com/blog/2025-08-13-writing-an-elixir-nif-with-genai/"
},
{
"id": "44911941",
"title": "Is air travel getting worse?",
"hot": 72,
"url": "https://www.maximum-progress.com/p/is-air-travel-getting-worse",
"mobileUrl": "https://www.maximum-progress.com/p/is-air-travel-getting-worse"
},
{
"id": "44915220",
"title": "Show HN: JMAP MCP – Email for your agents",
"hot": 35,
"url": "https://github.com/wyattjoh/jmap-mcp",
"mobileUrl": "https://github.com/wyattjoh/jmap-mcp"
},
{
"id": "44915187",
"title": "Imagen 4 is now generally available",
"hot": 146,
"url": "https://developers.googleblog.com/en/announcing-imagen-4-fast-and-imagen-4-family-generally-available-in-the-gemini-api/",
"mobileUrl": "https://developers.googleblog.com/en/announcing-imagen-4-fast-and-imagen-4-family-generally-available-in-the-gemini-api/"
},
{
"id": "44911412",
"title": "When the CIA got away with building a heart attack gun",
"hot": 91,
"url": "https://wisewolfmedia.substack.com/p/the-investigation-that-should-have",
"mobileUrl": "https://wisewolfmedia.substack.com/p/the-investigation-that-should-have"
},
{
"id": "44913663",
"title": "The electric fence stopped working years ago",
"hot": 168,
"url": "https://soonly.com/electric-fences/",
"mobileUrl": "https://soonly.com/electric-fences/"
},
{
"id": "44912727",
"title": "An interactive guide to sensor fusion with quaternions",
"hot": 48,
"url": "https://quaternion.cafe/",
"mobileUrl": "https://quaternion.cafe/"
}
]
}
错误返回示例:
{
"code": 400,
"error": "请求参数验证失败",
"message": "请求参数缺失或无效,请查看官网文档以解决此问题:https://api.alcex.cn/",
"details": [
"query.id: Field required"
],
"timestamp": 1755182973,
"request_id": "21646ea2a01c461298cdbdbdb3f3a663"
}
{
"code": 404,
"error": "HTTP错误",
"message": "Not Found",
"timestamp": 1755182878,
"request_id": "9ddc3b08d6724e4eafc2b4e2c1f24190"
}
{
"code": 500,
"error": "请求错误",
"message": "请求处理过程中发生错误,请检查请求参数是否正确",
"timestamp": 1755182846,
"request_id": "1cb82ff6aac5482caeac1999df66dccb"
}
多语言代码示例:
正在生成代码示例...
提示:在线测试可能无法正常返回数据,建议使用专业工具测试。
使用专业的API调试工具进行更详细的测试