# Backlink Checker (`dami_studio/backlink-checker`) Actor

Backlink checker: backlinks, referring domains and anchor texts for any site or page, with dofollow, rank, spam score and first-seen dates. Also link totals for long lists of sites, link gaps against competitors and monthly history back to 2019.

- **URL**: https://apify.com/dami_studio/backlink-checker.md
- **Developed by:** [Dami's Studio](https://apify.com/dami_studio) (community)
- **Categories:** SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.30 / 1,000 rows

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: the backlinks and referring domains of any site or page**: every link with its anchor text, dofollow flag, the rank and spam score of the linking site, and when it was first and last seen. The same actor gives anchor texts, the most linked pages, link totals for lists of up to 10,000 sites, the link gap against up to 20 competitors, and history back to 2019.

The part to know first: big sites have millions of links, so set "Rows per site" to what you actually need. And every backlink tool counts from its own crawl of the web, so totals here won't match another tool's.

| | |
|---|---|
| **Input** | Domains, subdomains or page addresses, plus competitors for the link gap reports |
| **Output** | One row per backlink, referring domain, anchor, page, network, site or date: anchor text, dofollow, link type, ranks, spam score, first and last seen, lost and broken flags |
| **Ceiling** | 100,000 rows per site and 1,000,000 per run; 10,000 sites per run in Bulk metrics |
| **Account needed** | None from you |
| **Price** | $2.30 per 1,000 rows plus $0.033 per lookup, the same on every plan. Exact dofollow counts, if you switch them on, add $0.04 per extra lookup. The free plan's $5 a month covers about 1,900 backlinks, pulled 100 at a time |

### 🔍 What Backlink Checker does

You pick one report per run. Each report is a different cut of the same link records:

| Report (`mode`) | One row is | Good for |
|---|---|---|
| Backlinks (`backlinks`) | one link from one page | link audits, finding the pages that mention you |
| Referring domains (`referringDomains`) | one site that links to you, with its link counts | outreach lists, cleaning up spam |
| Anchor texts (`anchors`) | one anchor text and how many links use it | spotting over-optimised or odd anchors |
| Overview (`overview`) | one site or page with its totals | a quick health check of a handful of sites |
| Bulk metrics (`bulk`) | one site with rank and link counts | screening hundreds of domains at once |
| Most linked pages (`pages`) | one page of the site | finding which content earns links |
| Referring IPs or subnets (`networks`) | one IP address or subnet | spotting link networks |
| Sites in common (`competitors`) | one site that shares linking sites with yours | finding real competitors |
| Link gap by site (`linkGap`) | one site linking to competitors and not to you | an outreach shortlist |
| Link gap by page (`pageLinkGap`) | one page linking to competitors and not to you | the exact articles to pitch |
| History (`history`) | one month since 2019 | long-term growth |
| Totals over time (`trend`) | one day, week, month or year | charts for reports |
| New and lost over time (`newLost`) | one period's gains and losses | catching a sudden drop |

Filters run on the link records before anything is counted, so "dofollow only" also changes the totals in Overview and Referring domains. In Backlinks and Link gap by page, every row is checked against your filters again as it comes back, and a row that doesn't meet them is dropped and not charged.

### 📋 What data you get from each backlink and site

| What you'd call it | Fields |
|---|---|
| The linking page | `sourceUrl`, `sourceTitle`, `sourceDomain`, `sourcePageLanguage`, `sourcePageStatusCode`, `sourcePageExternalLinks`, `sourcePageInternalLinks` |
| How strong it is | `sourceDomainRank`, `sourcePageRank`, `linkRank`, `spamScore` |
| Where the linking site sits | `sourceCountry`, `sourceIp`, `sourceTld`, `sourcePlatformTypes` |
| The link itself | `anchor`, `anchorType`, `textBefore`, `textAfter`, `altText`, `linkType`, `dofollow`, `attributes`, `semanticLocation` |
| Where it points | `targetUrl`, `targetStatusCode`, `targetRedirectsTo`, `isIndirect`, `indirectPath` |
| Its history | `firstSeen`, `previousSeen`, `lastSeen`, `isNew`, `isLost`, `isBroken` |
| Site totals | `rank`, `backlinks`, `dofollowBacklinks`, `nofollowBacklinks`, `dofollowRatio`, `referringDomains`, `dofollowReferringDomains`, `referringMainDomains`, `referringPages`, `referringIps`, `referringSubnets`, `brokenBacklinks`, `brokenPages` |
| How many matched | `totalMatching` on every list row: all the rows that meet your filters, not only the ones delivered |
| Breakdowns | `linkTypes`, `linkAttributes`, `topTlds`, `platformTypes`, `semanticLocations`, `linkingCountries` |
| Overview extras | `siteSpamScore`, `crawledPages`, `server`, `cms`, `country`, `ipAddress` |
| Paid extras | `newBacklinks`, `lostBacklinks`, `newReferringDomains`, `lostReferringDomains` (new and lost), `organicTraffic`, `organicKeywords` (search traffic), `dofollowExact` (exact dofollow counts) |
| Link gap | `linksTo`, `missingFrom`, `competitorsLinked`, `perCompetitor` |

### ▶️ How to check the backlinks of a website

1. Open Backlink Checker and press **Try for free**.
2. In **What to get**, pick a report. Backlinks is the default.
3. Type your domains or page addresses into **Sites or pages**, one per line.
4. Set **Rows per site**, and any filters under **Which links**.
5. Press **Start**, then download the results as CSV, Excel or JSON.

### 💰 How much does it cost to check backlinks?

$2.30 per 1,000 rows with data, plus $0.033 per lookup, the same on every plan. A lookup is one request to the link records: up to 1,000 rows of a list, one site's overview, one site's history, or up to 100 sites in Bulk metrics. Extras add their own lookups, only for sites that have data, and each one says how many in its help text. Exact dofollow counts are the one extra with a price of its own: $0.04 per extra lookup, one per site in Overview and Bulk metrics, one per 100 rows or fewer in Referring domains, Anchors, Pages and Networks.

| Job | About |
|---|---|
| 100 backlinks of one site | $0.26 |
| Overview of one site | $0.035 |
| Bulk metrics for 1,000 sites | $2.63 |
| 100 referring domains with exact dofollow counts | $0.30 |

The free plan's $5 a month covers about 1,900 backlinks, pulled 100 at a time.

On Apify's free plan a run makes one lookup: the first site, up to 100 rows, and none of the extras that need lookups of their own. Their columns stay on the rows, empty, and the run's closing message says what was left out. Any paid plan removes the limit.

Not charged: note rows, rows for sites with no data, rows dropped by a filter, and sites under your minimum rank. A lookup is charged when it is answered, even when the answer is that a site has no links. Set a spending limit on the run and it stops there.

### 📥 What you give it

| Field | Default | What it does |
|---|---|---|
| `mode` | `backlinks` | The report: `backlinks`, `referringDomains`, `anchors`, `overview`, `bulk`, `pages`, `networks`, `competitors`, `linkGap`, `pageLinkGap`, `history`, `trend`, `newLost` |
| `targets` | none, required | Domains, subdomains or page addresses. In the link gap reports, your own sites |
| `targetScope` | `auto` | `domain` with subdomains, `host` only, one `page`, or every page under a path (`prefix`) |
| `competitors` | none | Link gap reports: up to 20 competitor sites or pages |
| `gapMatch` | `any` | `any` competitor or `all` of them |
| `excludeLinkingTo` | none | Link gap reports: leave out sites linking to these too |
| `maxRowsPerTarget` | `100` | Most rows per site, up to 100,000 |
| `maxItems` | `1000` | Most rows in all, up to 1,000,000 |
| `startOffset` | `0` | Skip this many rows of each list |
| `linkStatus` | `live` | `live`, `lost` or `all` links |
| `dofollowOnly` | `false` | Leave out nofollow links |
| `minSourceRank` | none | Lowest rank of the linking site |
| `maxSpamScore` | none | Highest spam score, 0 to 100 |
| `brokenLinks` | `include` | `include`, `exclude` or `only` links to pages that answer with an error |
| `linkChange` | `any` | `newLatest`, `newWithin` or `lostWithin` |
| `changedWithinDays` | `30` | The N days for new or lost links |
| `linkTypes` | all | `text`, `image`, `redirect`, `canonical`, `alternate`, `meta`, `link` |
| `sourceCountries` | none | Two-letter countries of the linking sites (Backlinks, Link gap by page) |
| `sourceLanguage` | none | Two-letter language of the linking page |
| `anchorContains` | none | Words the anchor text must hold |
| `excludeIndirect` | `false` | Leave out links that arrive through a redirect or canonical tag |
| `includeInternal` | `false` | Count links from the site's own subdomains |
| `includeSubdomains` | `true` | Count links to subdomains for a whole domain |
| `sortBy`, `sortDirection` | `auto`, `desc` | Order of the rows |
| `grouping` | `all` | Backlinks: `onePerSite`, `onePerAnchor` or `custom` |
| `customGroupField`, `customGroupLimit` | `sourceDomain`, `1` | Custom grouping: the column and links per value |
| `customFilters` | none | Your own conditions on result columns |
| `customLinkFilters` | none | Your own conditions on the links, counted in every report like "Dofollow links only" |
| `customSort` | none | Up to 3 rules such as `firstSeen,desc` |
| `rankScale` | `100` | Ranks on `100` or `1000` |
| `breakdownLimit` | `10` | Entries kept in each breakdown |
| `pagesDetail` | `linkMetrics` | Most linked pages: `full` adds title, headings and technologies |
| `mainDomainsOnly`, `excludeLargeSites` | `true`, `true` | Sites in common: group subdomains, skip the giants |
| `networkType` | `ip` | `ip` or `subnet` |
| `dateFrom`, `dateTo` | 2019-01-01 or a year ago, today | History reports, `YYYY-MM-DD` |
| `groupBy` | `month` | `day`, `week`, `month` or `year` |
| `includeTargetSummary` | `false` | List reports: the site's totals on each row |
| `exactDofollow` | `false` | Overview, Bulk, Referring domains, Anchors, Pages, Networks: dofollow counts from each link's own flag, one more lookup per site or per 100 rows |
| `includeChanges`, `changesSince` | `false`, 30 days ago | Overview and Bulk: new and lost links since a date |
| `bulkMetrics` | `profile` | Bulk: `profile`, `rank`, `backlinks`, `referringDomains`, `siteSpamScore`, `newLostBacklinks`, `newLostReferringDomains` |
| `includeEmptyDomains` | `true` | Overview and Bulk: a free row for sites with no data |
| `minSiteRank` | none | Overview and Bulk: leave out sites ranked lower |
| `includeOrganicTraffic`, `trafficCountry` | `false`, `worldwide` | Overview and Bulk: search traffic estimate |
| `requestTimeoutSecs` | `60` | Wait per lookup before trying again |

```json
{
  "mode": "backlinks",
  "targets": ["apify.com"],
  "maxRowsPerTarget": 200,
  "dofollowOnly": true,
  "maxSpamScore": 30,
  "grouping": "onePerSite"
}
```

### 📤 What you get back

One real row from an Overview run on 4 November 2026, trimmed:

```json
{
  "type": "overview",
  "target": "apify.com",
  "found": true,
  "rank": 78,
  "backlinks": 2184276,
  "dofollowBacklinks": 1210533,
  "nofollowBacklinks": 973743,
  "dofollowRatio": 0.554,
  "referringDomains": 13078,
  "dofollowReferringDomains": 7339,
  "referringMainDomains": 10487,
  "referringIps": 7862,
  "referringSubnets": 3651,
  "brokenBacklinks": 23573,
  "backlinksSpamScore": 17,
  "siteSpamScore": 0,
  "crawledPages": 802919,
  "textBacklinks": 1917341,
  "imageBacklinks": 28629,
  "redirectBacklinks": 2216,
  "firstSeen": "2019-01-16T11:42:42.000Z",
  "linkAttributes": { "nofollow": 973743, "noopener": 276868, "noreferrer": 175653, "sponsored": 49000, "ugc": 16543, "external": 2290, "alternate": 1 },
  "checkedAt": "2026-11-04T02:42:09.285Z"
}
```

| Field | Read it as |
|---|---|
| `type` | What the row is: `backlink`, `referringDomain`, `anchor`, `page`, `network`, `competitor`, `overview`, `bulk`, `linkGap`, `pageLinkGap`, `history`, `trend`, `newLost` or `note` |
| `target` | The site or page from your list that the row belongs to |
| `rank`, `sourceDomainRank`, `sourcePageRank` | Strength from the links pointing at a site or page, on the scale you chose |
| `totalMatching` | How many rows meet your filters in all; compare it with "Rows per site" to see how much is left |
| `spamScore` | 0 to 100, higher is more likely spam |
| `dofollowBacklinks`, `dofollowRatio` | Worked out from the nofollow count; `null` when that count isn't known. With `exactDofollow` on, taken from each link's own flag, and `dofollowExact` is `true` |
| `anchorType` | `branded`, `url`, `generic` ("click here"), `image`, `empty` or `text` |
| `firstSeen`, `lastSeen`, `lostDate` | ISO dates of when the link was found, last checked and found gone |
| `isLost`, `isBroken` | Gone since an earlier check; pointing at a page that answers with an error |
| `found` | `false` on a free row for a site with no data |

### 🧾 Reading the output

Rows with data are the ones you pay for. Filter on `type` to keep one kind, for example `type` equal to `backlink`.

A site with no data gets a free row with `found: false` in Overview and Bulk metrics, so your list lines up with the output.

Note rows are free and carry `type: "note"`, `ok: false`, `_diagnostic: true`, an `errorCode` and a plain `error` and `details`:

| `errorCode` | Means |
|---|---|
| `BAD_INPUT` | An option couldn't be used. Nothing was looked up |
| `NOT_FOUND` | One site had nothing for this report |
| `NO_RESULTS` | Nothing matched, or pages in a row had no rows meeting your filters |
| `NOT_SERVED` | A site, the exact dofollow counts of some rows, or today's point of a date series wasn't served this time. Run it again later |
| `COST_LIMIT`, `TIME_LIMIT`, `MAX_ITEMS` | The run hit your spending limit, its time limit or "Maximum rows in all" |
| `FREE_PLAN_LIMIT` | On the free plan, the run's one lookup had nothing to deliver. Any paid plan removes the limit |
| `SERVICE_UNAVAILABLE`, `PRICE_UNREADABLE`, `UNEXPECTED_ERROR` | The run stopped on our side. Rows already delivered are kept |

### 💡 What people use it for

- Anyone cleaning up after an SEO agency: referring domains sorted by spam score, then the worst ones into a disavow file.
- A site moving to new addresses: Most linked pages shows which old addresses must keep their redirects.
- Someone about to buy a guest post or an expired domain: Overview with "Add new and lost links" shows whether its links are growing or leaking.
- An outreach list: Link gap by site gives the sites that link to three competitors and not to you.

One recipe: get the sites ranking for your keyword with [Google Search Results Scraper](https://apify.com/dami_studio/google-search-results-scraper), put the top five into `competitors` here with `mode` set to `linkGap` and `gapMatch` to `all`, then check the shortlist's domains in [Domain Inspector](https://apify.com/dami_studio/domain-inspector) before you write to them.

### 🚧 What it does not do

- It reports links pointing at a site, not the links a site makes to others.
- A link placed today can take days to show up, because the records come from crawling the web, which never sees every page at once.
- Ranks and spam scores are this tool's own. They are not the scores other SEO tools publish, and they won't match them.
- No contact details for the sites that link to you.
- No keyword rankings. Search traffic is the one estimate on offer, as a paid extra.
- It is not an official tool of any platform or company named on this page. Dami's Studio is independent and is not affiliated with or endorsed by any of them.

### 🧭 Which SEO tool do you need?

| If you want | Use |
|---|---|
| Backlinks, referring domains, anchors and link gaps | This one, [Backlink Checker](https://apify.com/dami_studio/backlink-checker) |
| Who ranks for a search on Google | [Google Search Results Scraper](https://apify.com/dami_studio/google-search-results-scraper) |
| DNS, WHOIS, TLS certificate and tech stack of a domain | [Domain Inspector](https://apify.com/dami_studio/domain-inspector) |
| A site's pages as clean text for an audit | [Website Intelligence Crawler](https://apify.com/dami_studio/website-intelligence-crawler) |
| Search suggestions for keyword ideas | [Keyword Autocomplete Scraper](https://apify.com/dami_studio/keyword-autocomplete-scraper) |
| Visits, ranks and audience for a list of domains | [Similarweb Scraper](https://apify.com/dami_studio/similarweb-traffic-scraper) |

### ❓ Questions people ask

#### Why don't the numbers match the backlink tool I use?

Every backlink tool counts from its own crawl, and no crawl sees the whole web. Compare sites with each other using one tool's numbers, not one tool against another.

#### Do I need an account with an SEO tool to check backlinks?

No. An Apify account is all it takes.

#### How do I track new and lost backlinks every week?

Schedule a run of Backlinks with "New or lost links" set to first seen in the last 7 days, and a second with lost in the last 7 days and "Links to count" set to lost. For totals only, the New and lost over time report grouped by week does it in one row per week.

#### How many backlinks can one run return?

Up to 100,000 per site and 1,000,000 in all. Bulk metrics checks up to 10,000 sites in one run.

#### Can I call it from code or connect it to an AI assistant?

Yes. The API tab on the actor page has ready-made calls, and AI assistants connect through Apify's MCP server at `https://mcp.apify.com/?tools=fetch-actor-details,dami_studio/backlink-checker`. Set `maxTotalChargeUsd` on the run to cap the bill.

#### Is checking backlinks legal?

The rows are facts about public web pages: which page links where, the words in the link, and when it was seen. Personal data is rare here, but a linking page can be someone's own blog, so GDPR and similar laws apply to what you keep. The terms of the sites you contact still apply to how you use the list. Apify's write-up on [the legality of web scraping](https://blog.apify.com/is-web-scraping-legal/) covers the wider question, and we are not lawyers.

### 🆘 If something breaks

Open the **Issues** tab on the actor page and send the run ID with the input you used. The `errorCode` and `details` on a note row usually name the reason already.

# Actor input Schema

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

Pick one report. Each row is one link, one linking site, one anchor, one page or one site, depending on the report.

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

Domains (example.com), subdomains (blog.example.com) or full page addresses (https://example.com/pricing). One per line. In the two link gap reports these are your own sites, the ones the rows leave out.

## `targetScope` (type: `string`):

Auto treats a bare domain as the whole site with its subdomains, and an address with a path as that one page.

## `competitors` (type: `array`):

Up to 20 sites or pages whose links you want. The rows are sites, or pages, that link to them and not to your sites.

## `gapMatch` (type: `string`):

Any: the site links to at least one competitor. All: it links to every one of them.

## `excludeLinkingTo` (type: `array`):

Link gap reports: sites whose linkers you already have or don't want. Up to 10 together with your own sites.

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

Most rows a site can return in the list reports. In the link gap reports, most rows in all. Big sites have millions of backlinks, so set this to what you need.

## `maxItems` (type: `integer`):

The run stops once it has delivered this many rows with data, across all sites.

## `startOffset` (type: `integer`):

Start each list this far down, for example to pick up where an earlier run stopped.

## `linkStatus` (type: `string`):

Lost links are ones the crawler found before and no longer finds.

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

Leave out links marked nofollow.

## `minSourceRank` (type: `integer`):

On the rank scale set below, 0 to 100 unless you pick 0 to 1000.

## `maxSpamScore` (type: `integer`):

0 to 100. Links scoring above this are left out.

## `brokenLinks` (type: `string`):

A broken link points at a page that answers with an error (4xx or 5xx). Those are the ones worth asking a site to fix.

## `linkChange` (type: `string`):

For tracking a link profile from run to run.

## `changedWithinDays` (type: `integer`):

The window for "First seen in the last N days" and "Lost in the last N days".

## `linkTypes` (type: `array`):

Leave empty for every type.

## `sourceCountries` (type: `array`):

Two-letter codes such as US or DE. Works with Backlinks and Link gap by page.

## `sourceLanguage` (type: `string`):

Two-letter code such as en or de.

## `anchorContains` (type: `string`):

Only links whose anchor text holds these words, in any letter case.

## `excludeIndirect` (type: `boolean`):

Links that reach the site through a redirect or a canonical tag rather than pointing at it directly.

## `includeInternal` (type: `boolean`):

Off: a link from blog.example.com to example.com is not counted as a backlink.

## `includeSubdomains` (type: `boolean`):

For a whole domain: links to blog.example.com count for example.com too.

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

Auto keeps the strongest links first. Not every sort fits every report; the run says so if one doesn't.

## `sortDirection` (type: `string`):

Which end of the sort comes first.

## `grouping` (type: `string`):

One link per linking site gives a quick list of who links to you.

## `customGroupField` (type: `string`):

The column to group on when "Group links" is set to a number per value.

## `customGroupLimit` (type: `integer`):

For custom grouping: how many links each value keeps.

## `customFilters` (type: `array`):

Conditions on the result columns, for example \[\["sourceDomainRank", ">=", 50], "and", \["anchor", "like", "%shoes%"]]. Join with "and" or "or". In the link gap reports, put the competitor's number in front of a column: "1.rank" is the first competitor's. At most 8 conditions in all, counting the options above.

## `customLinkFilters` (type: `array`):

Conditions on the links themselves, in the Backlinks report's column names, for example \[\["sourceDomainRank", ">=", 40], "and", \["linkType", "=", "text"]]. In Overview, Referring domains, Anchor texts and the other grouped reports they decide which links are counted, like "Dofollow links only" does.

## `customSort` (type: `array`):

Up to 3 rules such as firstSeen,desc, on the result columns. Replaces "Sort by".

## `rankScale` (type: `string`):

Ranks count the strength of the links pointing at a page or site. Pick the scale you are used to.

## `breakdownLimit` (type: `integer`):

How many entries each breakdown keeps: endings of the linking sites, their countries, link types, link attributes and where links sit on the page.

## `pagesDetail` (type: `string`):

Full adds each page's title, headings, word count, language and technologies to its link counts. Works on a domain or subdomain.

## `mainDomainsOnly` (type: `boolean`):

Count shop.example.com as example.com.

## `excludeLargeSites` (type: `boolean`):

Sites such as search engines and marketplaces share links with almost everyone and crowd out real competitors.

## `networkType` (type: `string`):

One row per IP address of the linking sites, or per subnet, which groups sites hosted side by side.

## `dateFrom` (type: `string`):

YYYY-MM-DD. History goes back to 2019-01-01 and starts there unless you set this; the two over-time reports start a year ago.

## `dateTo` (type: `string`):

YYYY-MM-DD. Today unless you set it.

## `groupBy` (type: `string`):

For the two over-time reports. By day covers a year at most.

## `includeTargetSummary` (type: `boolean`):

List reports: each row also carries the site's rank, backlinks, referring domains, dofollow share and spam score. One more lookup per site.

## `exactDofollow` (type: `boolean`):

Overview, Bulk metrics, Referring domains, Anchors, Pages and Networks: dofollow and nofollow counts taken from each link's own flag, the one the Backlinks report shows, so a link on a page whose robots tag says nofollow counts as nofollow. Rows get dofollowExact: true. One more lookup per site, or per 100 rows or fewer of a list, charged as a dofollow lookup.

## `includeChanges` (type: `boolean`):

Overview and Bulk metrics: backlinks and referring domains gained and lost since the date below. Two more lookups per 100 sites that have data.

## `changesSince` (type: `string`):

YYYY-MM-DD, within the last year. 30 days ago unless you set it.

## `bulkMetrics` (type: `array`):

Each part is one lookup per 100 sites. The link profile has everything below except the site's own spam score. The spam score and the new and lost parts are looked up only for sites that have data.

## `includeEmptyDomains` (type: `boolean`):

Overview and Bulk metrics: a free row for a site the index has nothing on, so the output lines up with your list.

## `minSiteRank` (type: `integer`):

Sites ranked under this are left out of the results and not charged.

## `includeOrganicTraffic` (type: `boolean`):

Overview and Bulk metrics: estimated monthly visits from search and how many search results the site appears in. One more lookup per 100 sites that have data.

## `trafficCountry` (type: `string`):

Where the search traffic is counted.

## `requestTimeoutSecs` (type: `integer`):

How long one lookup may take before it is tried again.

## Actor input object example

```json
{
  "mode": "backlinks",
  "targets": [
    "apify.com"
  ],
  "targetScope": "auto",
  "gapMatch": "any",
  "maxRowsPerTarget": 100,
  "maxItems": 1000,
  "startOffset": 0,
  "linkStatus": "live",
  "dofollowOnly": false,
  "brokenLinks": "include",
  "linkChange": "any",
  "changedWithinDays": 30,
  "excludeIndirect": false,
  "includeInternal": false,
  "includeSubdomains": true,
  "sortBy": "auto",
  "sortDirection": "desc",
  "grouping": "all",
  "customGroupField": "sourceDomain",
  "customGroupLimit": 1,
  "rankScale": "100",
  "breakdownLimit": 10,
  "pagesDetail": "linkMetrics",
  "mainDomainsOnly": true,
  "excludeLargeSites": true,
  "networkType": "ip",
  "groupBy": "month",
  "includeTargetSummary": false,
  "exactDofollow": false,
  "includeChanges": false,
  "bulkMetrics": [
    "profile"
  ],
  "includeEmptyDomains": true,
  "includeOrganicTraffic": false,
  "trafficCountry": "worldwide",
  "requestTimeoutSecs": 60
}
```

# Actor output Schema

## `results` (type: `string`):

Every row in the default dataset. The type column says what each row is: backlink, referringDomain, anchor, page, network, competitor, overview, bulk, linkGap, pageLinkGap, history, trend, newLost, or note.

# 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("dami_studio/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("dami_studio/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 dami_studio/backlink-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dami_studio/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/5mBMHR7YD4tRsG2Kk/builds/cOqAlVva0rOjgpznS/openapi.json
