Monitoring and analyzing your referring domains and backlinks is crucial for improving website authority and search engine rankings. Using DataForSEO’s powerful Backlinks API, you can access our live backlink index (check Our Data page for its current size) and pull your dofollow referring domains, dofollow backlinks, and their anchor text in a few requests. Use the data to adjust your SEO and link-building strategy, or show it to users of your own product.
If you’re moving from another backlink checker API, there’s a field mapping further down with our equivalent of each value you may be using now. But first, let’s clarify some key terms.
What is a Referring Domain?
A referring domain is a website that sends a link or multiple links to your website. These links send signals to search engine bots about your website’s authority and credibility in the digital landscape, and can potentially help you rank higher in search results.
What is a Dofollow Referring Domain?
A dofollow referring domain is a website that points to your website with at least one dofollow backlink or multiple such links.
What is a Dofollow Backlink?
A dofollow backlink is a hyperlink from one website to another that allows search engine bots to follow the link and pass authority signals (Backlink Rank, also known as “link juice”) from the referring page and website to the referenced source.
See also: What’s the difference between referring pages and backlinks?
Technically, the dofollow links do not have a special dofollow attribute and are considered dofollow simply if the nofollow, UGC or sponsored attributes are absent. The nofollow attribute means it’s a link the referrer doesn’t want search engines to follow and pass authority to. The sponsored attribute functions similarly and is intended for paid links. The UGC is reserved for links within user-generated content, such as comments or forum posts.
Examples of a dofollow link:
<a href="https://dataforseo.com/">DataForSEO</a>
Examples of a nofollow link:
<a href="https://dataforseo.com/" rel="nofollow">DataForSEO</a>
<a href="https://dataforseo.com/" rel="ugc nofollow">DataForSEO</a>
<a href="https://dataforseo.com/" rel="sponsored">DataForSEO</a>
Note: Google says it treats nofollow, UGC, and sponsored attributes only as hints when crawling the web and distributing authority. Our index still counts such links as backlinks, but they add nothing to rank. A dofollow filter therefore changes your link and domain counts, while rank already leaves those links out.
Backlink Metrics Returned by Backlinks API: Ahrefs Field Mapping for Dofollow Data
If your product or reports already use Ahrefs fields such as domain rating, referring domains, and anchor text, here’s where each value sits in our API and how to limit it to dofollow links.
| Ahrefs metric | Ahrefs API field (endpoint) | Backlinks API field and endpoint | How to get the dofollow-only value |
| Domain Rating (DR) | domain_rating (domain-rating) |
rank in Summary or Bulk Ranks when the target is a domain |
No extra step: nofollow, UGC, and sponsored links add nothing to rank |
| URL Rating (UR) | url_rating (url-rating) |
rank in Summary or Bulk Ranks when the target is a full page URL |
No extra step, for the same reason |
| Referring domains (count) | live_refdomains (backlinks-stats) |
referring_domains, referring_main_domains in Bulk Referring Domains or Summary |
Subtract referring_domains_nofollow or referring_main_domains_nofollow |
| Referring domains (list) | domain, domain_rating, links_to_target, dofollow_links (refdomains) |
domain, rank, backlinks for each item in Referring Domains |
"backlinks_filters": ["dofollow", "=", true] |
| DR and UR of the linking site and page | domain_rating_source, url_rating_source (all-backlinks) |
domain_from_rank, page_from_rank for each item in Backlinks |
"filters": ["dofollow", "=", true] |
| Anchors | anchor, refdomains, dofollow_links (anchors) |
anchor with per-anchor counts in Anchors |
"backlinks_filters": ["dofollow", "=", true] |
| Backlinks (count) | live (backlinks-stats) |
total_count in Backlinks, backlinks in Summary |
filters in Backlinks, backlinks_filters in Summary |
Expect the numbers to differ from the ones you had before. Our rank runs from 0 to 1000 by default, and the Ahrefs score stops at 100. You can pass "rank_scale": "one_hundred" in a request to get our values on a 0 to 100 range, but they still won’t match, because each provider calculates its score from its own index with its own formula. The value you get also depends on which endpoint returned it. For example, domain_rating in the Ahrefs refdomains list scores each linking domain as a whole, whereas rank in our Referring Domains results counts only the authority reaching your target from that domain. To get a linking domain’s overall score, send it to Bulk Ranks.
For a broader look at the two platforms, see our DataForSEO vs Ahrefs comparison.
What Rank, Domain from Rank, and Page from Rank Mean in These Responses
All three fields come from the same PageRank-based calculation. They differ in what they score:
rank: from Summary or Bulk Ranks, it’s the authority of the target you sent. In list endpoints such as Backlinks, Referring Domains, and Anchors, it shows only what each item in the list contributes to your target;domain_from_rank: the authority of the whole site that hosts a backlink;page_from_rank: the authority of the exact URL that hosts a backlink.
This is why a referring domain can have a lower rank in the Referring Domains results than in Summary, with both values correct (here’s an example). Our Rank help article explains how the score is calculated, which links pass authority, and how the conversion to 0 to 100 works.
Next come the requests: dofollow referring domains first, then backlinks and anchors.
How to Check Your Dofollow Referring Domains using Backlinks API
With our Backlinks API you can list the domains linking to your domain, subdomain, or page, keep only the dofollow ones, and count referring domains for many targets in one request.
The Bulk Option to Get the Number of Live Dofollow Referring Domains
To collect live data in bulk, use the Bulk Referring Domains endpoint.
POST https://api.dataforseo.com/v3/backlinks/bulk_referring_domains/live
In the request body, indicate your targets (up to 1,000 domains, subdomains, or webpages) as in the example below.
[
{
"targets": [
"forbes.com",
"cnn.com",
"bbc.com",
"yelp.com",
"https://www.apple.com/iphone/",
"https://ahrefs.com/blog/",
"ibm.com",
"https://variety.com/",
"https://stackoverflow.com/",
"www.trustpilot.com"
]
}
]
Don’t forget to specify your credentials (API login and password) in the Authorization tab. Your API login and password are indicated in the DataForSEO Dashboard.
Once you send the request and obtain the results, you’ll see the following data for each of your targets.
{
"target": "forbes.com",
"referring_domains": 938837,
"referring_domains_nofollow": 96596,
"referring_main_domains": 787233,
"referring_main_domains_nofollow": 78071
}
The referring_domains field will show you how many main domains (root domains, like site.com) and their subdomains (e.g. blog.site.com) link to the target with any type of live backlink. That is, if site.com points 1 link to the target and blog.site.com points 1 link to the target, this metric will count them as two referring domains.
The referring_main_domains will show data on the number of main domains pointing to your target. That is, if site.com points 1 link to the target and blog.site.com points 1 link to the target, the referring_main_domains metric will count them as one referring domain.
Now, each of these metrics has a supporting metric with a _nofollow added at the end of its name. In Bulk Referring Domains responses, we include links with rel="ugc" and rel="sponsored" in the calculation of referring_domains_nofollow and referring_main_domains_nofollow metrics.
So, using these metrics, you can calculate the number of domains or main domains sending dofollow links to the target. Subtract the value in referring_domains_nofollow or referring_main_domains_nofollow from the total count of referring_domains or referring_main_domains accordingly. For the example above, forbes.com has 938,837 − 96,596 = 842,241 dofollow referring domains. If you’re checking against another provider’s dofollow referring domains count, use this number.
The In-Depth Option to Get Data on Dofollow Referring Domains
If you want to dive deeper and collect detailed data on your dofollow referring domains, use the Referring Domains endpoint.
POST https://api.dataforseo.com/v3/backlinks/referring_domains/live
Using this endpoint, you can indicate one target at a time and obtain up to 1000 referring domains in the results. If you want the results to include only dofollow domains, you should specify so with an appropriate filtering parameter in the request body. Here’s an example.
[
{
"target": "backlinko.com",
"limit": 1000,
"order_by": ["rank,desc"],
"backlinks_status_type": "live",
"backlinks_filters": ["dofollow", "=", true]
}
]
You can use additional parameters in the request body to set a different results order, indicate if the subdomains of the target should be included in the calculation, and whether or not to include data on lost links or indirect links. Learn more in our documentation.
Once you have all the necessary fields in the request body and have authorized using the API login and password from the DataForSEO Dashboard, send your request.
The results will provide you with a detailed overview of referring domains pointing to the target you specified, including the rank your target gets from each domain, Spam Score, the number of the domain’s backlinks, referring domains, and more. The total_count parameter shows how many live referring domains link to your target with at least one dofollow backlink.
How to Check Your Dofollow Backlinks using Backlinks API
To collect the number of live dofollow backlinks for your domain, subdomain, or webpage along with detailed information about each backlink, the steps are close to the ones for referring domains.
Use the Backlinks endpoint: POST https://api.dataforseo.com/v3/backlinks/backlinks/live
In the request body, indicate your target and filter as in the example below.
[
{
"target": "forbes.com",
"filters": ["dofollow", "=", true],
"backlinks_status_type": "live",
"limit": 1000
}
]
By default, the API returns all backlinks. To group them, set the mode parameter and get one backlink per domain or one per anchor. You can also modify the limit of results (from 1 to 1000), set a different results order, indicate if the subdomains of the target should be included in the calculation, and more. See the details in our documentation.
Next, authorize using your API login and password from the DataForSEO Dashboard, and submit your request.
Each item in the response is one referring page. If a page links to your target several times, it appears once, with the link that has the highest rank, and links_count gives the number of links from that page. Every item also has domain_from_rank and page_from_rank, which score the linking site and the linking page. The total_count parameter shows how many live dofollow backlinks your target has.
Similarly, you can collect a Summary of your target’s dofollow live backlink data or obtain information based on live dofollow backlinks for your Domain Pages. Just use the appropriate parameters in your request body and modify their values as necessary following our Backlinks API documentation.
How to Check Your Dofollow Anchor Text using Backlinks API
If you need an anchor text API, use our Anchors endpoint. It groups the target’s backlinks by anchor text and returns counts for each anchor.
POST https://api.dataforseo.com/v3/backlinks/anchors/live
This request returns up to 1,000 anchors sorted by the number of referring domains, counting dofollow links only.
[
{
"target": "forbes.com",
"limit": 1000,
"order_by": ["referring_domains,desc"],
"backlinks_status_type": "live",
"backlinks_filters": ["dofollow", "=", true]
}
]
Each item has the anchor plus backlinks, referring_domains, referring_main_domains, backlinks_spam_score, and the rank your target receives through links with that anchor.
In conclusion, with our Backlinks API you can count and list your website’s dofollow referring domains, backlinks, and anchors, and line these backlink metrics up with the fields you used with another provider. By analyzing this data, you can measure the quality and quantity of your backlink profile and identify areas for improvement in your link-building strategy. Our Backlinks API reference describes every request and response field used here: See Docs.
Backlinks API metrics and related guides:
What is Rank, Domain from Rank, and Page from Rank in Backlinks API?
Why do I get different Rank values for the same domain?
What are average backlink metrics?
What is Spam Score and how is it calculated?
How to indicate a domain/subdomain/page/path as a target?
A Kickstart Guide to Using DataForSEO APIs
What are broken backlinks / broken pages?
How do I find my backlink competitors?