AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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 or python3 -m ahrefs.api_search from 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-DD dates, always use select, 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

  1. "Compare domain rating for ahrefs.com and moz.com" → async client plus asyncio.gather.
  2. "Pull the top 10 organic keywords with volume ≥ 1000" → builds a where filter with json.dumps and applies select, order_by, limit.
  3. "How should I handle rate limits?" → explains RateLimitError.retry_after and 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open your terminal.
  2. Clone the repo: git clone https://github.com/OpenClaudia/openclaudia-skills.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r openclaudia-skills/skills/ahrefs-research ~/.claude/skills/
  5. Verify Python 3.11 or newer: python3 --version
  6. Install the SDK: pip3 install git+https://github.com/ahrefs/ahrefs-python.git
  7. Export your key: export AHREFS_API_KEY=your_key_here (add it to your shell profile to persist).
  8. Restart Claude Code and ask something like "use Ahrefs to get the domain rating for example.com".