Ahrefs Automation
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.
Install / Use
npx skills add ComposioHQ/awesome-claude-skills --skill ahrefs-automationInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Our assessment of Ahrefs Automation
Ahrefs Automation scores 92/100 on our quality scale, 73rd of 860 Automation skills we index (top 9%).
Its SKILL.md is 7.7 KB long, well organised into 11 sections and no code examples: a thorough specification that gives an agent plenty to work with.
With 75,586 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 6 days ago, so Ahrefs Automation is actively maintained.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
Ahrefs Automation compared with similar skills
All 4 of these similar skills score higher than Ahrefs Automation; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| Ahrefs Automation (this skill)by ComposioHQ | 92 | 75.6k | 6d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 85.3k | 9d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.7k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.2k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.1k | today | CLAUDE.md |
Frequently asked questions
- How do I install Ahrefs Automation?
- Run
npx skills add ComposioHQ/awesome-claude-skills --skill "Ahrefs Automation". The install tabs above show the steps for each supported agent. - Which AI agents does Ahrefs Automation work with?
- It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is Ahrefs Automation safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is Ahrefs Automation still maintained?
- The repository was last updated 6 days ago, so Ahrefs Automation is actively maintained.
Skill content
View source on GitHubname: Ahrefs Automation 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." requires: mcp: - rube
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
- 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 acountrycode (ISO 3166-1 alpha-2). Some also require adateinYYYY-MM-DDformat.
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 analyzedate(required) -- metrics date inYYYY-MM-DDformatcountry-- ISO country code (e.g.,us,gb,de)mode-- scope:exact,prefix,domain, orsubdomains(default)protocol--both,http, orhttpsvolume_mode--monthlyoraverage
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 trackdate_from(required) -- start date inYYYY-MM-DDdate_to-- end datehistory_grouping--daily,weekly, ormonthly(default)select-- columns likedate,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 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, orallmode--exact,prefix,domain, orsubdomainshistory--live,since:YYYY-MM-DD, orall_timewhere-- rich filter expressions on columns likeis_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 codekeywords-- comma-separated keyword listwhere-- filter by volume, difficulty, intent, etc.
For matching terms:
select(required) andcountry(required)keywords-- comma-separated seed keywordsmatch_mode--terms(any order) orphrase(exact order)terms--allorquestions(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 URLcountry(required) -- ISO country codedate(required) -- date inYYYY-MM-DDselect-- columns to return (keyword, position, volume, traffic, URL, etc.)date_compared-- compare against a previous datewhere-- rich filter expressions onkeyword,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 withurl,mode(exact/prefix/domain/subdomains), andprotocol(both/http/https)select(required) -- array of column identifierscountry-- ISO country codeoutput--jsonorphp
Example prompt: "Compare SEO metrics for competitor1.com, competitor2.com, and competitor3.com"
Known Pitfalls
- Column selection is required: Most Ahrefs tools require a
selectparameter 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-DDformat. Some historical endpoints return data at the granularity set byhistory_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, ordifficulty. - Batch limit is 100 targets:
AHREFS_BATCH_URL_ANALYSISaccepts up to 100 targets per request. For larger analyses, split into multiple batches. - Filter expressions are complex: The
whereparameter 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
offsetparameter was deprecated on May 31, 2024. Use cursor-based pagination or adjustlimitinstead. - Mode affects scope significantly: Setting
modetosubdomains(the default) includes all subdomains, which can dramatically increase result counts compared todomainorexact.
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
Related Skills
Agent-Reach
85.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.7kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.2k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.1kOpen-source super AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
