开发者 API
JSON · UTF-8 · CORS每次生成简报都会同步输出静态 JSON 接口,托管在 GitHub Pages,无需鉴权,支持跨域(Access-Control-Allow-Origin: *)。
接口
GEThttps://news.waif.space/api/latest.json最新一期(完整内容)GEThttps://news.waif.space/api/index.json所有期数列表,新→旧GEThttps://news.waif.space/api/briefs/2026-11-01.json指定日期的一期:api/briefs/YYYY-MM-DD.jsonGEThttps://news.waif.space/api/search.json全站搜索索引:所有期的所有条目(日期、板块、标题、摘要、来源、条目链接)
板块 id
tech_ai科技与 AIfinance财经与市场world国际新闻cloud_vps云服务器 · VPS · 网络x_trendingX 热点hacker_newsHacker Newscn_social中文社媒热搜
x_trending 子板块:general 综合热门 / zh_ai 中文 AI 热点 / en_ai 英文 AI 热点;
cn_social 子板块:weibo / xiaohongshu / zhihu / douyin / bilibili / general(全网或跨平台,只输出当天有内容的平台)。
数据结构
{
"date": "2026-11-01", "issue": 1, "title": "每日简报 · 2026年11月1日",
"generated_at": "2026-11-01T08:00:00+08:00", "highlight": "今日要点…",
"url": "…/archive/2026-11-01.html", "json_url": "…/api/briefs/2026-11-01.json",
"item_count": 33,
"sections": [
{ "id": "tech_ai", "name": "科技与 AI", "item_count": 5,
"items": [ { "title": "…", "summary": "…",
"id": "2026-11-01-tech_ai-1", "url": "…/archive/2026-11-01.html#2026-11-01-tech_ai-1",
"sources": [{"name": "CNBC", "url": "https://…"}],
"tags": [], "mentions": ["DonghaoHm"], "rank": 1 } ] },
{ "id": "x_trending", "name": "X 热点",
"subsections": [ { "id": "zh_ai", "name": "中文圈 AI", "items": [ … ] } ] }
]
}
rank 只出现在榜单类板块(hacker_news、cn_social);tags、mentions(条目里提到的 X 账号,不带 @)可能为空数组。
每个条目的 id 形如 日期-板块-序号,同时是网页里的锚点,可直接链接到该条。
api/search.json 结构:{"count": N, "items": [{"id", "date", "section", "section_name", "subsection?", "subsection_name?", "title", "summary", "sources", "mentions", "url"}]},url 为相对站点根目录的路径。网页搜索:search.html?q=关键词。
示例
curl -s https://news.waif.space/api/latest.json | jq '.sections[].name'
fetch("https://news.waif.space/api/latest.json").then(r => r.json()).then(d => console.log(d.highlight))