Open navigation

Ahrefs: Authentication guide

This guide will walk you through how to authenticate or reauthenticate Ahrefs with Google Sheets, Data Studio, and Excel, as well as data warehouse destinations like Google Cloud Storage, BigQuery, and the Supermetrics API. 

Before you begin

To connect Supermetrics to Ahrefs, you need:

Multiple user accounts

It's not possible to add multiple user accounts in the same login for Ahrefs. To log in with a different user account, you need to log out from all other Ahrefs accounts in Supermetrics.

Target URL 

For the field "target URL" we support HTTP, HTTPS, and WWW.

For Excel users

If your team uses Supermetrics for Excel, you’ll see different options for managing and sharing data source connections in that destination. Learn more.


Google Sheets Data Studio  Excel Data integrations
Before you can authenticate the data source in Google Sheets, you need to install the Supermetrics add-on.
  1. Open a new Google Sheets file. 
  2. Navigate to ExtensionsSupermetricsLaunch to open the Supermetrics sidebar.
  3. Click Create query
  4. Under Data source, select Ahrefs.
  5. Click Start.
  6. Enter your email address and password, and click Sign in.
  7. Click Allow.
  8. Navigate to Report configuration.
  9. Under Query types, select the query type.
  10. Under Target URL, insert the target URL. 

When you're ready, learn how to create your first Supermetrics query with Ahrefs.


  • If you encounter an authentication error such as “authentication failed”, “you need to reauthenticate” or similar, see this guide
  • If you encounter a permission error such as “user permission denied” or similar, follow this guide.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.