Sitemap URL Extractor — All URLs from robots.txt & XML Sitemaps avatar

Sitemap URL Extractor — All URLs from robots.txt & XML Sitemaps

Pricing

$0.10 / 1,000 url extracteds

Go to Apify Store
Sitemap URL Extractor — All URLs from robots.txt & XML Sitemaps

Sitemap URL Extractor — All URLs from robots.txt & XML Sitemaps

Get every URL a website lists in its sitemaps: reads robots.txt Sitemap lines, follows sitemap indexes recursively, unpacks .xml.gz, returns lastmod, changefreq and priority. Filter by pattern or date. Respects robots.txt. Pay per URL.

Pricing

$0.10 / 1,000 url extracteds

Rating

0.0

(0)

Developer

Mahé Perrin

Mahé Perrin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Give it a domain and get back every URL the site lists in its sitemaps, with lastmod, changefreq and priority. No crawling page by page, no browser: the Actor reads the sitemaps the site publishes for search engines, so a 50,000-page site comes back in seconds.

What it handles for you:

  • Discovery: Sitemap: lines in robots.txt, then the usual /sitemap.xml and /sitemap_index.xml.
  • Sitemap indexes, followed recursively (up to 5 levels), each child read once.
  • Gzipped sitemaps (.xml.gz), plain-text sitemaps, namespaced XML, CDATA and escaped & in URLs.
  • Filters: keep or drop URLs by wildcard (/blog/*, *.pdf) or regular expression, keep only pages modified since a date.
  • Duplicates removed across all sitemaps of the run (optional).

What it is for

  • SEO audits: compare the sitemap with what is indexed, spot stale lastmod, count pages per section.
  • Seed lists for scrapers and crawlers: feed product or article URLs to another Actor instead of crawling the whole site.
  • Content monitoring: schedule it with "Modified since" to get only new or updated pages since the last run.
  • Migrations: export the full URL inventory before a redesign to build redirect maps.
  • LLM / RAG pipelines: list the pages to convert, then send them to a page-to-Markdown Actor.

Input example

{
"startUrls": ["example.com", "https://apify.com/sitemap.xml"],
"includePatterns": ["/blog/*"],
"modifiedSince": "2025-01-01",
"maxUrls": 10000
}
  • startUrls — domains, homepages or direct sitemap URLs (.xml, .xml.gz, .txt).
  • includePatterns / excludePatterns — wildcard text (case-insensitive) or /regex/.
  • modifiedSince, keepUrlsWithoutLastmod — date filter on lastmod.
  • deduplicate, maxSitemapsPerSite, maxUrls — limits; maxUrls caps the cost.

Output example

One dataset row per URL:

{
"url": "https://www.example.com/blog/hello-world",
"lastmod": "2025-06-02T08:00:00.000Z",
"changefreq": "daily",
"priority": 0.8,
"sitemap": "https://www.example.com/sitemap-posts.xml.gz",
"site": "https://www.example.com",
"error": null
}

A per-site summary (sitemap files read, files that failed) is saved as SUMMARY in the run's key-value store. A site where no sitemap could be read returns one row with url: null and the reason in error; that row is not charged.

Good to know

  • Polite by design: the Actor identifies itself with its own User-Agent (OpenRegistry-SitemapExtractor), checks robots.txt before every request (and again after each redirect), waits between requests and never imitates a browser or uses proxies to get around blocks. If a site forbids access to its sitemap in robots.txt, or blocks automated clients, you get an error row, free of charge.
  • A sitemap only contains what the site owner chose to publish; pages missing from it are not discovered (use a crawler for that).
  • lastmod is returned exactly as written by the site; formats vary (2025-06-02, full timestamps).

Pricing

$0.0001 per URL ($0.10 per 1,000 URLs). Duplicates removed by the Actor and error rows are free. Set a maximum charge per run in the Apify console and the Actor stops cleanly when it is reached.