> ## 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 Outgoing Links

> List where a domain or page links out to, from Ahrefs Site Explorer: linked external domains with Domain Rating and link counts, or the anchor texts of its external or internal links

List where a domain or page links out to, from Ahrefs Site Explorer: linked external domains with Domain Rating and link counts, or the anchor texts of its external or internal links. Useful for link audits, affiliate and sponsorship checks and internal anchor analysis.

|                      |                             |
| -------------------- | --------------------------- |
| **App**              | Ahrefs                      |
| **Operation ID**     | `ahrefs_get_outgoing_links` |
| **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 whose outgoing links to list (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).                                                                                                                                                                                                                                                                                                                                                           |
| `report`  | string or SelectableOption          | No       | `linked_domains` | 'linked\_domains' (default): external domains the target links to with link counts and Domain Rating. 'external\_anchors': anchor texts of outbound external links. 'internal\_anchors': anchor texts of internal links.                                                                                                                                                                                                                                                                                                                                  |
| `metrics` | array of string or SelectableOption | No       | -                | Fields to return; the report decides which are valid (domain or anchor is always included). linked\_domains: domain\_rating, links\_from\_target, linked\_pages, dofollow\_links, first\_seen, is\_root\_domain, dofollow\_linked\_domains, dofollow\_refdomains (5 units), linked\_domain\_traffic (10 units). external\_anchors: links\_from\_target, dofollow\_links, linked\_domains, linked\_pages, first\_seen. internal\_anchors: links\_from\_target, dofollow\_links, linked\_pages, first\_seen. Leave empty for a sensible default per report. |
| `filters` | array of FilterItem                 | No       | -                | Filters on the report's fields, e.g. domain\_rating GREATER\_THAN 50 or anchor CONTAINS 'sponsor'.                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `orders`  | array of OrderItem                  | No       | -                | Sort by one or more of the report's fields.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `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 linked domain (domain, domain\_rating, links\_from\_target, linked\_pages, dofollow\_links, first\_seen, is\_root\_domain, dofollow\_linked\_domains, dofollow\_refdomains, linked\_domain\_traffic) or per anchor (anchor, links\_from\_target, dofollow\_links, linked\_domains, linked\_pages, first\_seen), depending on the report.

**Fields**: `domain`, `domain_rating`, `links_from_target`, `linked_pages`, `dofollow_links`, `first_seen`

**Example**:

```json theme={"dark"}
[
  {
    "domain": "google.com",
    "domain_rating": 99.0,
    "links_from_target": 1240,
    "linked_pages": 310,
    "dofollow_links": 980,
    "first_seen": "2013-08-19T17:59:53Z"
  }
]
```
