Sitemap URL Extractor — Every URL from sitemap.xml, Fast avatar

Sitemap URL Extractor — Every URL from sitemap.xml, Fast

Pricing

from $0.95 / 1,000 url extracteds

Go to Apify Store
Sitemap URL Extractor — Every URL from sitemap.xml, Fast

Sitemap URL Extractor — Every URL from sitemap.xml, Fast

Lists every URL a website publishes in its XML sitemaps: finds them via robots.txt and common paths, follows nested indexes and .gz files, outputs url, lastmod, changefreq, priority, image and hreflang data per row. Filters by pattern and date. No browser.

Pricing

from $0.95 / 1,000 url extracteds

Rating

0.0

(0)

Developer

Fabrikit

Fabrikit

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 extracts every URL a website publishes in its XML sitemaps, from any site, over plain HTTP. Give it domains, page URLs or direct sitemap links: it finds the sitemaps through robots.txt and the usual locations, follows nested sitemap indexes, unpacks .gz files and saves one clean row per URL with lastmod, changefreq, priority, the sitemap it came from and the image, video and hreflang data attached to it. No browser, no crawling of the pages themselves: a site with 50,000 URLs is a handful of requests.

Pricing: pay per URL row; listing the sitemap files only (onlySitemapList) is charged per sitemap file instead. See the Pricing tab for current prices; paid Apify plans get lower rates.

What you get

One row per URL:

FieldMeaning
urlThe page URL (<loc>)
siteWebsite the row belongs to (host without www.)
sitemapUrl, sitemapType, depthFile it was read from (urlset, text, rss, atom) and how deep in the index tree it sits
lastmod<lastmod> normalised to ISO 8601 UTC (any offset or date-only value), or null
changefreq, priorityAs published (priority as a number)
imageCount, videoCount, alternateCountHow many <image:image>, <video:video> and hreflang alternates the entry carries
images, videos, alternates, newsThe full lists and Google News tags, when includeDetails is on
titleEntry title, for RSS / Atom feeds listed as sitemaps

With onlySitemapList you get one row per sitemap file instead: sitemapUrl, type (index, urlset, text, rss, atom), urlCount, sitemapCount, lastmod, depth, parentSitemapUrl, discoveredVia (robots.txt, common-path, input, index), statusCode, compressed, bytes and error. Rows for files that could not be read are saved for free.

The key-value store also receives SUMMARY (counts, requests, stop reason) and SITEMAPS (per site: how the sitemaps were found, every file read with its type, URL count and size, and the reason when a site has no sitemap).

How it works

  1. Discovery. For a domain or page URL the Actor reads robots.txt and uses its Sitemap: lines. When there are none, it tries /sitemap.xml, /sitemap_index.xml, /sitemap-index.xml, /wp-sitemap.xml and /sitemap.xml.gz and stops at the first real sitemap. Direct sitemap, feed or robots.txt URLs are used as given.
  2. Indexes. Sitemap indexes are followed recursively up to maxDepth levels and maxSitemapsPerSite files. Page sitemaps are read before image / video sitemaps, which only repeat page URLs.
  3. Formats. XML urlset (with image, video, news and xhtml:link hreflang extensions), sitemap indexes, gzip files (both .gz bodies and Content-Encoding: gzip), RSS 2.0 and Atom feeds, plus plain-text URL lists.
  4. Filters and limits. includePatterns / excludePatterns (glob, /regex/ or substring), lastmodFrom, maxUrlsPerSite and an exact maxItems; duplicates are removed by URL.
  5. Politeness. One request at a time per site with a short pause, timeouts, retries with backoff on 429 / 503 / 5xx, hard size limits (32 MB on the wire, 64 MB uncompressed per file).

Input examples

All URLs of two sites (the default):

{ "websites": ["https://nodejs.org", "https://apify.com"], "maxItems": 500 }

Blog posts changed this year, without release notes, with hreflang details:

{
"websites": ["nodejs.org"],
"includePatterns": ["*/blog/*"],
"excludePatterns": ["/\\/blog\\/release\\//"],
"lastmodFrom": "2026-01-01",
"includeDetails": true,
"maxItems": 5000
}

Inventory of the sitemap files of several sites, 100 URLs per site at most:

{
"websites": ["www.gov.uk", "https://www.nytimes.com/sitemaps/new/sitemap.xml.gz", "https://ma.tt"],
"onlySitemapList": true,
"maxSitemapsPerSite": 100
}

A news sitemap or a feed as the source:

{ "websites": ["https://www.theguardian.com/sitemaps/news.xml", "https://nodejs.org/en/feed/blog.xml"], "includeDetails": true }

