Ahrefs Research (Python SDK)
Guides Claude to query Ahrefs SEO data — backlinks, keywords, domain rating — through the official ahrefs-python SDK.
Marketing & SEOIntermediate★ 757⑂ 68AI score 7/10Last updated: Dec 1, 2026
What it does
Teaches Claude the correct, idiomatic way to use the official ahrefs-python SDK against the Ahrefs API.
- Covers 52 methods across 7 sections: Site Explorer, Keywords Explorer, Rank Tracker, Site Audit, Brand Radar, SERP Overview, Batch Analysis.
- Method discovery via
search_api_methods()in Python orpython3 -m ahrefs.api_searchfrom the shell. - Sync and async clients, context managers, typed request/response models, and exception handling for 401/404/429/5xx.
- Hard rules that save API units and avoid footguns: no hardcoded keys,
YYYY-MM-DDdates, always useselect, no custom retry logic.
Who it's for
- SEO marketers and growth engineers with a paid Ahrefs API subscription.
- Anyone automating backlink or keyword reporting with Python scripts.
- Teams who want generated code to follow SDK conventions instead of raw HTTP calls.
Example uses
- "Compare domain rating for ahrefs.com and moz.com" → async client plus
asyncio.gather. - "Pull the top 10 organic keywords with volume ≥ 1000" → builds a
wherefilter withjson.dumpsand appliesselect,order_by,limit. - "How should I handle rate limits?" → explains
RateLimitError.retry_afterand the SDK's built-in retries.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/OpenClaudia/openclaudia-skills/HEAD/skills/ahrefs-research/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the skills/ahrefs-research folder from the GitHub repo OpenClaudia/openclaudia-skills into my ~/.claude/skills/ahrefs-python/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/OpenClaudia/openclaudia-skills.git /tmp/openclaudia-skills && mkdir -p ~/.claude/skills && cp -r /tmp/openclaudia-skills/skills/ahrefs-research ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open your terminal.
- Clone the repo:
git clone https://github.com/OpenClaudia/openclaudia-skills.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r openclaudia-skills/skills/ahrefs-research ~/.claude/skills/ - Verify Python 3.11 or newer:
python3 --version - Install the SDK:
pip3 install git+https://github.com/ahrefs/ahrefs-python.git - Export your key:
export AHREFS_API_KEY=your_key_here(add it to your shell profile to persist). - Restart Claude Code and ask something like "use Ahrefs to get the domain rating for example.com".
View source on GitHub ↗License: MIT