AutomationMart
Home/Browse/Extract Website URLs from Sitemap.XML for SEO Analysis
n8n

Extract Website URLs from Sitemap.XML for SEO Analysis

n8nn8n9 modulesv1.0
Google SheetsGitHubFacebook

Overview This n8n workflow automates the process of crawling a website's sitemap to extract URLs, which is particularly useful for SEO analysis, website auditing, or content monitoring. By leveraging n8n's nodes, the workflow fetches the sitemap from a specified URL, processes the XML data, and extracts individual URLs, which can then be converted into a downloadable file or integrated with tools like Google Sheets. How It Works The workflow operates in a sequential manner, utilizing a se

At a glance

Extract Website URLs from Sitemap.XML for SEO Analysis is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Google Sheets, GitHub, Facebook. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Google Sheets, GitHub, Facebook
Modules
9
Price
Free
Version
v1.0
Extract Website URLs from Sitemap.XML for SEO Analysis workflow diagram

About this workflow

Overview This n8n workflow automates the process of crawling a website's sitemap to extract URLs, which is particularly useful for SEO analysis, website auditing, or content monitoring. By leveraging n8n's nodes, the workflow fetches the sitemap from a specified URL, processes the XML data, and extracts individual URLs, which can then be converted into a downloadable file or integrated with tools like Google Sheets. How It Works The workflow operates in a sequential manner, utilizing a series of nodes to fetch, parse, and process sitemap data: 1. Trigger: Initiates when the user clicks "Test workflow" (Manual Trigger node). 2. Set URL: Defines the base domain (e.g., for the sitemap (Set URL node). 3. Crawl Sitemap: Fetches the main sitemap file (sitemap.xml) from the specified domain using an HTTP request (Crawl sitemap node). 4. Parse XML: Converts the sitemap XML into a JSON format for easier processing (XML node). 5. Split Sitemap: Extracts individual sitemap entries (e.g., <sitemap> tags) from the parsed data (Split Out node). 6. Crawl Sub-Sitemap: Fetches each sub-sitemap URL listed in the main sitemap (Crawl sitemap 2 node). 7. Parse Sub-Sitemap XML: Converts the sub-sitemap XML into JSON (XML 2 node). 8. Split URLs: Extracts individual URLs (e.g., <url> tags) from the sub-sitemap (Split Out 2 node). 9. Convert to File: Saves the extracted URLs into a file for download or further use (Convert to File node). This workflow supports both single sitemap files and sitemap indexes that reference multiple sub-sitemaps, ensuring comprehensive URL extraction. How to Use To implement this workflow in n8n, follow these steps: 1. Set Up n8n: Ensure you have an active n8n instance (Cloud, npm, or self-hosted). Refer to the n8n documentation for setup instructions. 2. Import Workflow: Copy the JSON from the provided Extract Website URLs from Sitemap.XML for SEO Analysis.json file and import it into your n8n instance via the workflow editor. 3. Configure the Domain: - In the Set URL node, update the Domain parameter with the target website's base URL (e.g., - Alternatively, in the Crawl sitemap node, directly paste the full sitemap URL if known (e.g., 4. Test the Workflow: - Click "Test workflow" to execute the Manual Trigger node. - Verify that the workflow fetches the sitemap and processes the URLs correctly. 5. Download or Integrate: - The Convert to File node generates a file containing the extracted URLs. - Optionally, replace this node with a Google Sheets node to append URLs to a spreadsheet. Refer to the Google Sheets node documentation for setup. 6. Save and Activate: Save the workflow and activate it for production use if needed, using a trigger like a schedule or webhook (see Trigger Node). Requirements - n8n Instance: An active n8n instance (version 1.0 or later recommended) on n8n Cloud, npm, or self-hosted (Docker). See Choose your n8n for details. - Technical Knowledge: Basic understanding of n8n's editor UI and node configuration. Familiarity with XML sitemaps is helpful but not mandatory. - Permissions: For self-hosted setups, ensure the n8n process has network access to fetch the sitemap URL. For Docker deployments, verify permissions as outlined in the n8n v1.0 migration guide. - Optional: If integrating with Google Sheets, valid Google Sheets credentials are required (see Credentials). - Timeout Configuration: The HTTP Request nodes (Crawl sitemap and Crawl sitemap 2) have a 10-second timeout. Adjust the timeout parameter in the node settings if dealing with slow-responding servers. FAQ Q: What happens if the sitemap is large or contains many sub-sitemaps? A: The workflow handles sitemap indexes by splitting and processing each sub-sitemap individually. For very large sitemaps, ensure your n8n instance has sufficient resources (memory and CPU) to avoid performance issues. See Scaling n8n for optimization tips. Q: Can I use this workflow with a specific sitemap URL instead of a domain? A: Yes, in the Crawl sitemap node, replace the url parameter ({{ $json.Domain }}sitemap.xml) with the direct sitemap URL (e.g., Update the node’s notes for clarity. Q: Why am I getting a timeout error? A: The HTTP Request nodes have a default timeout of 10 seconds. If the target server is slow, increase the timeout value in the options parameter of the Crawl sitemap or Crawl sitemap 2 nodes. Q: How can I save the URLs to Google Sheets instead of a file? A: Replace the Convert to File node with a Google Sheets node. Configure it with your Google Sheets credentials and map the loc field from the Split Out 2 node to the desired spreadsheet column. Refer to the Google Sheets node documentation. Q: Is this workflow compatible with older n8n versions? A: The workflow uses nodes compatible with n8n version 1.0 and later. For older versions, check for deprecated features (e.g., MySQL support) in the n8n v1.0 migration guide. Q: Can I automate this workflow to run periodically? A: Yes, replace the Manual Trigger node with a Schedule Trigger node to run the workflow at set intervals. See Trigger Nodes for configuration details. For further assistance, consult the n8n Community Forum or submit an issue on the n8n GitHub repository. Need help customizing? Contact me for consulting and support or add me on Facebook or email.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Source top GitHub talent by language & location with Gemini AI and BrowserAct

AI-Powered Top GitHub Talent Sourcing (by Language & Location) to Google Sheet This n8n template is a powerful talent sourcing engine that finds, analyzes, and scores GitHub contributors using a custom AI formula. This workflow is ideal for technical recruiters, hiring managers, and team leads who want to build a pipeline of qualified candidates based on specific technical skills and location. --- Self-Hosted Only This Workflow uses a community contribution and is designed and tested for self-h

Free

Generate images and convert to video using Flux, Kraken & Runway

(Image Generation → Hosting → Video Generation) This workflow is designed for creators, automation enthusiasts, and indie hackers who want to generate image-based videos automatically using AI tools — at a low cost. --- ⚙️ Workflow Overview This automation performs the following steps: 1. Trigger (Schedule or manual) 2. Generate an image using Flux (choose between two APIs) 3. Upload the image to Kraken.io to get a public URL 4. Send the image to Runway ML (choose between two APIs) to generate a

Free

Generate engaging social media posts with images using OpenAI and Facebook Pages

Automatically generate engaging social media posts with images using OpenAI and publish them on Facebook Pages to boost your online presence.

Free

YouTube video summary to Discord with GPT-4o, Slack approval, and Google Sheets

Workflow Overview This advanced n8n automation is a sophisticated content intelligence tool that transforms YouTube video discovery into a seamless, multi-platform content distribution system. By leveraging RSS, AI, and multiple communication platforms, this workflow: 1. Discovers New Content: - Monitors YouTube channels via RSS feed - Captures new video uploads automatically - Extracts critical video metadata 2. Generates Intelligent Summaries: - Leverages OpenAI's GPT models to analyze vi

Free

Add new Facebook Lead Ads leads to Zoho CRM

Effortlessly manage your leads with this powerful automation template! Every time a new lead is generated through Facebook Lead Ads, Make will automatically create a corresponding contact in Zoho CRM. This seamless integration ensures that you never miss a potential customer, streamlining your lead management process and enhancing your sales efforts. Perfect for businesses looking to optimize their lead tracking and follow-up strategies.

Free

Add new subscribers to MailerLite from Facebook Lead Ads submissions

Automatically add new Facebook Lead Ads submissions to your MailerLite subscriber list, ensuring you never miss a potential customer.

Free

Automated GitHub scanner for exposed AWS IAM keys

Automated GitHub Scanner for Exposed AWS IAM Keys Overview This n8n workflow automatically scans GitHub for exposed AWS IAM access keys associated with your AWS account, helping security teams quickly identify and respond to potential security breaches. When compromised keys are found, the workflow generates detailed security reports and sends Slack notifications with actionable remediation steps. 🔑 Key Features - Automated AWS IAM Key Scanning: Regularly checks for exposed AWS access keys on Gi

Free

Classify and summarize WeChat articles with GPT-4 Nano to Google Sheets and Notion

Who’s it for 👥 This template is perfect for content creators, marketers, and researchers managing WeChat public account articles! 🚀 It’s ideal for n8n newcomers or anyone wanting to save time on manual content analysis, especially if you use Google Sheets for tracking. 📊 Whether you’re into AI, 欧阳良宜, or automation, this is for you! 😄 How it works / What it does 🔧 This workflow automates the retrieval, filtering, classification, and summarization of WeChat articles. 🌐 It reads RSS feed lin

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free