Sitemap Extractor: Every URL from XML Sitemaps avatar

Sitemap Extractor: Every URL from XML Sitemaps

Pricing

from $0.20 / 1,000 url from a sitemaps

Go to Apify Store
Sitemap Extractor: Every URL from XML Sitemaps

Sitemap Extractor: Every URL from XML Sitemaps

Sitemap extractor: every URL of a website from its XML sitemaps (found in robots.txt, indexes and .gz followed) with lastmod, images, videos, news and hreflang. Filter by URL pattern or date, get only new URLs, check each URL's HTTP status. Export to JSON, CSV or Excel, or via API.

Pricing

from $0.20 / 1,000 url from a sitemaps

Rating

0.0

(0)

Developer

Steady Scrape

Steady Scrape

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

16 days ago

Last modified

Features

Limited permissions

Share

Sitemap Extractor — every URL of a website from its XML sitemaps

This sitemap extractor takes a list of websites — domains like example.com, any page of a site, a robots.txt link or a sitemap link — finds each site's XML sitemaps and returns every URL they list, one row per URL: its lastmod date, changefreq and priority, the image, video and Google News details the sitemap carries, its hreflang language versions, the sitemap file it came from and the site. Sitemaps are found in robots.txt's Sitemap: lines, the home page's <link rel="sitemap"> and the usual paths (/sitemap.xml, /sitemap_index.xml, /wp-sitemap.xml, .xml.gz, /sitemap.txt); sitemap indexes are followed to every child sitemap.

Filter by URL pattern or by lastmod in the last N days, ask for only the URLs not delivered before (new pages or products of a competitor, run on a schedule), and optionally check each URL's HTTP status (status code, final URL after redirects, content type). You pay per URL delivered; a site with no sitemap, a sitemap robots.txt forbids, a broken file or a wall is a free row that says why.

What the sitemap URL extractor is for

  • SEO audits and site migrations: the full list of URLs a site tells Google about, with their lastmod, priority and hreflang alternates, and with the status check on: the 404s, redirects and removed pages still in the sitemap.
  • Competitor monitoring: new products, articles or landing pages the day they appear in a competitor's sitemap — turn on Only URLs not delivered before and schedule the run daily; filter to /products/ or /blog/.
  • Content freshness: what a site changed in the last week (lastmodWithinDays: 7).
  • Crawl seeding for AI / RAG pipelines and scrapers: a clean, deduplicated URL list to feed a crawler, a page scraper or an embedding job, instead of crawling link by link.
  • News and video monitoring: Google News sitemaps give each article's title, language and publication date; video sitemaps give each video's title, thumbnail and publication date.

