Ahrefs Automation logo

Ahrefs Automation

OrganizationPopular
ComposioHQ
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.

Overview

PublisherComposioHQ
Repositoryawesome-claude-skills
Skill nameAhrefs Automation
Stars
75.2K
Forks
8.7K
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ComposioHQ on GitHub. Read the source before you install it.

Installation

Install the Ahrefs Automation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ComposioHQ/awesome-claude-skills.git /tmp/awesome-claude-skills
mkdir -p .claude/skills
cp -r /tmp/awesome-claude-skills/composio-skills/ahrefs-automation .claude/skills/composiohq-ahrefs-automation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ahrefs Automation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ahrefs Automation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ahrefs Automation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Frequently asked questions

What does the Ahrefs Automation AI skill do?

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.

Why use Ahrefs Automation on TypingMind?

Because you install it once and use it with any model. Ahrefs Automation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ahrefs Automation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ComposioHQ/awesome-claude-skills/tree/master/composio-skills/ahrefs-automation. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Ahrefs Automation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ahrefs Automation?

As many as you like. As long as a model supports skills, you can use Ahrefs Automation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ahrefs Automation AI skill free?

It is published on GitHub by ComposioHQ. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