> ## Documentation Index
> Fetch the complete documentation index at: https://adapt.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Ahrefs

> Connect Ahrefs to analyze SEO performance and backlinks

Connect Adapt to Ahrefs to analyze your SEO performance, track rankings, and monitor backlinks.

## Setup

<Steps>
  <Step title="Get your Ahrefs API key">
    1. Go to your [Ahrefs Account Settings](https://app.ahrefs.com/account/my-account)
    2. Navigate to **API** section
    3. Copy your API key

    <Note>
      API access requires an Ahrefs subscription with API access.
    </Note>
  </Step>

  <Step title="Go to Settings">
    Navigate to **Settings > Integrations** in Adapt
  </Step>

  <Step title="Add the secret">
    Add the following secret:

    | Secret Name  | Value               |
    | ------------ | ------------------- |
    | `AHREFS_API` | Your Ahrefs API key |
  </Step>

  <Step title="Test the connection">
    Ask Adapt about your domain's SEO metrics
  </Step>
</Steps>

## Capabilities

Adapt can query your Ahrefs data. Analyze SEO performance, track rankings, and
monitor backlinks.

### Examples

Domain analysis:

```
What's our domain rating?
```

Keyword tracking:

```
What keywords are we ranking for?
```

Backlink analysis:

```
Show me new backlinks from this week
```

Competitive analysis:

```
Compare our domain rating to [competitor]
```
