Skip to main content

Sitemap page extractor: Discover, clean, and save website URLs to Google Sheets

Workflow preview

Workflow preview
100%
Sitemap page extractor: Discover, clean, and save website URLs to Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Description: Automatically extracts all page URLs from website sitemaps, filters out unwanted sitemap links, and saves clean URLs to Google Sheets for SEO analysis and reporting. How It Works: This...

Best for

  • Market Research automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest, n8n-nodes-base.if, n8n-nodes-base.filter

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Incrementors.

Original n8n.io source

1.1 Workflow description

Title
Sitemap page extractor: Discover, clean, and save website URLs to Google Sheets
Workflow name
Sitemap page extractor: Discover, clean, and save website URLs to Google Sheets

Description:

Automatically extracts all page URLs from website sitemaps, filters out unwanted sitemap links, and saves clean URLs to Google Sheets for SEO analysis and reporting.

How It Works:

This workflow automates the process of discovering and extracting all page URLs from a website's sitemap structure. Here's how it works step-by-step:

Step 1: URL Input The workflow starts when you submit a website URL through a simple form interface.

Step 2: Sitemap Discovery The system automatically generates and tests multiple possible sitemap URLs including /sitemap.xml, /sitemap_index.xml, /robots.txt, and other common variations.

Step 3: Valid Sitemap Identification It sends HTTP requests to each potential sitemap URL and filters out empty or invalid responses, keeping only accessible sitemaps.

Step 4: Nested Sitemap Processing For sitemap index files, the workflow extracts all nested sitemap URLs and processes each one individually to ensure complete coverage.

Step 5: Page URL Extraction From each valid sitemap, it parses the XML content and extracts all individual page URLs using both XML <loc> tags and HTML links.

Step 6: URL Filtering The system removes any URLs containing "sitemap" to ensure only actual content pages (like product, service, or blog pages) are retained.

Step 7: Google Sheets Integration Finally, all clean page URLs are automatically saved to a Google Sheets document with duplicate prevention for easy analysis and reporting.

Setup Steps:

Estimated Setup Time: 10-15 minutes

1. Import the Workflow: Import the provided JSON file into your n8n instance.

2. Configure Google Sheets Integration:

  • Set up Google Sheets OAuth2 credentials in n8n
  • Create a new Google Sheet or use an existing one
  • Update the "Save Page URLs to Sheet" node with your Google Sheet URL
  • Ensure your sheet has a tab named "Your sheet tab name" with a column header "Column name"

3. Test the Workflow:

  • Activate the workflow in n8n
  • Use the form trigger URL to submit a test website URL
  • Verify that URLs are being extracted and saved to your Google Sheet

4. Customize (Optional):

  • Modify the sitemap URL patterns in the "Build sitemap URLs" node if needed
  • Adjust the filtering criteria in the "Exclude the Sitemap URLs" node
  • Update the Google Sheets column mapping as required

Important Notes:

  • Ensure your Google Sheets credentials have proper read/write permissions
  • The workflow handles both XML sitemaps and robots.txt sitemap references
  • Duplicate URLs are automatically prevented when saving to Google Sheets
  • The workflow continues processing even if some sitemap URLs are inaccessible

Need Help?

For technical support or questions about this workflow:
✉️ [email protected]
or
fill out this form: Contact Us

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Input Website URL

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 10 - Prepare website URL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Build sitemap URLs

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Sitemap URL Check

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 13 - Fetch Sitemap Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - Filter Non-Empty Sitemap Responses

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 15 - Extract Sitemap URLs

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Fetch Sitemap Pages XML

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - Extract Page URLs from Sitemap

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Exclude the Sitemap URLs

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 19 - Save Page URLs to Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

3. Summary Table

Workflow Sitemap page extractor: Discover, clean, and save website URLs to Google Sheets
Complexity advanced
Nodes 19
Categories Market Research, Multimodal AI
Author Incrementors
Published 23 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7758/7758.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Sitemap page extractor: Discover, clean, and save website URLs to Google Sheets do?

Description: Automatically extracts all page URLs from website sitemaps, filters out unwanted sitemap links, and saves clean URLs to Google Sheets for SEO analysis and reporting. How It Works: This...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, Multimodal AI use case.