> ## 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 Paid Pages

> List the landing pages a domain advertises in Google paid search according to Ahrefs Site Explorer, with paid keyword counts, ad counts, paid traffic and cost, top keyword and URL Rating

List the landing pages a domain advertises in Google paid search according to Ahrefs Site Explorer, with paid keyword counts, ad counts, paid traffic and cost, top keyword and URL Rating.

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

## Inputs

| Field           | Type                                | Required | Default      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| --------------- | ----------------------------------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `target`        | string                              | Yes      | -            | The domain, subdomain, subfolder or URL to list paid search landing pages for (e.g. example.com).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `mode`          | string or SelectableOption          | No       | `subdomains` | How to interpret the 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 results to one country. Leave empty for all countries.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `date`          | string                              | No       | -            | Report date in YYYY-MM-DD format. Defaults to today (latest data).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `date_compared` | string                              | No       | -            | Optional earlier date in YYYY-MM-DD format to compare against; enables the \*\_prev and \*\_diff metrics.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `metrics`       | array of string or SelectableOption | No       | -            | Metrics to return (url is always included). Available: keywords, keywords\_prev, keywords\_diff, ads\_count, ads\_count\_prev, ads\_count\_diff, sum\_traffic, sum\_traffic\_prev, traffic\_diff, value (USD), value\_prev, value\_diff, top\_keyword, top\_keyword\_volume, top\_keyword\_best\_position, top\_keyword\_country, ur, referring\_domains, status (needs date\_compared). Ahrefs API unit cost per row: sum\_traffic, sum\_traffic\_prev, value, value\_prev and top\_keyword\_volume cost 10 units, referring\_domains 5, the rest 1. Defaults to keywords, ads\_count, sum\_traffic, value, top\_keyword, top\_keyword\_best\_position, ur. |
| `filters`       | array of FilterItem                 | No       | -            | Filters on the available metrics, e.g. ads\_count GREATER\_THAN 1 or url CONTAINS '/landing/'. Filter fields count towards the unit cost per row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `orders`        | array of OrderItem                  | No       | -            | Sort by one or more metrics.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `limit`         | integer                             | No       | `100`        | Maximum number of rows to return. Defaults to 100. Your Ahrefs plan caps rows per request (Lite 100, Standard 250, Advanced 500).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |

### FilterItem

| Field      | Type                       | Required | Default | Description                                                                                                                                                                             |
| ---------- | -------------------------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `field`    | string or SelectableOption | Yes      | -       | The field to filter on, must be one of the current selected metrics or dimensions.                                                                                                      |
| `operator` | string                     | Yes      | -       | The operator to use for filtering. Must be one of the supported values. Use REGEXP\_MATCH to search/filter by multiple OR values like '.*(summer\|holiday).*'                           |
| `value`    | string                     | Yes      | -       | The value to filter by, always as a string: text, a number, or a regex. For IN\_LIST and NOT\_IN\_LIST, pass the values as one comma-separated string such as 'a,b,c', not as an array. |

### OrderItem

| Field       | Type                       | Required | Default | Description                                                                      |
| ----------- | -------------------------- | -------- | ------- | -------------------------------------------------------------------------------- |
| `field`     | string or SelectableOption | Yes      | -       | The field to sort by. must be one of the current selected metrics or dimensions. |
| `direction` | string                     | Yes      | -       | The order to sort by, must be one of 'ASC', 'DESC'                               |

### SelectableOption

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

## Output

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

Returns one row per paid landing page with the selected Ahrefs fields: url, keywords, ads\_count, sum\_traffic, value (USD), top\_keyword, top\_keyword\_volume, top\_keyword\_best\_position, ur, referring\_domains and \*\_prev / \*\_diff comparison fields.

**Fields**: `url`, `keywords`, `ads_count`, `sum_traffic`, `value`, `top_keyword`, `top_keyword_best_position`, `ur`

**Example**:

```json theme={"dark"}
[
  {
    "url": "https://ahrefs.com/brand-radar",
    "keywords": 19,
    "ads_count": 19,
    "sum_traffic": 59,
    "value": 41.32,
    "top_keyword": "brand radar",
    "top_keyword_best_position": 1,
    "ur": 22.0
  }
]
```
