jpskill.com
💼 ビジネス コミュニティ 🟡 少し慣れが必要 👤 ライター・マーケ・広報

💼 Ahrefs Automation

Ahrefs Automation

SEO分析ツールAhrefsを使い、競合

⏱ 履歴書のATS最適化 1日 → 10分

📺 まず動画で見る(YouTube)

▶ 【自動化】AIガチ勢の最新活用術6選がこれ1本で丸分かり!【ClaudeCode・AIエージェント・AI経営・Skills・MCP】 ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

Automate SEO research with Ahrefs -- analyze backlink profiles, research keywords, track domain metrics history, audit organic rankings, and perform batch URL analysis through the Composio Ahrefs integration.

🇯🇵 日本人クリエイター向け解説

一言でいうと

SEO分析ツールAhrefsを使い、競合

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o ahrefs-automation.zip https://jpskill.com/download/1359.zip && unzip -o ahrefs-automation.zip && rm ahrefs-automation.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/1359.zip -OutFile "$d\ahrefs-automation.zip"; Expand-Archive "$d\ahrefs-automation.zip" -DestinationPath $d -Force; ri "$d\ahrefs-automation.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して ahrefs-automation.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → ahrefs-automation フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

💬 こう話しかけるだけ — サンプルプロンプト

  • Ahrefs Automation で、自社の新サービスを紹介する記事を書いて
  • Ahrefs Automation で、SNS投稿用に短く言い直して
  • Ahrefs Automation を使って、過去の記事を最新版にアップデート

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Ahrefs Automation

AhrefsのSEO分析をClaude Codeから直接実行できます。バックリンクプロファイルの分析、キーワード調査、ドメインオーソリティの経時的な追跡、オーガニックキーワードランキングの監査、複数のURLの一括分析を、ターミナルを離れることなく行えます。

ツールキットのドキュメント: composio.dev/toolkits/ahrefs


セットアップ

  1. Composio MCPサーバーを構成に追加します。
    https://rube.app/mcp
  2. プロンプトが表示されたらAhrefsアカウントを接続してください。エージェントが認証リンクを提供します。
  3. ほとんどのツールにはtarget(ドメインまたはURL)とcountryコード(ISO 3166-1 alpha-2)が必要です。一部のツールではYYYY-MM-DD形式のdateも必要です。

主要なワークフロー

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

プロンプトの例: "Get Ahrefs site metrics for example.com as of today in the US"


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

プロンプトの例: "Show me the monthly Domain Rating history for example.com over the last year"


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のような列に対する豊富なフィルター式

プロンプトの例: "Get the top 100 dofollow backlinks to example.com with anchor text and referring 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 (質問形式のキーワードのみ)

プロンプトの例: "Find keyword variations for 'project management' in the US with volume and difficulty"


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

プロンプトの例: "Show all organic keywords where example.com ranks in the top 10 in the US"


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

プロンプトの例: "Compare SEO metrics for competitor1.com, competitor2.com, and competitor3.com"


既知の落とし穴

  • 列の選択が必須です: ほとんどのAhrefsツールでは、返す列を指定するselectパラメーターが必要です。これを省略したり、無効な列名を使用したりするとエラーが発生します。有効な識別子については、各ツールのレスポンススキーマを参照してください。
  • 日付形式の一貫性: 日付はYYYY-MM-DD形式である必要があります。一部の履歴エンドポイントは、正確な日付ではなく、history_groupingで設定された粒度でデータを返します。
  • APIユニットコストは異なります: 異なる列は異なるユニット量を消費します。スキーマで「(5 units)」または「(10 units)」とマークされた列はより高価です。trafficrefdomains_sourcedifficultyなどの高価な列を要求する場合は、APIの使用状況を監視してください。
  • バッチ制限は100ターゲットです: AHREFS_BATCH_URL_ANALYSISは、リクエストごとに最大100個のターゲットを受け入れます。より大規模な分析の場合は、複数のバッチに分割してください。
  • フィルター式は複雑です: whereパラメーターは、標準SQLではなくAhrefsのフィルター式構文を使用します。サポートについては、各ツールのスキーマにある列の説明を参照してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Ahrefs Automation

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


