Automated SEO indexing: sitemap to GSC & indexing API
Ready for 3.0What this workflow does
This workflow has 17 nodes and runs on a schedule (every week) (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls searchconsole.googleapis.com and indexing.googleapis.com over HTTP.
How it runs
Trigger: On a schedule (every week) (plus 1 other trigger).
- Configuration (Edit Fields (Set)): sets 2 fields: sitemap, gsc_property
- Fetch Sitemap XML (HTTP Request): calls an HTTP API
- Convert XML to JSON (XML): converts between XML and JSON
- Parse Sitemap Structure (Code): runs custom JavaScript code
- Is Sitemap Index? (If): checks a condition and branches into true / false
- Format URL Data (Edit Fields (Set)): sets 3 fields: url, lastmod, currentDate
- Filter: keeps only the items that match a condition
- Check Submission History (Code): runs custom JavaScript code
- Filter: keeps only the items that match a condition
- GSC: Inspect URL Status (HTTP Request): calls searchconsole.googleapis.com (POST)
…plus 5 more steps. See the full node list below.
HTTP calls to: searchconsole.googleapis.com, indexing.googleapis.com
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 (10)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - XML
n8n-nodes-base.xml - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Filter
n8n-nodes-base.filter - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
This workflow helps SEO professionals and website owners automate the tedious process of monitoring and indexing URLs. It fetches your XML sitemap, filters for recent content, checks the current indexing status via Google Search Console (GSC), and…