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

# Get Domain Overview

> Get an SEO snapshot for up to 100 domains or URLs per request from Ahrefs Batch Analysis: Domain Rating, Ahrefs Rank, backlinks, referring domains, organic keywords by position bucket, organic traf...

Get an SEO snapshot for up to 100 domains or URLs per request from Ahrefs Batch Analysis: Domain Rating, Ahrefs Rank, backlinks, referring domains, organic keywords by position bucket, organic traffic and value, paid search metrics, and optional AI citation counts.

|                      |                              |
| -------------------- | ---------------------------- |
| **App**              | Ahrefs                       |
| **Operation ID**     | `ahrefs_get_domain_overview` |
| **Type**             | Action                       |
| **Connection**       | `ahrefs` (required)          |
| **Credits per run**  | Free                         |
| **Agent / MCP tool** | Yes                          |

## Inputs

| Field                  | Type                                | Required | Default      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ---------------------- | ----------------------------------- | -------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `targets`              | array of string or string           | Yes      | -            | Domains or URLs to analyse (e.g. example.com, blog.example.com, `https://example.com/pricing`). Accepts a list or a newline/comma-separated string. Ahrefs analyses up to 100 targets per request; longer lists are split into several requests. One row is returned per target.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `mode`                 | string or SelectableOption          | No       | `subdomains` | How to interpret each target: 'subdomains' (domain and all subdomains, default), 'domain' (the exact host only), 'prefix' (every URL starting with the target), or 'exact' (the exact URL only).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `country`              | string or SelectableOption          | No       | -            | Two-letter country code (e.g. us, gb, de) to restrict organic and paid search metrics to one country. Leave empty for worldwide totals.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `metrics`              | array of string or SelectableOption | No       | -            | Metrics to return (url is always included). Available: domain\_rating, ahrefs\_rank, url\_rating, backlinks, backlinks\_dofollow, backlinks\_nofollow, backlinks\_internal, backlinks\_redirect, refdomains, refdomains\_dofollow, refdomains\_nofollow, refips, refips\_subnets, linked\_domains, linked\_domains\_dofollow, outgoing\_links, outgoing\_links\_dofollow, org\_keywords, org\_keywords\_1\_3, org\_keywords\_4\_10, org\_keywords\_11\_20, org\_keywords\_21\_50, org\_keywords\_51\_plus, org\_traffic, org\_cost, org\_traffic\_top\_by\_country, paid\_keywords, paid\_traffic, paid\_cost, paid\_ads, ip. Each selected field adds to the Ahrefs API unit cost per row: org\_traffic, org\_cost, paid\_traffic, paid\_cost and org\_traffic\_top\_by\_country cost 10 units, refdomains fields cost 5, the rest cost 1. Defaults to domain\_rating, ahrefs\_rank, backlinks, refdomains, org\_keywords, org\_traffic, org\_cost, paid\_keywords, paid\_traffic. |
| `top_countries`        | integer                             | No       | -            | Number of countries to include in org\_traffic\_top\_by\_country (1 to 10, Ahrefs default 1). Only used when that metric is selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `include_ai_citations` | boolean                             | No       | `False`      | Also return ai\_citations (links to the target in AI answers) and ai\_cited\_pages (distinct pages cited) across ChatGPT, Google AI Overviews, AI Mode, Gemini, Perplexity, Copilot, Claude and Grok combined. Makes one extra Ahrefs request per target (about 50 API units each).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `List[Dict]`

Returns one row per target with url plus the selected metrics using Ahrefs field names: domain\_rating, ahrefs\_rank, url\_rating, backlinks, refdomains, org\_keywords (and position buckets), org\_traffic, org\_cost (USD), org\_traffic\_top\_by\_country, paid\_keywords, paid\_traffic, paid\_cost (USD), paid\_ads, ip, and ai\_citations / ai\_cited\_pages when include\_ai\_citations is on.

**Fields**: `url`, `domain_rating`, `ahrefs_rank`, `backlinks`, `refdomains`, `org_keywords`, `org_traffic`, `org_cost`, `paid_keywords`, `paid_traffic`, `ai_citations`, `ai_cited_pages`

**Example**:

```json theme={"dark"}
[
  {
    "url": "ahrefs.com/",
    "domain_rating": 91.0,
    "ahrefs_rank": 616,
    "backlinks": 25909669,
    "refdomains": 112947,
    "org_keywords": 25279,
    "org_traffic": 2904961,
    "org_cost": 8317786.81,
    "paid_keywords": 65,
    "paid_traffic": 206
  }
]
```