Setup

  1. Add the Composio MCP server to your configuration:
    https://rube.app/mcp
  2. Connect your Ahrefs account when prompted. The agent will provide an authentication link.
  3. 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.

Core Workflows

1. Site Explorer Metrics

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 analyze
  • date (required) -- metrics date in YYYY-MM-DD format
  • country -- ISO country code (e.g., us, gb, de)
  • mode -- scope: exact, prefix, domain, or subdomains (default)
  • protocol -- both, http, or https
  • volume_mode -- monthly or average

Example prompt: "Get Ahrefs site metrics for example.com as of today in the US"


2. Historical Metrics Tracking

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 track
  • date_from (required) -- start date in YYYY-MM-DD
  • date_to -- end date
  • history_grouping -- daily, weekly, or monthly (default)
  • select -- columns like date,org_cost,org_traffic,paid_cost,paid_traffic

For Domain Rating (DR) history:

  • target (required), date_from (required), date_to, history_grouping

Example prompt: "Show me the monthly Domain Rating history for example.com over the last year"


3. Backlink Analysis

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 URL
  • select (required) -- comma-separated columns (e.g., url_from,url_to,anchor,domain_rating_source,first_seen_link)
  • limit (default 1000) -- number of results
  • aggregation -- similar_links (default), 1_per_domain, or all
  • mode -- exact, prefix, domain, or subdomains
  • history -- live, since:YYYY-MM-DD, or all_time
  • where -- rich filter expressions on columns like is_dofollow, domain_rating_source, anchor

Example prompt: "Get the top 100 dofollow backlinks to example.com with anchor text and referring DR"


4. Keyword Research

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 code
  • keywords -- comma-separated keyword list
  • where -- filter by volume, difficulty, intent, etc.

For matching terms:

  • select (required) and country (required)
  • keywords -- comma-separated seed keywords
  • match_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"


5. Organic Keywords Audit

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 URL
  • country (required) -- ISO country code
  • date (required) -- date in YYYY-MM-DD
  • select -- columns to return (keyword, position, volume, traffic, URL, etc.)
  • date_compared -- compare against a previous date
  • where -- rich filter expressions on keyword, volume, best_position, intent flags, etc.
  • limit (default 1000), order_by

Example prompt: "Show all organic keywords where example.com ranks in the top 10 in the US"


6. Batch URL Analysis

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 identifiers
  • country -- ISO country code
  • output -- json or php

Example prompt: "Compare SEO metrics for competitor1.com, competitor2.com, and competitor3.com"


Known Pitfalls

  • Column selection is required: Most Ahrefs tools require a 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.
  • Date format consistency: Dates must be in YYYY-MM-DD format. Some historical endpoints return data at the granularity set by history_grouping, not by exact date.
  • API unit costs vary: Different columns consume different unit amounts. Columns marked with "(5 units)" or "(10 units)" in the schema are more expensive. Monitor API usage when requesting expensive columns like traffic, refdomains_source, or difficulty.
  • Batch limit is 100 targets: AHREFS_BATCH_URL_ANALYSIS accepts up to 100 targets per request. For larger analyses, split into multiple batches.
  • Filter expressions are complex: The where parameter uses Ahrefs' filter expression syntax, not standard SQL. Consult the column descriptions in each tool's schema for supported filter types and value formats.
  • Deprecated offset parameter: The offset parameter was deprecated on May 31, 2024. Use cursor-based pagination or adjust limit instead.
  • Mode affects scope significantly: Setting mode to subdomains (the default) includes all subdomains, which can dramatically increase result counts compared to domain or exact.

Quick Reference

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 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

Powered by Composio