Output example

{
"url": "https://www.theguardian.com/business/live/2026/oct/21/uk-inflation-jump-rising-motor-fuels-cost-jackdaw-gas-field-latest-news-updates",
"site": "theguardian.com",
"sitemapUrl": "https://www.theguardian.com/sitemaps/news.xml",
"sitemapType": "urlset",
"depth": 0,
"lastmod": "2026-10-21T07:18:00.000Z",
"changefreq": "hourly",
"priority": null,
"title": null,
"imageCount": 1,
"videoCount": 0,
"alternateCount": 0,
"images": [{ "url": "https://i.guim.co.uk/img/media/0c7cfe3a3b22a5d0036436b1cf48014fee362edb/126_0_3780_3024/master/3780.jpg?width=1200&quality=85&auto=format&fit=max&s=a00f300ea7a6ce30a4b0fef14155ee74", "title": null, "caption": null }],
"videos": [],
"alternates": [],
"news": { "publication": "The Guardian", "language": "en", "publicationDate": "2026-10-21T07:11:08.000Z", "title": "UK inflation jumps to 3.5% on rising motor fuels costs; UK approves Jackdaw gasfield – business live" },
"scrapedAt": "2026-10-21T07:20:56.854Z"
}

Use cases

  • SEO audits and migrations: export the full URL inventory of a site, compare it with crawl data or Search Console, find orphan sections, check lastmod hygiene and hreflang coverage.
  • Content monitoring: run it on a schedule with lastmodFrom to get the pages changed since yesterday from news sites, documentation or competitors.
  • Seed lists for crawlers and AI pipelines: feed the URLs to Website to Markdown Scraper (the same HTTP core this Actor is built on) or to any other scraper, filtered to the sections you care about.
  • Competitive research: count product, category or article URLs across competitors in one run.

Pricing

Pay per event, no subscription: one event per URL row, and one per sitemap row in list mode. See the Pricing tab for current prices; paid Apify plans get lower rates. The Apify platform adds its usual compute cost, which is small because the Actor only downloads XML files: the default run (500 URLs) takes a few seconds. maxItems is exact and the Actor also respects the run's maximum charge.

Compared with alternatives

This ActorGeneric sitemap toolsFull website crawlers
Discoveryrobots.txt + 5 common paths + nested indexesoften one fixed URLcrawl the HTML
FormatsXML, indexes, .gz, image / video / news / hreflang, RSS, Atom, textusually XML onlyn/a
Outputflat rows + per-site reportflat rowspage content

Use a crawler when you need the page content; use this Actor when you need the list of URLs and their sitemap metadata.

Integrations

Run it from the Apify API, the JavaScript and Python clients, the CLI, schedules and webhooks, and connect the dataset to Google Sheets, Make, Zapier, n8n, Airbyte or your own code. The Actor also works through the Apify MCP server, so an AI agent can ask for "all the documentation URLs of example.com changed this month".

FAQ

Is this legal? Sitemaps are published by site owners precisely so that automated clients can read them; the Actor only downloads those public XML files and never loads the pages. Respect each site's terms for what you do with the data.

Do I need a proxy? Usually not: the default is direct requests. Choose Apify datacenter proxies in proxyConfiguration if a site rate-limits you. Residential proxies are refused on purpose, because sitemap files are large and their bandwidth would cost more than the rows.

A site returns no rows. Look at the SITEMAPS record: it tells whether robots.txt had no Sitemap: line and none of the common paths answered, whether the file was HTML or blocked, or whether your filters removed everything. Give the sitemap URL directly when you know it.

Limits? Up to 10,000 inputs per run, 2,000,000 rows, 5,000 sitemap files per site, 64 MB per file after decompression. Very large sites (hundreds of sitemap files) need maxSitemapsPerSite raised.

URLs without lastmod and lastmodFrom. They are dropped when the date filter is set, because nothing says when they changed.

En español

Extrae todas las URL publicadas en los sitemaps XML de un sitio: descubre los sitemaps por robots.txt y rutas comunes, sigue índices anidados y archivos .gz, y entrega una fila por URL con lastmod (ISO), changefreq, priority, imágenes, vídeos y alternates hreflang. Filtra por patrón y fecha. Consulta la pestaña Pricing para ver los precios actuales; los planes de pago de Apify tienen tarifas más bajas.

Changelog

  • 0.1 (October 2026): first release. Discovery via robots.txt and common paths, nested indexes, gzip, image / video / news / hreflang extensions, RSS / Atom feeds, text sitemaps, pattern and date filters, sitemap list mode, per-site report.