Claude Code skills for the Ahrefs API and Python SDK.
Skills teach your AI coding assistant the SDK's patterns, available methods, and best practices — so it can write correct Ahrefs API code without guessing.
Install the Ahrefs Python SDK and set your API key:
pip install git+https://github.com/ahrefs/ahrefs-python.git
export AHREFS_API_KEY="your-api-key"npx skills add ahrefs/ahrefs-api-skills --skill ahrefs-python --globalThen ask Claude Code to use the Ahrefs API — it will know the SDK patterns, all 52 methods, error handling, and filter syntax.
The ahrefs-python skill provides:
- SDK usage rules — always use the typed client, correct response access patterns, date formats
- All 52 API methods — Site Explorer, Keywords Explorer, Rank Tracker, Site Audit, Brand Radar, SERP Overview, Batch Analysis
- Filter syntax reference — BNF grammar and examples for building query filters
- Ahrefs Python SDK — the Python library itself
- Ahrefs API docs — official API documentation