How the sitemap extractor works

  1. Start URLs, one per line: a domain or any page (the site's sitemaps are found), a robots.txt link (its Sitemap: lines are read), or a sitemap link (that file alone, and the sitemaps it points to). Repeated lines are read once; a line that is no website is a free invalid row.
  2. Discovery: the site's robots.txt first; when it names no sitemap (or none it names can be read), the page's <link rel="sitemap">; then the usual paths, asked in order until one holds a sitemap.
  3. Reading: XML urlsets, sitemap indexes (followed up to Most nested sitemap index levels, 5 by default), gzipped sitemaps (.xml.gz, however the server sends them), RSS and Atom feeds (the sitemap protocol accepts both) and text sitemaps (one URL per line). Files stream in as they download, so a 50 MB sitemap of 50,000 URLs never sits whole in memory. Real-world sitemaps with unescaped &, CDATA, comments or namespace prefixes are still read.
  4. Each URL once per site, even when two sitemaps list it, then your filters: patterns to keep or leave out, the lastmod window, and only-new. Reading stops at Most URLs per site.
  5. Optional status check: each URL asked with HEAD (GET when the server refuses HEAD), redirects followed to the final page, at Status checks per second, per site (5 by default) so no site is hammered.

robots.txt is honoured for every file and page read, as the sitemap protocol and RFC 9309 ask: a sitemap or page robots.txt disallows is never requested, and while a site's robots.txt answers a server error nothing of the site is read. The Actor identifies itself as SteadyScrapeSitemaps.

Measured on 2026-11-09: ikea.com, 50,000 URLs from 12 sitemap files in 18 s, every product with its 9 images and its hreflang versions; the prefill (sitemaps.org and crawlee.dev, 50 URLs each) in about 2 s.

Input example

{
"startUrls": ["allbirds.com", "https://www.bbc.com/sitemaps/https-index-com-news.xml"],
"includeUrlPatterns": ["/products/", "/articles/"],
"excludeUrlPatterns": ["*?variant=*"],
"lastmodWithinDays": 7,
"onlyNewUrls": true,
"maxUrlsPerSite": 10000
}

Status check of a whole sitemap (broken links, redirects):

{
"startUrls": ["https://www.example.com/sitemap.xml"],
"checkStatus": true,
"statusChecksPerSecond": 5
}

URL patterns: text keeps URLs containing it (/blog/); * is a wildcard over the whole URL (https://shop.com/products/*, *.pdf); re: starts a regular expression (re:/p/\d+$). Case is ignored. An exclude pattern wins over an include pattern.

Output example

One row per URL (a Shopify product sitemap):

{
"url": "https://www.allbirds.com/products/mens-wool-runners",
"status": "ok",
"reason": null,
"site": "https://www.allbirds.com",
"sitemapUrl": "https://www.allbirds.com/sitemap_products_1.xml?from=1878193471557&to=7369944137808",
"lastmod": "2026-11-08T14:37:28-08:00",
"changefreq": "daily",
"priority": null,
"images": [
{
"url": "https://cdn.shopify.com/s/files/1/1104/4168/files/Allbirds_WL_RN_SF_PDP_Natural_Grey_LAT.png?v=1751143404",
"title": "Men's Wool Runner - Natural Grey (Light Grey Sole)",
"caption": null
}
],
"videos": [],
"news": null,
"alternates": [],
"statusCode": null,
"finalUrl": null,
"finalStatusCode": null,
"contentType": null,
"statusError": null,
"input": "allbirds.com",
"extractedAt": "2026-11-09T06:19:20.657Z"
}

A free row for a site without a sitemap:

{
"url": null,
"status": "noSitemap",
"reason": "No sitemap was found. Asked robots.txt and the page given: it names no sitemap, and none of /sitemap.xml, /sitemap_index.xml, /sitemap-index.xml, /wp-sitemap.xml, /sitemap.xml.gz, /sitemap.txt holds one; not charged",
"site": "https://www.example.org",
"input": "example.org"
}

The run's SUMMARY record (key-value store) gives, per site: how the sitemaps were found, files read, URLs listed and delivered, and how many were left out by each filter, as duplicates or as already delivered.

Output fields

fieldwhat it is
urlthe page URL listed in the sitemap (null on a free row)
statusok for a URL; free rows: noSitemap, noUrls, notFound, robotsDisallowed, invalidSitemap, blocked, unreachable, invalid
reasonwhy a free row has no URL
sitethe site the start URL belongs to
sitemapUrlthe sitemap file the URL was listed in (or the file a free row is about)
lastmodthe last-modified date as the sitemap writes it (W3C datetime); for RSS/Atom feeds, the item's date in ISO 8601
changefreq, priorityas the sitemap gives them (priority 0.0–1.0)
imagesimage sitemap entries: url, title, caption
videosvideo sitemap entries: title, description, thumbnailUrl, contentUrl, playerUrl, durationSeconds, publicationDate
newsGoogle News: publicationName, language, publicationDate, title, keywords
alternateshreflang versions: hreflang, url
statusCodewith the status check: the URL's own status code (301 for a redirect)
finalUrl, finalStatusCode, contentTypewhere redirects end, its status code and content type
statusErrorwhy the check gave no status (no answer, robots.txt disallows the page, a private address)
input, extractedAtthe start line as given, and when the row was made (UTC)

Pricing

Pay per event, no start fee:

eventpricewhen
urlUS$0.0002each URL row delivered (US$0.20 per 1,000 URLs)
url-with-statusUS$0.0006instead of url, when the status check is on and the site answered the URL

Free rows are never charged, nor are URLs left out by your filters, repeated URLs, or URLs already delivered by an earlier only-new run. A URL whose status check got no answer (or that robots.txt forbids checking) is charged the plain url price. Most URLs per site and your run's spending limit cap the cost: at the limit the run stops and says so. The first only-new run of a site delivers (and charges) every URL; the next ones only what is new.

Free rows: walls, refusals and broken sitemaps

  • A bot check (Cloudflare's "Just a moment", Shopify's "Verifying your connection"…) is a free blocked row: it is asked once and never solved. A plain refusal (403, 429, a server error, no answer) is asked once more, from another IP when one is available, before it becomes a free row.
  • A sitemap link that answers a web page (an HTML "sitemap" page) or a file that is no sitemap is a free invalidSitemap row; a sitemap that answers 404 is notFound; a site with no sitemap anywhere is one noSitemap row naming what was asked.
  • A sitemap whose download breaks off keeps the URLs read before it, plus a free row saying where it stopped.
  • Links into private networks (localhost, 10.x, 192.168.x, cloud metadata) are refused without connecting.

Limits

  • Up to 5,000 start URLs per run and 1,000,000 URLs per site (maxUrlsPerSite, 100,000 by default).
  • Up to 10,000 sitemap files per site (maxSitemapsPerSite, 1,000 by default) and 10 levels of nested indexes.
  • A sitemap file is read up to 100 MB uncompressed (the protocol's limit is 50 MB); the status message says when one was cut.
  • The only-new memory keeps the newest 1,500,000 URLs per site and set of URL patterns, in your account's key-value store steadyscrape-sitemap-extractor-state (opened only by only-new runs). Changing the patterns starts a new memory.
  • URLs are taken as the sitemap lists them (relative links resolved against the sitemap file); pages that are not in any sitemap are not found — this Actor reads sitemaps, it does not crawl links.
  • With the status check, 10,000 URLs at 5 checks per second take about 35 minutes: raise the run's timeout for big sites, or raise the pace for your own site.

Sitemaps and robots.txt are files a site publishes for crawlers to read, and this Actor reads nothing else (plus the home page's head when robots.txt names no sitemap, and each page's status when you ask for it), honouring robots.txt for every file and page. It does not log in, solve bot checks or read anything behind a wall. You are responsible for how you use the URLs and for respecting each website's terms. This Actor is not affiliated with any of the websites it reads, nor with sitemaps.org.