ahrefs
by geozhu
Web & Frontend DevelopmentBrief
Complete Ahrefs API integration for SEO analysis.
Description
What This Skill Does
Connects to the Ahrefs API to run SEO analysis across domains, keywords, and search results. Covers backlink stats, organic rankings, keyword research, SERP analysis, site audits, and bulk domain comparisons. Rank Tracker and Site Audit features require projects pre-configured in the Ahrefs web interface.
Covers keyword research, backlink analysis, SERP data, and technical audits through a single API integration instead of requiring separate tools for each.
When to Use It
- Pulling a competitor's Domain Rating and backlink count before a pitch
- Researching keyword difficulty and search volume for a new content topic
- Finding which pages drive the most organic traffic to a domain
- Running a bulk metrics comparison across 50 competitor domains at once
- Identifying first-page keyword gaps between your site and a rival
Example Workflow
User asks: What are the top organic keywords driving traffic to competitor.com?
- 1
Fetch organic keyword metrics for competitor.com using the site-explorer metrics endpoint
- 2
Retrieve top pages by traffic to identify which URLs rank best
- 3
Query organic keywords with position data for those top pages
- 4
Filter results to keywords in positions 1-10 using Advanced or Enterprise plan filtering
- 5
Return a ranked list of keywords with volume, position, and traffic estimates
A list of organic keywords ranked by traffic contribution, with search volume and current position for each
Requirements
- Ahrefs subscription with API access (Lite, Standard, Advanced, or Enterprise plan)
- AHREFS_API_TOKEN environment variable from Ahrefs account settings
- AHREFS_API_PLAN environment variable set to your plan tier
Installation
clawhub install geozhu/ahrefsRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.