Skip to main content

Sitemap.xml metadata export to Google Sheets (Title, Meta Description, and URLs)

Workflow preview

Workflow preview
100%
Sitemap.xml metadata export to Google Sheets (Title, Meta Description, and URLs) preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow automates the extraction of SEO metadata (URL, page title, and meta description) from every page listed in your website's sitemap and exports it to Google Sheets. Ideal for SEO audits...

Best for

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

Tools used

n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.wait, n8n-nodes-base.merge

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Sitemap.xml metadata export to Google Sheets (Title, Meta Description, and URLs)
Workflow name
Sitemap.xml metadata export to Google Sheets (Title, Meta Description, and URLs)

This workflow automates the extraction of SEO metadata (URL, page title, and meta description) from every page listed in your website's sitemap and exports it to Google Sheets. Ideal for SEO audits, content inventories, and tracking on-page elements.

Prerequisites

Before using this workflow:

  • A publicly accessible sitemap.xml URL
  • Google Sheets spreadsheet with columns: URL, Title, and meta description
  • Google Sheets API access via OAuth2

Setup Instructions

1. Configure Sitemap Source

  • In the "Get Sitemap XML" node, replace the default URL with your actual sitemap URL

2. Connect Google Sheets

  • Open the "Append or update row in sheet" node
  • Configure Google Sheets credentials
  • Set Document ID and Sheet Name
  • Verify column mappings match your spreadsheet

3. Adjust Rate Limiting (Optional)

  • Modify Wait nodes if encountering 429 errors
  • Increase delay between requests if needed

How It Works

  1. Trigger: Manual workflow execution
  2. Sitemap Fetch: Retrieve sitemap.xml file
  3. URL Parsing: Extract all URLs from sitemap
  4. Batch Processing: Process URLs in manageable batches
  5. Data Extraction: Scrape title and meta description from each page
  6. Data Merge: Combine URL with extracted metadata
  7. Sheet Update: Append or update rows in Google Sheets using URL as a unique key

Features

  • Duplicate Prevention: Uses appendOrUpdate with URL matching
  • Rate Limiting: Built-in delays between requests
  • Flexible Processing: Handles sitemaps of various sizes
  • Easy Customization: Modify code nodes for additional data extraction

Use Cases

  • SEO audits of title and description tags
  • Content migration planning
  • Website content inventory management
  • Ongoing SEO monitoring and reporting

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 - Append or update row in sheet

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

Block 2 - Loop Over Items

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

Block 3 - When clicking ‘Execute workflow’

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

Block 4 - Get Sitemap XML

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

Block 5 - Split the title and url

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

Block 6 - Get specific link html

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

Block 7 - Get the meta description

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

Block 8 - Sticky Note

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

Block 9 - Sticky Note1

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

Block 10 - Sticky Note3

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

Block 11 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 12 - Merge Meta Description with Title and URL

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

3. Summary Table

Workflow Sitemap.xml metadata export to Google Sheets (Title, Meta Description, and URLs)
Complexity intermediate
Nodes 12
Categories Market Research, Multimodal AI
Author Jemee
Published 17 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8691/8691.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.xml metadata export to Google Sheets (Title, Meta Description, and URLs) do?

This workflow automates the extraction of SEO metadata (URL, page title, and meta description) from every page listed in your website's sitemap and exports it to Google Sheets. Ideal for SEO audits...

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.