Community研究與資料分析github.com

ComposioHQ/Ahrefs-Automation

透過 Composio 的 Ahrefs 整合,自動化 SEO 研究,包括分析反向連結、研究關鍵字、追蹤網域指標歷史、審查自然排名以及批次 URL 分析。

Ahrefs-Automation 是什麼?

這個技能讓您能直接在 Claude Code 中執行 Ahrefs SEO 分析,無需離開終端機。它整合了 Composio 的 Ahrefs 工具集,提供六大核心工作流程:網站總覽指標、歷史指標追蹤、反向連結分析、關鍵字研究、自然關鍵字審查以及批次 URL 分析。每個工作流程都透過專用的 Ahrefs API 工具實現,並支援豐富的過濾與排序參數。支援所有 Composio MCP 伺服器環境,設定方式為將 Composio MCP 伺服器加入設定後,透過驗證連結連結您的 Ahrefs 帳戶。使用時需注意大部分工具要求 `target`(網域或 URL)與 `country`(ISO 國家代碼),部分工具還需 `date`(YYYY-MM-DD 格式)。此外,`select` 參數為必要項,且不同欄位會消耗不同的 API 單位成本。

相容平台✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/ahrefs-automation

Installed? Explore more 研究與資料分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Ahrefs 自動化

直接在 Claude Code 中執行 Ahrefs SEO 分析。無需離開終端機,即可分析反向連結、研究關鍵字、追蹤網域權威歷史、審查自然關鍵字排名,以及批次分析多個 URL。

工具集文件: composio.dev/toolkits/ahrefs


設定

  1. 將 Composio MCP 伺服器加入您的設定:
    https://rube.app/mcp
    
  2. 當提示時,連結您的 Ahrefs 帳戶。代理程式會提供一個驗證連結。
  3. 大部分工具需要 target(網域或 URL)和 country 代碼(ISO 3166-1 alpha-2)。部分工具也需要 date,格式為 YYYY-MM-DD。

核心工作流程

1. 網站總覽指標

取得網域的完整 SEO 指標,包括反向連結數量、參照網域、自然關鍵字排名以及流量估算。

工具: AHREFS_RETRIEVE_SITE_EXPLORER_METRICS

主要參數:

  • target(必要)——要分析的網域或 URL
  • date(必要)——指標日期,格式為 YYYY-MM-DD
  • country——ISO 國家代碼(例如 us、gb、de)
  • mode——範圍:exact、prefix、domain 或 subdomains(預設)
  • protocol——both、http 或 https
  • volume_mode——monthly 或 average

範例提示:「取得 example.com 在美國今天的 Ahrefs 網站指標」


2. 歷史指標追蹤

追蹤網域 SEO 指標隨時間的變化,用於趨勢分析和競爭基準比較。

工具: AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY、AHREFS_DOMAIN_RATING_HISTORY

完整指標歷史:

  • target(必要)——要追蹤的網域
  • date_from(必要)——開始日期,格式為 YYYY-MM-DD
  • date_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 過去一年的每月網域評分歷史」


3. 反向連結分析

取得完整的反向連結清單,包括來源 URL、連結文字、連結屬性以及參照網域指標。

工具: AHREFS_FETCH_ALL_BACKLINKS

主要參數:

  • target(必要)——網域或 URL
  • select(必要)——以逗號分隔的欄位(例如 url_from,url_to,anchor,domain_rating_source,first_seen_link)
  • limit(預設 1000)——結果數量
  • aggregation——similar_links(預設)、1_per_domain 或 all
  • mode——exact、prefix、domain 或 subdomains
  • history——live、since:YYYY-MM-DD 或 all_time
  • where——對 is_dofollow、domain_rating_source、anchor 等欄位的豐富篩選表達式

範例提示:「取得 example.com 前 100 個 dofollow 反向連結,包含連結文字和參照 DR」


4. 關鍵字研究

取得關鍵字總覽指標,並發掘內容策略所需的相符關鍵字變體。

工具: 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(僅限問句格式的關鍵字)

範例提示:「在美國尋找與『專案管理』相關的關鍵字變體,並附帶流量和難度資料」


5. 自然關鍵字審查

查看網域在自然搜尋中的關鍵字排名,包含排名追蹤與歷史比較。

工具: AHREFS_RETRIEVE_ORGANIC_KEYWORDS

主要參數:

  • target(必要)——網域或 URL
  • country(必要)——ISO 國家代碼
  • date(必要)——日期,格式為 YYYY-MM-DD
  • select——要返回的欄位(關鍵字、排名、流量、URL 等)
  • date_compared——與先前日期進行比較
  • where——對 keyword、volume、best_position、意圖標記等欄位的豐富篩選表達式
  • limit(預設 1000)、order_by

範例提示:「顯示 example.com 在美國排名前 10 的所有自然關鍵字」


6. 批次 URL 分析

同時分析最多 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 指標」


已知問題

  • 必須選擇欄位: 大部分 Ahrefs 工具需要 select 參數來指定要返回的欄位。省略或使用無效的欄位名稱會導致錯誤。請參考每個工具的回應結構以取得有效的識別碼。
  • 日期格式一致性: 日期必須使用 YYYY-MM-DD 格式。某些歷史端點返回的資料粒度由 history_grouping 設定,而非精確日期。
  • API 單位成本各異: 不同欄位會消耗不同的單位數量。在結構中標記為「(5 units)」或「(10 units)」的欄位成本較高。當要求 traffic、refdomains_source 或 difficulty 等高成本欄位時,請監控 API 使用量。
  • 批次限制為 100 個目標: AHREFS_BATCH_URL_ANALYSIS 每次請求最多接受 100 個目標。對於較大的分析,請拆分為多個批次。
  • 篩選表達式較複雜: where 參數使用 Ahrefs 的篩選表達式語法,而非標準 SQL。請查閱每個工具結構中的欄位說明,以了解支援的篩選類型和值格式。
  • 已棄用的 offset 參數: 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 提供技術支援

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相關技能