SuperAPI AI 工具集

pp-ahrefs

编程与开发

查看项目

更新于 10-16 09:59

技能介绍

用途:pp-ahrefs 是一个驱动 ahrefs-pp-cli 二进制的只读命令行技能,封装 Ahrefs 的 SEO 与竞品情报 API,用于查询外链、关键词、排名跟踪、站点审计与 SERP 数据。

主要能力:命令分为 keywords-explorer(匹配词、概览、相关词、搜索建议、按国家搜索量、搜索量历史)、public(爬虫 IP 段与 IP 列表)、rank-tracker(竞品概览、概览、SERP 概览)、serp-overview、site-audit(项目问题、页面内容、页面浏览器、项目健康分)、site-explorer(全部外链、外链统计、失效外链、域名评分及历史、指标及按国家指标、自然竞品、自然关键词、按流量分页面、引用域名历史、热门页面)、subscription-info(限额与用量)。

安装与验证:npx -y @mvanhorn/printing-press-library install ahrefs --cli-only;验证 ahrefs-pp-cli --version。若 npx 失败,可用 Go 1.26.6+ 执行 go install github.com/mvanhorn/printing-press-library/library/marketing/ahrefs/cmd/ahrefs-pp-cli@latest。需确保安装目录在 $PATH。

认证:设置环境变量 export AHREFS_API_KEY="<your-key>",或写入 ~/.config/ahrefs-pp-cli/config.toml;用 ahrefs-pp-cli doctor 验证。

使用方式:任意命令加 --agent(等价 --json --compact --no-input --no-color --yes);用 --select 精简字段,--dry-run 预览请求,--deliver 路由输出到 stdout、file:<path> 或 webhook:<url>;可用 profile save/list/show/delete 保存命名配置;输出包裹在含 meta 与 results 的信封中。可用 ahrefs-pp-cli which "<自然语言能力>" 找命令。MCP 安装:go install ...ahrefs-pp-mcp@latest,并 claude mcp add ahrefs-pp-mcp -- ahrefs-pp-mcp。

限制:仅只读,不支持创建、更新、删除、发布、评论、点赞、邀请、下单、发送消息等改变远端状态的操作。退出码含义如 3 资源未找到、4 需认证、5 API 错误、7 限流。反馈默认仅本地存储于 ~/.ahrefs-pp-cli/feedback.jsonl。