ahrefs-python
Installation
SKILL.md
Ahrefs Python SDK Skill
Overview
The Ahrefs API provides programmatic access to Ahrefs SEO data. The official Python SDK (ahrefs-python) provides typed request and response models for all endpoints, auto-generated from the OpenAPI spec.
Key capabilities:
- Site Explorer - Backlinks, organic keywords, domain rating, traffic, referring domains
- Keywords Explorer - Keyword research, volumes, difficulty, related terms
- Management — Rank Tracker project, keyword list, competitor, and Brand Radar prompt management (create, update, delete)
- Rank Tracker - SERP monitoring, competitor tracking
- Site Audit - Technical SEO issues, page content, page explorer
- Brand Radar - AI brand mentions, share of voice, impressions
- SERP Overview - Search result analysis
- Batch Analysis - Bulk domain/URL metrics via POST
- Web Analytics - Website visitor analytics (traffic, browsers, devices, sources, pages)
- Public — Ahrefs crawler IP addresses and CIDR ranges (no API key required)
- Subscription Info — API usage limits, billing period, key expiration