What This Workflow Does
This n8n workflow automates the tedious process of extracting internal links from webpages, saving SEO professionals and web developers hours of manual work. It systematically crawls through webpage HTML to identify all internal links, organizes them in a structured format, and prepares the data for analysis.
Manual internal link audits can take hours for large websites, often requiring developers to write custom scripts or SEOs to use multiple tools. This workflow consolidates the process into a single automated solution that can be scheduled to run regularly, ensuring your internal linking strategy remains optimized over time.
How It Works
1. URL Input
The workflow starts by accepting a target webpage URL. You can input multiple URLs for batch processing or connect it to a CMS to automatically analyze new content.
2. HTML Retrieval
Using n8n's HTTP Request node, the workflow fetches the complete HTML of the specified webpage, including all rendered content that would contain internal links.
3. Link Extraction
A specialized function node parses the HTML to identify all anchor tags (a href) that point to pages within the same domain, filtering out external links and non-HTML resources.
4. Data Organization
The extracted links are cleaned and formatted into a structured dataset with columns for source URL, target URL, anchor text, and link attributes.
5. Output Delivery
The final dataset can be exported to Google Sheets, Notion, or your preferred analytics platform for further SEO analysis and reporting.
Who This Is For
This workflow is ideal for:
- SEO specialists conducting technical audits
- Web developers optimizing site architecture
- Content managers maintaining large websites
- Digital marketing agencies servicing multiple clients
- E-commerce stores with extensive product catalogs
What You'll Need
- An active n8n instance (cloud or self-hosted)
- Basic understanding of n8n interface
- Access to the websites you want to analyze
- Optional: Integration with a spreadsheet or database for results
Quick Setup Guide
- Download the JSON template file
- Import into your n8n instance
- Configure the HTTP Request node with your target URL
- Set up your preferred output method (Google Sheets, CSV, etc.)
- Test with a single page before scaling to multiple URLs
Key Benefits
Save 5-10 hours per audit: Automating internal link extraction eliminates manual review of hundreds or thousands of pages.
Improve SEO performance: Regular link analysis helps optimize site structure and distribute page authority effectively.
Identify broken links proactively: Automated checks can flag 404 errors before they impact user experience.
Standardize reporting: Consistent data formatting makes it easier to track changes over time and compare across sites.
Scale across multiple websites: The workflow can be duplicated and customized for different domains or clients.