Ahrefs Automation by composiohq/awesome-claude-skills
npx skills add https://github.com/composiohq/awesome-claude-skills --skill 'Ahrefs Automation'直接在 Claude Code 中运行 Ahrefs SEO 分析。分析外链档案、研究关键词、跟踪域名权威随时间的变化、审核自然关键词排名,并批量分析多个 URL,无需离开终端。
工具包文档: composio.dev/toolkits/ahrefs
将 Composio MCP 服务器添加到您的配置中:
https://rube.app/mcp
在提示时连接您的 Ahrefs 账户。代理将提供一个身份验证链接。
大多数工具需要一个 target(域名或 URL)和一个 country 代码(ISO 3166-1 alpha-2)。有些还需要一个 date,格式为 YYYY-MM-DD。
获取域名的全面 SEO 指标,包括外链数量、引用域名、自然关键词排名和流量估算。
工具:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
AHREFS_RETRIEVE_SITE_EXPLORER_METRICS关键参数:
target (必需) -- 要分析的域名或 URLdate (必需) -- 指标日期,格式为 YYYY-MM-DDcountry -- ISO 国家代码(例如 us、gb、de)mode -- 范围:exact、prefix、domain 或 subdomains(默认)protocol -- both、http 或 httpsvolume_mode -- monthly 或 average示例提示:"获取 example.com 截至今日在美国的 Ahrefs 网站指标"
跟踪域名的 SEO 指标如何随时间变化,用于趋势分析和竞争基准测试。
工具: AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY, AHREFS_DOMAIN_RATING_HISTORY
获取完整指标历史:
target (必需) -- 要跟踪的域名date_from (必需) -- 开始日期,格式为 YYYY-MM-DDdate_to -- 结束日期history_grouping -- daily、weekly 或 monthly(默认)select -- 列名,如 date,org_cost,org_traffic,paid_cost,paid_traffic获取域名评级 (DR) 历史:
target (必需), date_from (必需), date_to, history_grouping示例提示:"显示 example.com 过去一年的月度域名评级历史"
获取全面的外链列表,包括来源 URL、锚文本、链接属性和引用域名指标。
工具: AHREFS_FETCH_ALL_BACKLINKS
关键参数:
target (必需) -- 域名或 URLselect (必需) -- 逗号分隔的列(例如 url_from,url_to,anchor,domain_rating_source,first_seen_link)limit (默认 1000) -- 结果数量aggregation -- similar_links(默认)、1_per_domain 或 allmode -- exact、prefix、domain 或 subdomainshistory -- live、since:YYYY-MM-DD 或 all_timewhere -- 对列(如 is_dofollow、domain_rating_source、anchor)的丰富筛选表达式示例提示:"获取 example.com 的前 100 个 dofollow 外链,包含锚文本和引用 DR"
获取关键词概览指标,并发现匹配的关键词变体,用于内容策略。
工具: AHREFS_EXPLORE_KEYWORDS_OVERVIEW, AHREFS_EXPLORE_MATCHING_TERMS_FOR_KEYWORDS
获取关键词概览:
select (必需) -- 要返回的列(搜索量、难度、CPC 等)country (必需) -- ISO 国家代码keywords -- 逗号分隔的关键词列表where -- 按搜索量、难度、意图等筛选获取匹配术语:
select (必需) 和 country (必需)keywords -- 逗号分隔的种子关键词match_mode -- terms(任意顺序)或 phrase(精确顺序)terms -- all 或 questions(仅限问题格式关键词)示例提示:"查找 'project management' 在美国的搜索量和难度相关的关键词变体"
查看域名在自然搜索中为哪些关键词排名,包括位置跟踪和历史比较。
工具: AHREFS_RETRIEVE_ORGANIC_KEYWORDS
关键参数:
target (必需) -- 域名或 URLcountry (必需) -- ISO 国家代码date (必需) -- 日期,格式为 YYYY-MM-DDselect -- 要返回的列(关键词、排名、搜索量、流量、URL 等)date_compared -- 与先前日期比较where -- 对 keyword、volume、best_position、意图标志等的丰富筛选表达式limit (默认 1000), order_by示例提示:"显示 example.com 在美国排名前 10 的所有自然关键词"
同时分析最多 100 个 URL 或域名,以比较竞争对手或网站各部分的 SEO 指标。
工具: AHREFS_BATCH_URL_ANALYSIS
关键参数:
targets (必需) -- 对象数组,包含 url、mode (exact/prefix/domain/subdomains) 和 protocol (both/http/https)select (必需) -- 列标识符数组country -- ISO 国家代码output -- json 或 php示例提示:"比较 competitor1.com、competitor2.com 和 competitor3.com 的 SEO 指标"
select 参数来指定要返回哪些列。省略它或使用无效的列名将导致错误。请参考每个工具的响应模式以获取有效的标识符。YYYY-MM-DD 格式。某些历史端点返回的数据粒度由 history_grouping 设置,而非精确日期。traffic、refdomains_source 或 difficulty)时,请监控 API 使用情况。AHREFS_BATCH_URL_ANALYSIS 每个请求最多接受 100 个目标。对于更大的分析,请拆分成多个批次。where 参数使用 Ahrefs 的筛选表达式语法,而非标准 SQL。请查阅每个工具模式中的列描述,以了解支持的筛选类型和值格式。offset 参数已于 2024 年 5 月 31 日弃用。请改用基于游标的分页或调整 limit。mode 设置为 subdomains(默认)会包含所有子域名,与 domain 或 exact 相比,这会显著增加结果数量。| 工具标识 | 描述 |
|---|---|
AHREFS_RETRIEVE_SITE_EXPLORER_METRICS | 域名/URL 的当前 SEO 指标 |
AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY | 随时间变化的 SEO 指标历史 |
AHREFS_DOMAIN_RATING_HISTORY | 域名评级 (DR) 历史 |
AHREFS_FETCH_ALL_BACKLINKS | 带筛选功能的全面外链列表 |
AHREFS_FETCH_SITE_EXPLORER_REFERRING_DOMAINS | 引用域名列表 |
AHREFS_GET_SITE_EXPLORER_COUNTRY_METRICS | 国家/地区级别的流量细分 |
AHREFS_BATCH_URL_ANALYSIS | 最多 100 个 URL 的批量分析 |
AHREFS_EXPLORE_KEYWORDS_OVERVIEW | 关键词指标概览 |
AHREFS_EXPLORE_MATCHING_TERMS_FOR_KEYWORDS | 匹配的关键词变体 |
AHREFS_EXPLORE_KEYWORD_VOLUME_BY_COUNTRY | 跨国家/地区的关键词搜索量 |
AHREFS_RETRIEVE_ORGANIC_KEYWORDS | 域名的自然关键词排名 |
AHREFS_RETRIEVE_SITE_EXPLORER_KEYWORDS_HISTORY | 历史关键词排名数据 |
AHREFS_RETRIEVE_TOP_PAGES_FROM_SITE_EXPLORER | 按 SEO 指标排名的顶级页面 |
AHREFS_GET_SERP_OVERVIEW | 特定关键词的 SERP 概览 |
由 Composio 提供支持
每周安装
0
代码库
GitHub 星标
42.3K
首次出现
1970年1月1日
安全审计
Run Ahrefs SEO analytics directly from Claude Code. Analyze backlink profiles, research keywords, track domain authority over time, audit organic keyword rankings, and batch-analyze multiple URLs without leaving your terminal.
Toolkit docs: composio.dev/toolkits/ahrefs
Add the Composio MCP server to your configuration:
https://rube.app/mcp
Connect your Ahrefs account when prompted. The agent will provide an authentication link.
Most tools require a target (domain or URL) and a country code (ISO 3166-1 alpha-2). Some also require a date in YYYY-MM-DD format.
Retrieve comprehensive SEO metrics for a domain including backlink counts, referring domains, organic keyword rankings, and traffic estimates.
Tool: AHREFS_RETRIEVE_SITE_EXPLORER_METRICS
Key parameters:
target (required) -- domain or URL to analyzedate (required) -- metrics date in YYYY-MM-DD formatcountry -- ISO country code (e.g., us, gb, de)mode -- scope: exact, prefix, domain, or (default)Example prompt: "Get Ahrefs site metrics for example.com as of today in the US"
Track how a domain's SEO metrics have changed over time for trend analysis and competitive benchmarking.
Tools: AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY, AHREFS_DOMAIN_RATING_HISTORY
For full metrics history:
target (required) -- domain to trackdate_from (required) -- start date in YYYY-MM-DDdate_to -- end datehistory_grouping -- daily, weekly, or monthly (default)select -- columns like date,org_cost,org_traffic,paid_cost,paid_trafficFor Domain Rating (DR) history:
target (required), date_from (required), date_to, history_groupingExample prompt: "Show me the monthly Domain Rating history for example.com over the last year"
Retrieve a comprehensive list of backlinks including source URLs, anchor text, link attributes, and referring domain metrics.
Tool: AHREFS_FETCH_ALL_BACKLINKS
Key parameters:
target (required) -- domain or URLselect (required) -- comma-separated columns (e.g., url_from,url_to,anchor,domain_rating_source,first_seen_link)limit (default 1000) -- number of resultsaggregation -- similar_links (default), 1_per_domain, or allmode -- exact, prefix, , or Example prompt: "Get the top 100 dofollow backlinks to example.com with anchor text and referring DR"
Get keyword overview metrics and discover matching keyword variations for content strategy.
Tools: AHREFS_EXPLORE_KEYWORDS_OVERVIEW, AHREFS_EXPLORE_MATCHING_TERMS_FOR_KEYWORDS
For keyword overview:
select (required) -- columns to return (volume, difficulty, CPC, etc.)country (required) -- ISO country codekeywords -- comma-separated keyword listwhere -- filter by volume, difficulty, intent, etc.For matching terms:
select (required) and country (required)keywords -- comma-separated seed keywordsmatch_mode -- terms (any order) or phrase (exact order)terms -- all or questions (question-format keywords only)Example prompt: "Find keyword variations for 'project management' in the US with volume and difficulty"
See which keywords a domain ranks for in organic search, with position tracking and historical comparison.
Tool: AHREFS_RETRIEVE_ORGANIC_KEYWORDS
Key parameters:
target (required) -- domain or URLcountry (required) -- ISO country codedate (required) -- date in YYYY-MM-DDselect -- columns to return (keyword, position, volume, traffic, URL, etc.)date_compared -- compare against a previous datewhere -- rich filter expressions on keyword, volume, best_position, intent flags, etc.Example prompt: "Show all organic keywords where example.com ranks in the top 10 in the US"
Analyze up to 100 URLs or domains simultaneously to compare SEO metrics across competitors or site sections.
Tool: AHREFS_BATCH_URL_ANALYSIS
Key parameters:
targets (required) -- array of objects with url, mode (exact/prefix/domain/subdomains), and protocol (both/http/https)select (required) -- array of column identifiersExample prompt: "Compare SEO metrics for competitor1.com, competitor2.com, and competitor3.com"
select parameter specifying which columns to return. Omitting it or using invalid column names will cause errors. Refer to each tool's response schema for valid identifiers.YYYY-MM-DD format. Some historical endpoints return data at the granularity set by history_grouping, not by exact date.traffic, refdomains_source, or difficulty.AHREFS_BATCH_URL_ANALYSIS accepts up to 100 targets per request. For larger analyses, split into multiple batches.| Tool Slug | Description |
|---|---|
AHREFS_RETRIEVE_SITE_EXPLORER_METRICS | Current SEO metrics for a domain/URL |
AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY | Historical SEO metrics over time |
AHREFS_DOMAIN_RATING_HISTORY | Domain Rating (DR) history |
AHREFS_FETCH_ALL_BACKLINKS | Comprehensive backlink list with filtering |
AHREFS_FETCH_SITE_EXPLORER_REFERRING_DOMAINS | List of referring domains |
AHREFS_GET_SITE_EXPLORER_COUNTRY_METRICS |
Powered byComposio
Weekly Installs
0
Repository
GitHub Stars
42.3K
First Seen
Jan 1, 1970
Security Audits
Python PDF处理教程:合并拆分、提取文本表格、创建PDF文件
55,400 周安装
subdomainsprotocol -- both, http, or httpsvolume_mode -- monthly or averagedomainsubdomainshistory -- live, since:YYYY-MM-DD, or all_timewhere -- rich filter expressions on columns like is_dofollow, domain_rating_source, anchorlimit (default 1000), order_bycountry -- ISO country codeoutput -- json or phpwhereoffset parameter was deprecated on May 31, 2024. Use cursor-based pagination or adjust limit instead.mode to subdomains (the default) includes all subdomains, which can dramatically increase result counts compared to domain or exact.| Country-level traffic breakdown |
AHREFS_BATCH_URL_ANALYSIS | Batch analysis of up to 100 URLs |
AHREFS_EXPLORE_KEYWORDS_OVERVIEW | Keyword metrics overview |
AHREFS_EXPLORE_MATCHING_TERMS_FOR_KEYWORDS | Matching keyword variations |
AHREFS_EXPLORE_KEYWORD_VOLUME_BY_COUNTRY | Keyword volume across countries |
AHREFS_RETRIEVE_ORGANIC_KEYWORDS | Organic keyword rankings for a domain |
AHREFS_RETRIEVE_SITE_EXPLORER_KEYWORDS_HISTORY | Historical keyword ranking data |
AHREFS_RETRIEVE_TOP_PAGES_FROM_SITE_EXPLORER | Top performing pages by SEO metrics |
AHREFS_GET_SERP_OVERVIEW | SERP overview for specific keywords |