Skip to main content

Authentication Method

API Key Setup

Step 1: Get Your API Key

  1. Log in to Ahrefs
  2. Go to your profile → API
  3. Copy your API key
Storing Credentials:
pnpm corsair setup --plugin=ahrefs api_key=your-api-key
Ahrefs API access requires an active subscription with API access enabled. API usage is metered based on your plan.

Required Credentials Summary

CredentialRequired ForWhere to Find
API KeyAll API callsAhrefs account → API
For general information about how Corsair handles authentication, see Authentication.