Sitemap URL Extractor avatar

Sitemap URL Extractor

Pricing

from $0.20 / 1,000 results

Go to Apify Store
Sitemap URL Extractor

Sitemap URL Extractor

Extract page URLs from robots.txt and sitemap.xml files for SEO audits, URL discovery crawl planning, and data pipelines.

Pricing

from $0.20 / 1,000 results

Rating

0.0

(0)

Developer

Niccolò Salerno

Niccolò Salerno

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Extract page URLs from robots.txt sitemap declarations and sitemap.xml files. Useful for SEO audits, URL discovery, crawl planning, and feeding URL lists into other tools.

What it does

  • Accepts website homepages, robots.txt, sitemap XML, or .xml.gz sitemap URLs
  • Reads sitemap declarations from robots.txt
  • Follows sitemap indexes
  • Deduplicates page URLs
  • Returns clean dataset items with source sitemap and lastmod when available

Input

  • startUrls: websites, robots.txt, or sitemap XML URLs
  • maxUrls: maximum page URLs to return

Example:

{
"startUrls": [{ "url": "https://docs.apify.com" }],
"maxUrls": 1000
}

Output

{
"url": "https://example.com/page",
"sourceSitemap": "https://example.com/sitemap.xml",
"lastmod": "2026-01-01"
}

Limitations

This Actor discovers URLs from sitemap files. It does not crawl pages, render JavaScript, or bypass anti-bot systems.