Go to example tasks

Extract URLs from an XML sitemap

Turn a public XML sitemap into a clean dataset of URLs with source sitemap, status code, lastmod, depth, and discovery metadata.

Try for free
Sitemap URL Extractor
Sitemap URL Extractorfetch_cat/sitemap-url-extractor
URL
Sitemap loc
Source sitemap URL
Sitemap depth
+6 fields
Text
Number
Boolean
List
Object

Input

Sitemap or website URLs(required)
url:https://apify.com/sitemap.xml
Maximum URLs:100
Maximum sitemap files:25
Include URL patterns
Exclude URL patterns
Same domain only:true
Deduplicate URLs:true
Proxy configuration:{1 field}

Output fields

URL
Sitemap loc
Source sitemap URL
Sitemap depth
Last modified
Change frequency
Priority
Content type
HTTP status
Discovered at

How it works

Sign up on Apify or log in

The Sitemap URL Extractor Actor is ready to run with the inputs already set for "Extract URLs from an XML sitemap". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Extract URLs from an XML sitemap" task

The Sitemap URL Extractor Actor will start running based on the input automatically. You can also change all the input fields, like sitemap or website urls, maximum urls, and more, to match your specific use case.

Receive the "Extract URLs from an XML sitemap" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, sitemap loc, source sitemap url, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Extract URLs from an XML sitemap" task via API.

Image

Integrate "Extract URLs from an XML sitemap" into your workflow

Connect "Extract URLs from an XML sitemap" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay