> ## 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 Backlinks

> Get the list of individual backlinks pointing to a domain or URL — source page, anchor text, target URL, page authority, first/last seen, and link type

Get the list of individual backlinks pointing to a domain or URL — source page, anchor text, target URL, page authority, first/last seen, and link type. Semrush requires a Markifact connection using an API key from a Semrush Business or Enterprise subscription.

|                      |                         |
| -------------------- | ----------------------- |
| **App**              | SEMrush                 |
| **Operation ID**     | `semrush_get_backlinks` |
| **Type**             | Action                  |
| **Connection**       | `semrush` (required)    |
| **Credits per run**  | Free                    |
| **Agent / MCP tool** | Yes                     |

## Inputs

| Field            | Type                                | Required | Default       | Description                                                                                                                                                                                                                                               |
| ---------------- | ----------------------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `target`         | string                              | Yes      | -             | The domain, subdomain, or URL to list backlinks for (e.g. example.com).                                                                                                                                                                                   |
| `target_type`    | string or SelectItem                | No       | `root_domain` | How to interpret the target: 'root\_domain' (whole domain), 'domain' (subdomain), or 'url' (exact URL).                                                                                                                                                   |
| `export_columns` | array of string or SelectableOption | No       | -             | List of columns to return. Available: page\_ascore (page authority), source\_url, source\_title, target\_url, target\_title, anchor, first\_seen, last\_seen, nofollow, image, sitewide, newlink, lostlink, external\_num, internal\_num, response\_code. |
| `orders`         | array of OrderItem                  | No       | -             | Sort results by a single column. Only page\_ascore, last\_seen, and first\_seen are sortable.                                                                                                                                                             |
| `limit`          | integer                             | No       | -             | Maximum number of rows to return.                                                                                                                                                                                                                         |

### 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'                               |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

### SelectableOption

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

## Output

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

Returns one row per backlink with: pageAuthorityScore, sourceUrl, sourceTitle, targetUrl, anchor, firstSeen, lastSeen, nofollow.

**Fields**: `pageAuthorityScore`, `sourceUrl`, `sourceTitle`, `targetUrl`, `anchor`, `firstSeen`, `lastSeen`, `nofollow`

**Example**:

```json theme={"dark"}
[
  {
    "pageAuthorityScore": 78,
    "sourceUrl": "https://blog.example.com/post",
    "targetUrl": "https://apple.com/",
    "anchor": "apple",
    "nofollow": "false"
  }
]
```
