Skip to main content
  • Setup
  • Reference

What You'll Need

CredentialDescription
API TokenBearer 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

  1. Log in to Ahrefs
  2. Click your avatar → Account settings
  3. Navigate to API tab
2

Generate API Token

  1. Find API key section
  2. Click Generate if no key exists
  3. Copy the API token
Copy your now!This is the only time it will be displayed. Store it in a secure password manager before closing this page.