Skip to content
cccskills
FreePublished on GitHubEnglish overview

Ahrefs Automation

Use Ahrefs through Composio to research keywords, inspect backlinks, review organic search rankings, and track domain metrics over time. Compare SEO performance across competitors or site sections with batch analysis of up to 100 URLs.

OriginalShow the original description

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.

Run score Not tested

See how to install

Good for

  • Inspecting backlinks and referring domains
  • Finding keyword ideas with search volume and difficulty
  • Comparing organic search rankings across dates
  • Tracking domain metrics over time
  • Comparing SEO metrics for multiple URLs

Overview

What it does

This skill lets you conduct Ahrefs SEO research from Claude Code. It retrieves information for improving search engine visibility: backlinks, meaning links from other websites; keyword search volume and difficulty; and organic search rankings. It also supports historical domain metrics and comparisons of up to 100 URLs or domains at once.

When it helps

Use it to find keywords for articles, compare your search performance with competitors, or check metrics before and after changes. Specify the country, scope, dates, and fields to focus the research on the information you need.

Example requests

  • “Find related keywords for ‘project management’ in Japan, including search volume and difficulty.”
  • “Show monthly Domain Rating for example.com over the past year.”
  • “Compare SEO metrics for these three competing domains.”

Notes

You need the Composio integration through Rube MCP and authentication for your Ahrefs account. Many operations require you to specify the columns to retrieve, and API unit consumption varies by column. Batch analysis is limited to 100 targets per request. Use dates in YYYY-MM-DD format and check the scope, including whether subdomains are included.

This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.

Document check

AI checked the SKILL.md for operations that need care and for setup requirements. The score comes only from actually running the skill (hands-on test).

SafetyAre sending data, deleting files, and running commands disclosed?
AGoodIt retrieves information from Ahrefs and explicitly explains API consumption by column and cautions about target scope.
Easy setupDoes it need few tools or API keys, and are they documented?
AGoodIt provides the Rube MCP endpoint and steps for connecting an Ahrefs account through an authentication link.

Not counted in the score. Rated by AI (OpenAI Codex) as of Oct 22, 2026. Treat it as a guide and read the original before installing.

Disagree? Request a re-evaluation

Tell us which point is wrong and why. No login needed. We will check it against the SKILL.md, redo the evaluation, and show the result here.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Files included (1)

  • SKILL.md7.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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 SlugDescription
AHREFS_RETRIEVE_SITE_EXPLORER_METRICSCurrent SEO metrics for a domain/URL
AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORYHistorical SEO metrics over time
AHREFS_DOMAIN_RATING_HISTORYDomain Rating (DR) history
AHREFS_FETCH_ALL_BACKLINKSComprehensive backlink list with filtering
AHREFS_FETCH_SITE_EXPLORER_REFERRING_DOMAINSList of referring domains
AHREFS_GET_SITE_EXPLORER_COUNTRY_METRICSCountry-level traffic breakdown
AHREFS_BATCH_URL_ANALYSISBatch analysis of up to 100 URLs
AHREFS_EXPLORE_KEYWORDS_OVERVIEWKeyword metrics overview
AHREFS_EXPLORE_MATCHING_TERMS_FOR_KEYWORDSMatching keyword variations
AHREFS_EXPLORE_KEYWORD_VOLUME_BY_COUNTRYKeyword volume across countries
AHREFS_RETRIEVE_ORGANIC_KEYWORDSOrganic keyword rankings for a domain
AHREFS_RETRIEVE_SITE_EXPLORER_KEYWORDS_HISTORYHistorical keyword ranking data
AHREFS_RETRIEVE_TOP_PAGES_FROM_SITE_EXPLORERTop performing pages by SEO metrics
AHREFS_GET_SERP_OVERVIEWSERP overview for specific keywords

Powered by Composio

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Automate 21risk operations through Rube MCP, a connection for agent tools. The skill discovers available actions, checks the service connection, and uses current input requirements to carry out requested tasks.

  • Find available 21risk actions
  • Run tasks after checking the service connection
  • Process multiple operations in bulk
ComposioHQ/awesome-claude-skills77.8KUpdated Sep 18, 2026

Automate supported 2chat tasks through Rube MCP and Composio. The skill finds available tools, checks the service connection, and uses current input requirements to carry out the requested operations.

  • Find tools for a 2chat task
  • Check the 2chat connection before running tasks
  • Run multiple supported operations together
ComposioHQ/awesome-claude-skills77.8KUpdated Sep 18, 2026

ably-automation

FreeSummary

Automate Ably operations through Rube MCP and Composio. The skill discovers tools for your task, checks current input requirements, verifies an active connection, and guides execution of single operations or batches.

  • Discover available tools for an Ably task
  • Check the Ably connection before execution
  • Run multiple Ably operations together
ComposioHQ/awesome-claude-skills77.8KUpdated Sep 18, 2026

Automate Abstract tasks using Rube MCP, a connection for agent tools. The skill searches for available operations, confirms an active service connection, and runs actions according to their current input requirements.

  • Discovering supported Abstract operations
  • Executing Abstract tasks through an agent
  • Fetching all pages of a tool response
ComposioHQ/awesome-claude-skills77.8KUpdated Sep 18, 2026

Automate Abuselpdb operations through Rube MCP, a connection for agent tools. Discover available actions and their required inputs, verify the service connection, and execute tasks using the current tool definitions.

  • Finding available Abuselpdb actions
  • Checking the connection before running tasks
  • Automating repeated Abuselpdb operations
ComposioHQ/awesome-claude-skills77.8KUpdated Sep 18, 2026

Automate Abyssale operations through Rube MCP, a connection for agent tools. The skill discovers available actions and their current input requirements, checks the service connection, and executes the tools returned by the search.

  • Discovering available Abyssale operations
  • Checking the Abyssale connection before execution
  • Running Abyssale operations through an agent
ComposioHQ/awesome-claude-skills77.8KUpdated Sep 18, 2026

See all skills by ComposioHQ

Report a problem with this skill