# Backlink Checker - Backlinks & Referring Domains (`smart-digital/backlink-checker`) Actor

Get the backlinks of any domain or page with anchor text, dofollow, linking site rank and spam score, or its referring domains, plus a domain summary in the same run. One link per site by default, up to 20,000 rows per target. Invalid or non-existent domains are never charged.

- **URL**: https://apify.com/smart-digital/backlink-checker.md
- **Developed by:** [My Smart Digital](https://apify.com/smart-digital) (community)
- **Categories:** SEO tools, Marketing, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 backlinks

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Backlink Checker - Backlinks & Referring Domains

Give a list of domains or page addresses. Get back **who links to each of them**: the linking
page and its title, the **anchor text**, whether the link is **dofollow**, the **rank of the linking
site**, the link's **spam score**, and when it was first and last seen. Or ask for the **referring
domains** instead, one row per linking site. Each target also gets a **summary** in the same run:
domain rank, backlinks, referring domains, spam score, broken backlinks.

By default you get **one link per linking site, and only links a reader can click** (in the text
or on an image), strongest sites first. 100 rows means 100 different sites, not 70 links from the
same blog footer.

***

### Who it's for

- **SEO freelancers and agencies** auditing the link profile of a client or of a competitor, without
  a subscription to an SEO suite.
- **Link builders and outreach teams** listing the sites that link to a competitor, one row per
  site, with the page and the anchor to quote in a pitch.
- **Anyone checking a domain before buying it, or before buying a link on it**: rank, referring
  domains and spam score in one row.
- **Developers and AI agents** that send domains through the Apify API and need the same regular
  rows back every time.

***

### Why this one

1. **One row per site, editorial links only, by default.** Raw backlink lists are dominated by a
   few sites. Measured in November 2026 on three company websites, the 100 strongest links of the
   raw list came from only **12, 40 and 48 different sites**: the rest were repeats from the same
   sites, a company's own help centre linking back from its pages, and redirects from a former
   domain name. With the defaults, 100 rows are 100 different sites, at the same cost, and
   `linksFromThisSite` tells you how many links each site has to the target. Both options switch
   off when you want every single link.
2. **The whole list and the summary in one run.** Up to **20,000 rows per target**, and a summary
   row per target. `matchingRows` says how many rows the index holds for the filters you set, so
   you know what you did not get: 10,576 sites with a live text or image link to apify.com, of which
   a run with the defaults returns the strongest 100.
3. **Nothing is charged for nothing.** An entry that is not a domain, a target repeated in your
   list (`example.com` and `https://www.example.com/`), a domain that does not exist in DNS, a lookup
   the data source failed to answer and anything past your maximum charge are **free**, and each
   gets a row saying why. No start fee, no per-row platform fee: you pay for targets checked and
   rows returned, nothing else.

***

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `targets` | array of strings | `["apify.com"]` | Domains or page addresses, one per line. Up to **100 targets looked up per run**. `example.com`, `www.example.com` and `https://example.com/` all mean the whole site, its subdomains included. A subdomain (`blog.example.com`) means that subdomain. An address with a path (`https://example.com/blog/post`) means that page only. Through the API, one string with a target per line or separated by commas works too. |
| `mode` | string | `backlinks` | `backlinks`: one row per link. `referring_domains`: one row per linking site, with its number of links and pages. `summary`: no list, only the target row with the summary of each target. |
| `maxRowsPerTarget` | integer | `100` | The most rows returned per target, from 1 to 20,000. Each row is charged, so this caps the cost of a run. Ignored in `summary` mode. |
| `sortBy` | string | `domainRank` | Which rows come first, and so which ones you get when there are more than your maximum. `domainRank`: strongest linking sites first. `linkRank`: strongest links first. `newest`: most recently found first. |
| `onePerDomain` | boolean | `true` | `backlinks` mode: keep the strongest link of each linking site, with `linksFromThisSite`. Off: every link, including the hundreds a single site can have on all its pages. |
| `editorialOnly` | boolean | `true` | Keep text and image links. Leaves out redirects, canonical tags and other technical links. |
| `dofollowOnly` | boolean | `false` | Leave out links marked `nofollow`, `ugc` or `sponsored`. |
| `minDomainRank` | integer | `0` | Keep only links from sites with at least this domain rank, from 0 to 1,000. |
| `includeLost` | boolean | `false` | Also return links the index found before and no longer finds (`isLost: true`). The summary then counts them too. |

```json
{
  "targets": ["apify.com", "https://apify.com/apify/web-scraper"],
  "mode": "backlinks",
  "maxRowsPerTarget": 500,
  "sortBy": "domainRank",
  "onePerDomain": true,
  "editorialOnly": true,
  "dofollowOnly": true,
  "minDomainRank": 200
}
```

***

### Output

Each target gives its rows, **then** its target row (`rowType: "target"`), written last so that its
counts, charges included, are final. Every row of a kind has the same fields, whatever happened, so
a run exports to a regular table. The Output tab has three views: Backlinks, Referring domains and
Targets.

Real rows from a run with the default input in November 2026: one backlink row (long text fields
shortened), then the target row of apify.com, its breakdowns cut to their first entries.

```json
{
  "rowType": "backlink",
  "target": "apify.com",
  "sourceUrl": "https://stripe.com/pt-pt/customers/apify",
  "sourceDomain": "stripe.com",
  "sourcePageTitle": "A Apify se posiciona como líder em Comércio Agêntico com a Stripe",
  "sourcePageLanguage": "pt",
  "sourceCountry": "US",
  "sourceDomainRank": 731,
  "sourcePageRank": 0,
  "sourcePlatformTypes": ["unknown"],
  "sourcePageStatusCode": 200,
  "sourcePageExternalLinks": 4,
  "targetUrl": "https://apify.com/",
  "targetUrlStatusCode": 200,
  "targetRedirectsTo": null,
  "linkType": "anchor",
  "anchor": "Apify",
  "imageAlt": null,
  "imageUrl": null,
  "textBefore": "O marketplace da",
  "textAfter": "oferece dezenas de milhares de ferramentas de IA criadas por desenvolvedores…",
  "dofollow": true,
  "rel": [],
  "linkRank": 46,
  "spamScore": 0,
  "locationOnPage": "section",
  "linksFromThisSite": 28,
  "sameLinkOnPage": 1,
  "isNew": true,
  "isLost": false,
  "isBroken": false,
  "isIndirect": false,
  "redirectPath": null,
  "firstSeen": "2026-11-04T06:54:44Z",
  "previousSeen": null,
  "lastSeen": "2026-11-04T06:54:44Z",
  "collectedAt": "2026-11-07T21:31:03.173Z"
}
```

```json
{
  "rowType": "target",
  "input": "apify.com",
  "target": "apify.com",
  "targetType": "site",
  "mode": "backlinks",
  "status": "checked",
  "reason": null,
  "duplicateOf": null,
  "indexKnowsTarget": true,
  "domainRank": 574,
  "backlinks": 2319501,
  "referringDomains": 13034,
  "referringMainDomains": 10452,
  "referringPages": 2062403,
  "referringIps": 7808,
  "referringSubnets": 3577,
  "backlinksSpamScore": 16,
  "targetSpamScore": 0,
  "brokenBacklinks": 18040,
  "brokenPages": 35469,
  "firstSeen": "2019-01-16T11:42:42Z",
  "linkTypes": { "anchor": 2031418, "image": 28538, "redirect": 2277, "canonical": 166 },
  "linkAttributes": { "nofollow": 975778, "noopener": 391405, "sponsored": 51397, "ugc": 16608 },
  "linkLocations": { "unknown": 986009, "footer": 424979, "main": 225056, "nav": 147055 },
  "platformTypes": { "unknown": 1339559, "organization": 662371, "ecommerce": 184820 },
  "topCountries": { "unknown": 1548823, "CA": 153782, "GB": 115748 },
  "topTlds": { "eu": 840452, "com": 601905, "ca": 153760 },
  "rowsRequested": 100,
  "rowsReturned": 100,
  "matchingRows": 10576,
  "rowsLimitedBy": "maxRowsPerTarget",
  "targetCharged": true,
  "rowsCharged": 100,
  "collectedAt": "2026-11-07T21:31:03.373Z"
}
```

#### Backlink rows (`rowType: "backlink"`)

| Field | Meaning |
|---|---|
| `target` | The target as looked up: a bare domain, or the full address of a page. |
| `sourceUrl`, `sourceDomain` | The page that links, and its host name. |
| `sourcePageTitle`, `sourcePageLanguage` | Title and language of that page. |
| `sourceCountry` | Country code the index gives the linking site, often from its domain extension (`.io` gives `IO`): a hint, not a location. |
| `sourceDomainRank`, `sourcePageRank` | Rank of the linking host and of the linking page, from 0 to 1,000. Many pages have a page rank of 0. |
| `sourcePlatformTypes` | Kind of site, when known: `blogs`, `cms`, `ecommerce`, `news`, `organization`, `message-boards`, `wikis`. |
| `sourcePageStatusCode`, `sourcePageExternalLinks` | HTTP status of the linking page at its last visit, and how many outgoing links it has. Hundreds of outgoing links often mark a link directory or a spam page. |
| `targetUrl`, `targetUrlStatusCode`, `targetRedirectsTo` | The page of the target the link points to, its HTTP status, and where it redirects. |
| `linkType` | `anchor` (text link) or `image`; with `editorialOnly` off, also `redirect`, `canonical`, `alternate` and others. |
| `anchor`, `imageAlt`, `imageUrl` | The clickable text, or the image and its alternative text. |
| `textBefore`, `textAfter` | The words around the link. |
| `dofollow`, `rel` | Whether the link passes authority, and its `rel` attributes (`nofollow`, `ugc`, `sponsored`, `noopener`...). |
| `linkRank` | Strength of the link, from the rank of the page it is on, 0 to 1,000. |
| `spamScore` | Spam score of the link, 0 to 100. |
| `locationOnPage` | Where the link sits: `article`, `main`, `section`, `footer`, `nav`, `header`, `aside`... `null` when the page structure does not say. |
| `linksFromThisSite` | With one link per site, how many links that site has to the target. `null` with `onePerDomain` off. |
| `sameLinkOnPage` | How many times the same link appears on the linking page. |
| `isNew`, `isLost`, `isBroken` | Found on the latest visit of the page and never before; no longer found (only with `includeLost`); pointing to a page of the target that answers with an error. |
| `isIndirect`, `redirectPath` | The link reaches the target through a redirect, and the steps of that redirect. |
| `firstSeen`, `previousSeen`, `lastSeen` | When the index first saw the link, saw it the time before, and saw it last. |
| `collectedAt` | When this row was produced. |

#### Referring domain rows (`rowType: "referring_domain"`)

| Field | Meaning |
|---|---|
| `sourceDomain` | The linking site (host name). |
| `linkRank` | Rank of that site's links to the target, 0 to 1,000, computed from those links. It is not the site's own domain rank, and can be above or below it. |
| `backlinks`, `referringPages`, `nofollowPages` | Its links to the target, the pages they are on, and how many of those pages carry nofollow links. |
| `spamScore`, `brokenBacklinks` | Spam score of its links, and how many of them point to a page of the target that answers with an error. |
| `linkTypes`, `linkAttributes`, `linkLocations`, `platformTypes`, `countries` | Breakdowns of its links, by type, attribute, place on the page, kind of site and country. |
| `firstSeen`, `lostDate` | When the index first saw a link from this site, and when it lost the last one (with `includeLost`). |

#### Target rows (`rowType: "target"`)

| Field | Meaning |
|---|---|
| `input`, `target`, `targetType` | The entry as you typed it, the form looked up, and `site` or `page`. |
| `status`, `reason`, `duplicateOf` | What happened to this entry (table below), why in plain words, and the earlier entry a repeat points to. |
| `indexKnowsTarget` | `false` when the index holds nothing at all about the target. |
| `domainRank` | Rank of the target, 0 to 1,000. |
| `backlinks`, `referringDomains`, `referringMainDomains`, `referringPages`, `referringIps`, `referringSubnets` | The size of its link profile: links, linking hosts, linking main domains, linking pages, and the servers and networks they sit on. |
| `backlinksSpamScore`, `targetSpamScore` | Spam score of its backlinks as a whole, and of the target itself, 0 to 100. |
| `brokenBacklinks`, `brokenPages` | Links pointing to pages of the target that answer with an error, and how many such pages. |
| `firstSeen` | When the index first saw a link to the target. |
| `linkTypes`, `linkAttributes`, `linkLocations`, `platformTypes`, `topCountries`, `topTlds` | Breakdowns of all its backlinks. Countries and domain extensions: the top 10. |
| `rowsRequested`, `rowsReturned`, `matchingRows` | Rows asked for, rows returned, and rows the index holds for your mode and filters. |
| `rowsLimitedBy` | Why fewer rows came back than the index holds: `maxRowsPerTarget` (your maximum), `freePlan`, `maxCharge`, `monthlyDataLimit`, `timeLimit` or `dataSource`. `null` when you got them all. |
| `targetCharged`, `rowsCharged` | Whether this target was charged, and how many of its rows. |

#### What `status` tells you

| Value | Meaning | Charged |
|---|---|---|
| `checked` | The lookup answered. Also when the index holds no link to the target: the row says so. | Once per target, plus its rows |
| `invalid` | Not a domain or a web address: text with spaces, an IP address, a scheme other than http or https, more than 2,048 characters, or a target the data source refuses. | No |
| `duplicate` | The same target as an earlier entry, written another way. | No |
| `not_found` | The domain does not exist in DNS: not registered, or expired. Never sent to the data source. | No |
| `not_collected` | Not looked up, and `reason` says why: past the 100 targets of a run, the Apify free plan, your maximum charge, the run's time limit, the data source not answering, or the actor's monthly limit of backlink data. | No |

Each run also writes a `RUN_SUMMARY` record to its key-value store: the number of entries per
status, the rows returned, the targets and rows charged, and `dataSourceCalls`, the lookups made at
the data source (one summary per target checked, plus one per 1,000 rows).

***

### Five things about backlink data that are easy to get wrong

**Domain rank belongs to the host, not to the page.** Every page on `sites.google.com`, `github.com`
or a blogging platform carries the rank of the platform, whatever it says. In the default order
those hosts come first: on apify.com in November 2026, the first row was a spam page built on
`sites.google.com`, with the domain rank of Google itself (1,000), and the tenth a Bing image search
page. Read `sourcePageTitle`, `spamScore` and `linkRank` before trusting a high
`sourceDomainRank`.

**A site is a host name.** `blog.example.com` and `www.example.com` are two linking sites, and a
platform that hosts thousands of people's pages under one host name, like `sites.google.com`, is one
site: with one link per site, you see its strongest link to the target and `linksFromThisSite`
counts the rest.

**Backlinks, referring domains and main domains are three different counts.** apify.com has 2.3
million backlinks from 13,034 linking hosts and 10,452 main domains. Most backlinks are repeats, the
same site linking from many of its pages (footers, navigation, sidebars): `github.com` alone has
7,024 links to apify.com.

**`matchingRows` is the size of your list, `backlinks` the size of the whole profile.** Filters
narrow the list, not the summary. With the defaults, apify.com has 10,576 linking sites with a live
text or image link, out of 13,034 referring domains.

**This is an index, not a live visit.** Links are found by a crawler that revisits pages over days
and weeks: `firstSeen` and `lastSeen` say when it saw each one. A link added this week may not be
there yet, and a link removed recently is listed until the crawler comes back (it is then marked
`isLost`). Ranks and counts are this index's own: they will not match the numbers of another SEO
tool, which runs its own crawler on its own scale.

***

### Limits, stated plainly

- **Apify free plan: one target and 20 rows per run.** The target row says so, and so does the run's
  status message. Any paid Apify plan removes this limit.
- **100 targets looked up per run, up to 20,000 rows each.** Targets past the first 100 come back
  `not_collected`, free: run them in a second run. Lists longer than 1,000 entries are cut at 1,000,
  and the status message says so.
- **Domains that do not exist in DNS are not looked up.** This actor is not a tool for finding
  expired domains with backlinks.
- **One list per target, as the index sees it today.** No comparison between competitors, no anchor
  text summary, no history of links gained and lost by period: run each domain and compare the
  `sourceDomain` columns yourself.
- **A monthly limit of backlink data.** If the actor reaches it, targets come back `not_collected`,
  free, until the 1st of the next month (UTC), and the run says so.

***

### Cost

Two events, both in the Pricing section of this page:

- **a target checked**: once per domain or page whose lookup answered, its summary included, also
  when the index holds no link to it;
- **a row returned**: one backlink, or one referring domain in `referring_domains` mode.

Target rows, error rows and rows past your maximum are free, and so is every entry that is
invalid, repeated, not found in DNS or not looked up. With the prices shown in November 2026
($0.065 per target checked, $0.002 per row), one domain with its summary and 100 backlinks costs
**$0.265**, 1,000 backlinks **$2.065**, and the summary alone of 20 domains **$1.30**. The target
charge is the same for 1 row or 20,000, so the cost per backlink falls as you ask for more.

To cap a run, set a maximum cost per run in the run options (`maxTotalChargeUsd` through the API).
The run reads it before each target and looks up only as many rows as it can still pay for. It
never charges past it: the targets it could not afford come back `not_collected`, free.

No browser is involved, so runs are quick: in our tests, runs of one or two targets with up to
3,000 rows finished in under 7 seconds.

***

### Typical uses

- **Link building.** Run a competitor with `dofollowOnly` and a `minDomainRank`: one row per site
  that links to them, with the page and the anchor, ready for outreach.
- **Link audit and cleanup.** `isBroken` finds links pointing to your dead pages, worth a redirect;
  `includeLost` finds the links you lost; a high `spamScore` or `sourcePageExternalLinks` points to
  directories and link farms to review.
- **Checking a domain before a deal.** `summary` mode gives rank, referring domains, broken backlinks
  and spam score for each domain of a list, one row each, for the target charge alone.
- **Feeding a spreadsheet, a pipeline or an agent.** Regular rows with the same fields every time,
  joined back to your list on `input` or `target`.

# Actor input Schema

## `targets` (type: `array`):

One per line, up to 100 per run. A domain (example.com, also covers its subdomains), www.example.com or its home page all mean the whole site; a full address with a path (https://example.com/blog/post) means that page only. A target repeated in the list is looked up and charged once, and a domain that does not exist in DNS is not looked up nor charged.

## `mode` (type: `string`):

Backlinks: one row per link, with the page that links, its anchor text and its rank. Referring domains: one row per site that links, with how many links and pages it has. Summary only: no list, just the summary row of each target (rank, backlinks, referring domains, spam score).

## `maxRowsPerTarget` (type: `integer`):

The most backlink or referring domain rows returned for each target, in the order chosen below. Each row is charged, so this caps the cost of a run. Ignored in Summary only mode.

## `sortBy` (type: `string`):

Which rows come first, and so which ones you get when there are more than the maximum.

## `onePerDomain` (type: `boolean`):

Backlinks mode: keep one link from each site that links to the target, with how many links that site has in total (linksFromThisSite). Turn off to get every link, including the many links one site can have on all its pages.

## `editorialOnly` (type: `boolean`):

Keep the links a reader can click, in the text or on an image. Leaves out redirects, canonical tags and other technical links, which make up a large share of raw backlink lists.

## `dofollowOnly` (type: `boolean`):

Leave out links marked nofollow, ugc or sponsored.

## `minDomainRank` (type: `integer`):

Keep only links from sites with at least this domain rank, on a 0 to 1,000 scale. 0 keeps everything.

## `includeLost` (type: `boolean`):

Also return links the index found before and no longer finds (marked isLost). The summary then counts them too.

## Actor input object example

```json
{
  "targets": [
    "apify.com"
  ],
  "mode": "backlinks",
  "maxRowsPerTarget": 100,
  "sortBy": "domainRank",
  "onePerDomain": true,
  "editorialOnly": true,
  "dofollowOnly": false,
  "minDomainRank": 0,
  "includeLost": false
}
```

# Actor output Schema

## `backlinks` (type: `string`):

One row per link: linking page and site, anchor text, link type, dofollow, ranks, first and last seen.

## `referringDomains` (type: `string`):

One row per linking site: links, pages, spam score, first seen.

## `targets` (type: `string`):

One row per domain or page asked for: status, summary of the site, rows returned and rows matching.

## `allFields` (type: `string`):

Every field of every row.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "targets": [
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("smart-digital/backlink-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "targets": ["apify.com"] }

# Run the Actor and wait for it to finish
run = client.actor("smart-digital/backlink-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "targets": [
    "apify.com"
  ]
}' |
apify call smart-digital/backlink-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,smart-digital/backlink-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/rqahgiaZeTvAyoY4F/builds/LX4cQww8IK6FAjv1P/openapi.json
