- Setup
- Reference
What You'll Need
| Credential | Description |
|---|---|
| API Token | Bearer token from Ahrefs account |
Overview
Connect to Ahrefs for SEO and content marketing analytics.SEO Data
Backlinks, keywords, rankings
Site Metrics
Domain ratings, traffic estimates
Prerequisites
Administrator access required. You need privileges in to complete this setup.If you don’t have admin access, contact your administrator to:
- Create the API credentials on your behalf, OR
- Grant you temporary admin access to complete the setup
- Enterprise plan required for full API access (other plans have limited free test queries)
- Workspace owner or administrator role
Setup Guide
1
Access Account Settings
- Log in to Ahrefs
- Click your avatar → Account settings
- Navigate to API tab
2
Generate API Token
- Find API key section
- Click Generate if no key exists
- Copy the API token