Install
openclaw skills install @zhheo/zhheo-blog-tools通过 HTTP API 访问张洪Heo博客:全文搜索、热门文章、归档浏览、标签分类、 页面发现、友链查询、读文摘要。触发词:张洪Heo、博客、博主、张洪、Heo。
openclaw skills install @zhheo/zhheo-blog-tools通过 HTTP API 访问张洪Heo博客(https://blog.zhheo.com),无需打开浏览器。
触发词:张洪Heo、博客、博主、张洪、Heo
基础 URL:https://blog.zhheo.com
| 用户意图 | 调用方式 |
|---|---|
| 搜索文章 | GET /api/search/search.php?q=关键词 |
| 今日/本月/年度热门 | GET /api/umami/hot.php?period=day|month|year(需 Referer) |
| 某年文章 / 最新文章 | GET /api/archives/posts.php |
| 按分类/标签推荐 | tags.json / categories.json + search.php 或 archives 筛选 |
| 博主装备 | web_fetch /equipment/ |
| 博主项目 | search.php?q=我的项目 或 archives 筛选分类 |
| 友链查询 | GET /api/friendlink/friendlink.json 本地搜索 |
| 站点页面(关于/订阅/友链) | GET /api/pages.json |
| 读某篇文章 | search → web_fetch 正文 |
| 订阅更新 | GET /rss.xml |
GET /api/search/search.php?q=关键词&limit=10&page=1
limit:1–50,默认 10;page:页码,默认 1分级相关度(服务端内置):
响应示例:
{
"success": true,
"hits": [
{ "title": "文章标题", "path": "p/xxx.html", "cover": "https://...", "score": 65 }
],
"total": 42,
"query": "关键词",
"page": 1,
"limit": 10
}
完整 URL 拼接:https://blog.zhheo.com/ + path
curl 示例:
curl -s 'https://blog.zhheo.com/api/search/search.php?q=OpenClaw&limit=5'
GET /api/archives/posts.php?year=2026&limit=10&page=1
GET /api/archives/posts.php?meta=years
| 参数 | 说明 |
|---|---|
year | all 或具体年份如 2026,默认 all |
limit | 1–60,默认 24 |
page | 页码,默认 1 |
meta=years | 返回年份统计,不含文章列表 |
文章列表响应:
{
"success": true,
"year": "2026",
"page": 1,
"limit": 10,
"total": 150,
"items": [
{
"title": "...",
"url": "https://blog.zhheo.com/p/xxx.html",
"cover": "https://...",
"year": "2026",
"date": "2026-07-28",
"dateLabel": "2026年7月28日",
"categories": ["设计"],
"primaryCategory": "设计"
}
]
}
GET /api/umami/hot.php?period=day&limit=10
| 参数 | 说明 |
|---|---|
period | day(当日)、month(最近一个月)、year(最近一年),默认 day |
limit | 1–60,默认 60 |
必须携带 Referer 头,否则返回 403:
Referer: https://blog.zhheo.com/
curl 示例:
curl -s -H 'Referer: https://blog.zhheo.com/' \
'https://blog.zhheo.com/api/umami/hot.php?period=day&limit=5'
标签: GET /api/tags.json
分类: GET /api/categories.json
非文章页面: GET /api/pages.json
常用页面:/about/、/link/、/equipment/、/rss/、/skill/、/hot/、/must-read/
GET /api/friendlink/friendlink.json
在返回数据的 link_list[].name 中按关键词本地过滤。
search.php 或 archives/posts.php 获取文章 path / urlweb_fetch 或 curl 获取页面 HTML#article-container → #post-body → #content-inner → articleGET /rss.xml
建议每日检查一次,监控最新文章。
GET /api/search/search.php?q=关键词&limit=5hits 中的 title 和完整 URL(https://blog.zhheo.com/ + path)web_fetch 文章页面GET /api/umami/hot.php?period=day&limit=10,携带 Referer: https://blog.zhheo.com/items(含 title、url、visitors、cover)GET /api/tags.json 或 /api/categories.jsonGET /api/search/search.php?q=标签名&limit=5GET /api/archives/posts.php?year=all&limit=10&page=1search.php 或 archives 定位 URLweb_fetch 提取正文后回答web_fetch https://blog.zhheo.com/equipment/GET /api/search/search.php?q=我的项目&limit=10categories 含「我的项目」GET /api/friendlink/friendlink.json,按 name 过滤search.php/api/umami/hot.php 必须带 Referer: https://blog.zhheo.com/