corsair.ahrefs.api.*. Every method is fully typed, validates inputs with Zod, and surfaces Ahrefs request failures through the plugin error handlers.
Site Explorer
getDomainRating
Get Ahrefs Domain Rating and Ahrefs Rank for a target domain.read
backlinksStats
Get live and all-time backlink and referring-domain counts for a target.read
organicKeywords
List organic keywords a target ranks for, including positions and traffic metrics.read
refdomains
List referring domains linking to a target.read
topPages
List top organic pages for a target with traffic, keyword, and link metrics.read
Keywords Explorer
overview
Get keyword metrics such as volume, difficulty, CPC, clicks, and traffic potential.read
Optional Parameters:
target: Filter by target domaintarget_mode: ‘exact’ | ‘prefix’ | ‘domain’ | ‘subdomains’target_position: ‘in_top10’ | ‘in_top100’keyword_list_id: Filter by keyword list IDwhere: Custom SQL-like filtervolume_monthly_date_from: Start date for historical volumevolume_monthly_date_to: End date for historical volume
Rank Tracker
overview
Get Rank Tracker keyword overview data for a project and device.read
SERP Overview
overview
Get SERP positions for a keyword and country, including ranking page metrics.read
Subscription Info
limitsAndUsage
Get Ahrefs subscription limits and API unit usage.read
Error Handling
All API calls can throw an error from the underlying Ahrefs request:Rate Limiting
Corsair automatically handles Ahrefs rate limits:- Retries HTTP 429 responses
- Uses
Retry-Afterwhen Ahrefs sends it - Configurable retry strategy (default: 3 retries)