Sitemap page extractor: Discover, clean, and save website URLs to Google Sheets
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when someone submits an n8n form (“Sitemap Page Extractor”). Along the way it connects Google Sheets.
How it runs
Trigger: When someone submits an n8n form (“Sitemap Page Extractor”).
- Prepare website URL (Edit Fields (Set)): sets 1 field: url
- Build sitemap URLs (Code): runs custom JavaScript code
- Sitemap URL Check (Loop Over Items (Split in Batches)): loops over the items in batches
- Filter Non-Empty Sitemap Responses (If): checks a condition and branches into true / false
- Fetch Sitemap Data (HTTP Request): calls an HTTP API
- Extract Sitemap URLs (Code): runs custom JavaScript code
- Fetch Sitemap Pages XML (HTTP Request): calls an HTTP API
- Extract Page URLs from Sitemap (Code): runs custom JavaScript code
- Exclude the Sitemap URLs (Filter): keeps only the items that match a condition
- Save Page URLs to Sheet (Google Sheets): append or update
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Filter
n8n-nodes-base.filter - Google Sheets
n8n-nodes-base.googleSheets
From the author
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…