Skip to main content

Extract & process specific links from sitemap.xml

Workflow preview

Workflow preview
100%
Extract & process specific links from sitemap.xml 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 This workflow reads a file, extracts all URLs, and allows you to filter out specific types of links—such as PDF files, images, or any other content—based on your needs. Who Is This For?...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.splitout, n8n-nodes-base.httprequest, n8n-nodes-base.xml, n8n-nodes-base.filter, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Extract & process specific links from sitemap.xml
Workflow name
Extract & process specific links from sitemap.xml

Description

This workflow reads a sitemap.xml file, extracts all URLs, and allows you to filter out specific types of links—such as PDF files, images, or any other content—based on your needs.

Who Is This For?

  • SEO Specialists looking to analyze specific URLs in their sitemap.
  • Developers who need to extract links for automated processing.
  • Content Managers filtering out downloadable assets like PDFs or images.

How It Works

  1. Fetch sitemap.xml – The workflow reads the sitemap file from a given URL.
  2. Extract URLs – Parses all the URLs listed in the sitemap.
  3. Filter URLs – Use a simple filter to extract only the links you need (e.g., *.pdf).
  4. Export or Process – The filtered list can be sent via email, stored in a database, or used in another workflow.

Customization

  1. Edit the Set sitemap URL block and edit the sitemapUrl value to the sitemap you want to fetch.
  2. Edit the Filter URLs block and edit the filter conditions to meet your needs.

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 - ‘Test workflow’ trigger

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

Block 2 - Set sitemap URL

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

Block 3 - Split Out

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

Block 4 - Get Sitemap

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

Block 5 - Convert Sitemap to JSON

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

Block 6 - Filter URLs

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

Block 7 - Sticky Note1

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

Block 8 - Sticky Note2

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

Block 9 - Sticky Note3

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

Block 10 - Sticky Note

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

3. Summary Table

Workflow Extract & process specific links from sitemap.xml
Complexity intermediate
Nodes 10
Categories Market Research
Author Audun
Published 11 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3133/3133.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 Extract & process specific links from sitemap.xml do?

Description This workflow reads a file, extracts all URLs, and allows you to filter out specific types of links—such as PDF files, images, or any other content—based on your needs. Who Is This For?...

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 use case.