Sitemap Scraper: Extract All URLs from XML Sitemaps avatar

Sitemap Scraper: Extract All URLs from XML Sitemaps

Pricing

Pay per event

Go to Apify Store
Sitemap Scraper: Extract All URLs from XML Sitemaps

Sitemap Scraper: Extract All URLs from XML Sitemaps

Get every URL a website lists in its XML sitemaps (index, gzip, news, image, hreflang), with lastmod, priority and news titles. Auto-finds sitemaps via robots.txt. Monitor mode outputs only URLs that are new since the last run. $0.30 per 1,000 URLs.

Pricing

Pay per event

Rating

0.0

(0)

Developer

berryish_pillar

berryish_pillar

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Sitemap URL Extractor & New-URL Monitor: get all URLs from any website

Give it a domain or a sitemap URL and get every URL the site publishes in its XML sitemaps, with lastmod, changefreq, priority, image counts, Google News titles and hreflang alternates. It finds sitemaps automatically through robots.txt and common paths, follows sitemap indexes, and reads .xml.gz and plain-text sitemaps.

Turn on monitor mode and schedule it to get only the URLs that are new since the last run: new products, blog posts, job pages, news articles or landing pages on any site.

$0.30 per 1,000 URLs. Sitemap reads and robots.txt requests are free.

What can it do?

  • 🌐 Domain in, all URLs out. apify.com gives you every URL from every sitemap that robots.txt lists, across nested indexes. In our test that was 1,003,479 URLs from 23 sitemap files in seconds.
  • 🗂️ Every sitemap format: sitemap index, urlset, gzip, Google News (news:title, publication date), image sitemaps, hreflang xhtml:link alternates, plain-text sitemaps.
  • 🆕 New-URL monitor: remembers every URL per site and outputs only new ones. RUN_SUMMARY also counts URLs removed since the last run. URL memory needs a run with full permissions or from the Actor owner's account; limited-permission runs still extract every sitemap URL, but treat all of them as first-seen.
  • 🔎 Filters: include/exclude regex, lastmod on or after a date, same-domain only.
  • ⚡ Fast and cheap: no browser, no page crawling. It reads only the sitemap files.
  • 🤖 Polite: robots.txt respected, rate limited per host, retries with backoff, per-site timeout.

Who uses this?

  • SEO teams: inventory a site, compare against a crawl, find pages missing from Google.
  • Competitive intelligence: get alerts when a competitor publishes new product, pricing, landing or docs pages.
  • AI / RAG pipelines: get the clean URL list to feed into a content crawler, and only re-crawl what changed (lastmodAfter, onlyNewUrls).
  • News and content monitoring: track new articles via Google News sitemaps with titles and timestamps.
  • E-commerce: watch for new product URLs on any store (pairs with our Shopify Products Monitor).

How to use it

  1. Add domains or sitemap URLs.
  2. Optionally set Max URLs per site, filters, or turn on Only URLs that are new since the last run.
  3. Click Start and download JSON, CSV or Excel, or read the dataset from the API. Add a Schedule for monitoring.

Input example

{
"startUrls": [{ "url": "https://apify.com" }, { "url": "https://www.nytimes.com/sitemaps/new/news.xml.gz" }],
"maxUrlsPerSite": 1000,
"includeUrlPatterns": [],
"onlyNewUrls": false
}

Output example

{
"site": "nytimes.com",
"url": "https://www.nytimes.com/es/2026/11/16/espanol/estilos-de-vida/apego-ansioso-evitativo-seguro.html",
"lastmod": "2026-11-16T06:07:13Z",
"changefreq": null,
"priority": null,
"imageCount": 0,
"newsTitle": "¿Tienes un apego ansioso, evitativo o seguro?",
"newsPublicationDate": "2026-11-16T06:07:13Z",
"alternates": [],
"sitemap": "https://www.nytimes.com/sitemaps/new/news.xml.gz",
"isNew": null,
"scrapedAt": "2026-11-17T16:53:17Z"
}

How much does it cost?

Pay per event:

EventPrice
URL returned$0.0003 ($0.30 per 1,000 URLs)

Examples: a 5,000-page site costs $1.50. A daily new-URL monitor on 30 competitor sites that finds 100 new URLs a day costs $0.03 a day. In monitor mode you pay only for new URLs. Set Maximum cost per run in run options and the Actor stops cleanly at that amount.

Tips and limits

  • The Actor only knows what the sitemap lists. Sites without a sitemap return no_sitemap in RUN_SUMMARY (you're not charged). Use our SEO Site Audit to crawl those by links.
  • For sites with more than 350,000 URLs, new-URL tracking isn't saved (the URL list is still returned).
  • lastmod is whatever the site publishes; some sites set it to the crawl date for every URL.

Sitemaps are files that websites publish specifically so that machines can discover their URLs. The Actor reads only those files and robots.txt, identifies itself and respects robots.txt. It collects no personal data.

FAQ

Does it visit every page? No. It reads the sitemap files only, which is why it's fast and cheap.

Can I pass a specific sitemap? Yes. Paste its URL directly, including .xml.gz files and news sitemaps.