Extract all URLs from a website's sitemap
Finds a site's sitemaps through robots.txt and reads every sitemap in its index: one row per page URL with lastmod, changefreq and priority. Put in your own site.
Input
Output fields
Sign up on Apify or log in
The Sitemap Extractor: All URLs from sitemap.xml, robots.txt & .gz Actor is ready to run with the inputs already set for "Extract all URLs from a website's sitemap". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Extract all URLs from a website's sitemap" task
The Sitemap Extractor: All URLs from sitemap.xml, robots.txt & .gz Actor will start running based on the input automatically. You can also change all the input fields, like websites or sitemap urls and max urls, to match your specific use case.
Receive the "Extract all URLs from a website's 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, last modified, change frequency, 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 all URLs from a website's sitemap" task via API.

Integrate "Extract all URLs from a website's sitemap" into your workflow
Connect "Extract all URLs from a website's sitemap" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay
One row per URL from the sitemaps: lastmod, changefreq, priority, images, videos, news and hreflang. The summary lists every sitemap file and any errors.
$0.10 per 1,000 URLs saved; reading the sitemaps is free. As set up, at most 1,000 URLs, so a run costs up to $0.10, usually less.
Yes. Duplicate the "Extract all URLs from a website's sitemap" task and put in your website or sitemap URL. The sitemaps are found through robots.txt and the usual locations.
The run still succeeds, and the summary lists every location that was tried. This Actor reads sitemaps only and does not crawl pages.