Sitemap URL Extractor avatar

Sitemap URL Extractor

Pricing

from $0.05 / 1,000 url saveds

Go to Apify Store
Sitemap URL Extractor

Sitemap URL Extractor

List every page a website publishes in its sitemaps. Finds the sitemaps from robots.txt, follows sitemap indexes and gzip files, and returns each URL with its last-modified date.

Pricing

from $0.05 / 1,000 url saveds

Rating

0.0

(0)

Developer

jake mcclure

jake mcclure

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

List every page a website publishes in its sitemaps. Give it a website and it finds the sitemaps, follows them all the way down, and returns each URL with its last-modified date.

Sitemaps are files a website publishes so that search engines and other programs can discover its pages. This Actor reads those files; it does not crawl the site's pages.

Use it to:

  • get a complete list of a site's pages before crawling or auditing it
  • find new or recently changed pages by their last-modified date
  • count and compare the content of sites (how many products, articles, docs pages)
  • feed URLs into another scraper

Input

FieldWhat it does
Websites or sitemapsOne per line. A website (docs.apify.com) or the address of one sitemap file (https://example.com/sitemap.xml).
Maximum URLs per websiteStop after this many matching URLs per website. 0 means no limit.
URL containsKeep only URLs containing one of these pieces of text, for example /blog/.
URL does not containDrop URLs containing any of these, for example /tag/.
Modified on or afterKeep only URLs modified since this date, according to the sitemap.

For a website, the Actor reads robots.txt to find the sitemaps the site names. If there are none, it tries /sitemap.xml, /sitemap_index.xml and /wp-sitemap.xml.

{
"sites": ["https://docs.apify.com", "https://example.com/sitemap-products.xml"],
"urlContains": ["/academy/"],
"modifiedAfter": "2026-10-01"
}

Output

One record per URL:

{
"site": "docs.apify.com",
"url": "https://docs.apify.com/academy/web-scraping-for-beginners",
"lastModified": "2026-11-03T00:00:00.000Z",
"changeFrequency": "weekly",
"priority": 0.5,
"sitemap": "https://docs.apify.com/sitemap.xml",
"scrapedAt": "2026-11-11T20:00:00.000Z"
}

lastModified, changeFrequency and priority are whatever the site put in its sitemap, and are null when it left them out. sitemap is the file the URL was found in.

A SUMMARY record in the run's key-value store lists, for each website, how many sitemap files were read, how many could not be read, how many URLs were found and saved, and any error.

What it handles

  • sitemap index files, nested up to five levels
  • gzip-compressed sitemaps (.xml.gz)
  • plain-text sitemaps (one URL per line)
  • several sitemaps named in robots.txt
  • the same URL appearing in more than one sitemap (returned once)
  • a broken sitemap among working ones (skipped and counted, the rest still read)

Pricing

Pay per result. You are charged once for each URL saved to the dataset, at the per-result price shown on this page.

You are not charged for URLs removed by your filters or for websites with no sitemap. The run stops as soon as it reaches the maximum charge you set for it.

Limits

  • Only pages the site lists in its sitemaps are returned. Pages a site leaves out of its sitemaps will not appear.
  • Not every website has a sitemap. For those the run reports that none was found.
  • Last-modified dates are only as accurate as the site makes them.
  • At most 1,000 sitemap files are read per website.
  • Sitemap files of one website are fetched one at a time with a short pause, so a site with hundreds of sitemap files takes a few minutes.

Is this allowed?

Sitemaps are published for programs to read. The Actor fetches only robots.txt and the sitemap files, without logging in, at a gentle pace. You are responsible for how you use the data.