Automate Lost Backlink Checks with n8n & DataForSEO

Discover how to automatically verify lost backlinks using n8n with Google Sheets and the DataForSEO API. This workflow saves you hours by updating backlink statuses precisely, preventing costly SEO mistakes.
googleSheets
httpRequest
code
+4
Workflow Identifier: 1948
NODES in Use: manualTrigger, googleSheets, code, splitInBatches, httpRequest, wait, stickyNote
Automate Lost Backlink Checks with n8n and DataForSEO

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow checks if backlinks to your website are still active and “dofollow.”

It reads backlink URLs, crawls each URL, and looks for your landing page links.

If a backlink is lost or marked “nofollow,” it updates a Google Sheet with this status.

This saves time by automating backlink health checks and keeping data fresh.


Tools and services used

  • n8n: Automation platform to run the workflow.
  • Google Sheets: Stores backlink URLs and landing page data.
  • DataForSEO API: Crawls URLs and retrieves backlink link status.


How the workflow works (Inputs → Processing → Output)

Inputs

  • Backlink URLs and landing page links from Google Sheets.

Processing Steps

  • Extract domain names from backlink URLs.
  • Send crawl requests to DataForSEO API.
  • Wait 20 seconds for crawling.
  • Request backlink status results from the API.
  • Check if backlink exists and whether it is dofollow.
  • Classify backlink status as “Live,” “Lost,” or “Lost (Nofollow)”.

Output

  • Backlink status updated in the same Google Sheet automatically.


Who should use this workflow

If backlink checking wastes time or causes errors, this workflow helps.

Marketers checking hundreds of backlinks will save hours.

It gives clear, fast backlink health info so users can fix SEO issues.


Beginner step-by-step: How to use this workflow in n8n production

Import workflow

  1. Download the workflow file using the “Download” button on this page.
  2. Inside the n8n editor, click the menu and choose “Import from File.”
  3. Select the downloaded workflow file to import it.

Configure credentials and settings

  1. Add Google Sheets OAuth2 credentials in n8n.
  2. Add DataForSEO API Key and Password using HTTP Basic Authentication in n8n credentials.
  3. Update Google Sheet ID, sheet name, and range if different from defaults (range D1:E).
  4. Check the Code node has correct column names matching your sheet like “Backlink URL” and “Landing page.”

Test and activate workflow

  1. Run the workflow once manually using the Manual Trigger to confirm it works.
  2. Check Google Sheet updates backlink statuses correctly.
  3. Activate the workflow to run on-demand or set a schedule by adding a CRON trigger.


Key nodes and code snippets

The Code node extracts domain with this JavaScript:

return items.map(item => {
  let url = item.json['Backlink URL'];
  let domain = url.match(/https?:\/\/(?:www\.)?([^\/]+)/)[1];
  return { json: { domain, url } };
});

The final Code node checks status with code:

const result = $json.tasks?.[0]?.result?.[0];
const links = result?.items || [];

let backlink = $('Reads Google Sheets').item.json['Landing page'];

let foundLink = links.find(link => link.link_to === backlink);

let status = "Lost";
if (foundLink) {
  status = foundLink.dofollow ? "Live" : "Lost (Nofollow)";
}

return {
  json: {
    backlink: backlink,
    status: status
  }
};


Customization ideas

  • Change crawl depth by setting max_crawl_pages higher in the DataForSEO task POST request.
  • Increase batch size in the SplitInBatches node to run multiple checks at once carefully.
  • Add a Slack node to notify about lost backlinks instantly.
  • Modify the status Code node to mark nofollow backlinks as “Skipped” instead of “Lost (Nofollow).”
  • Include more columns in the Google Sheets read range to check additional backlink info.


Troubleshooting common errors

  • HTTP 401 Unauthorized from DataForSEO: API Key or password is wrong. Recheck credentials in n8n and try again.
  • Empty data from Google Sheets node: Check if sheet name and cell range are correct and the sheet has data.
  • Status never changes in the sheet: Confirm column names and mapping exactly match Google Sheet columns.


Pre-production checklist

  • Columns in Google Sheet must be “Backlink URL” and “Landing page” exactly.
  • Test DataForSEO API connectivity by making a manual curl or request.
  • Run the workflow once with one backlink to verify results.
  • Check n8n logs for any errors during test runs.
  • Backup your Google Sheet before running bulk updates.


Deployment guide

  • Activate the imported workflow for manual or scheduled execution.
  • Use a CRON trigger for repeating backlink health checks weekly or monthly.
  • Monitor execution logs to spot failed API calls or errors.
  • Adjust batch size and waiting times to keep API use within limits.
  • For self hosting n8n users, see self-host n8n resources for optimal server setup.


Summary

✓ Saves 10+ hours monthly by automating backlink checks.

✓ Updates Google Sheets with backlink health live status.

✓ Reduces manual errors and missed lost backlinks.

→ Lets user fix SEO problems faster and keep data accurate.


Automate Lost Backlink Checks with n8n and DataForSEO

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow automatically checks if backlinks are active and dofollow, then updates their status in Google Sheets.
It uses Google Sheets to store links and the DataForSEO API to crawl and verify backlink status.
Add Google Sheets and DataForSEO API credentials, update sheet IDs or ranges if needed, test once, then activate for use.
Errors like HTTP 401 come from wrong API keys; empty Google Sheets data often means wrong sheet name or range; mismatched column names stop status updates. Fix these by correcting credentials, sheet info, and mappings.
Author
Written By
Ritu Sanjali

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.