Sitemap URL Extractor - Fast Bulk Sitemap Scraper avatar

Sitemap URL Extractor - Fast Bulk Sitemap Scraper

Pricing

from $0.30 / 1,000 urls

Go to Apify Store
Sitemap URL Extractor - Fast Bulk Sitemap Scraper

Sitemap URL Extractor - Fast Bulk Sitemap Scraper

Extract every URL from any website's XML sitemap for crawlers, RAG pipelines and SEO audits. Auto-discovers sitemaps from robots.txt, follows nested indexes, reads .gz files, returns URL, lastmod, changefreq and priority. Filter by pattern or date. No browser, no proxy.

Pricing

from $0.30 / 1,000 urls

Rating

0.0

(0)

Developer

Odd Nectary

Odd Nectary

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 hours ago

Last modified

Features

Limited permissions

Share

What does Sitemap URL Extractor do?

Extract every URL from any website's sitemap in seconds. Give this Actor a domain or a sitemap URL and it returns a clean list of all pages with lastmod, changefreq and priority. It discovers sitemaps automatically from robots.txt, follows nested sitemap indexes, reads gzipped files, and handles sites with hundreds of thousands of URLs - without a browser and without proxies.

InputWebsite domains or sitemap URLs
OutputOne row per URL: url, lastmod, changefreq, priority, source sitemap. JSON, CSV, Excel or API
Pricefrom $0.30 per 1,000 URLs, pay per result, cheaper on higher Apify plans
NeedsNo proxy, no login, no API key

How to extract sitemap URLs

  1. Open Sitemap URL Extractor in Apify Console and click Try for free.
  2. Add one or more websites (https://docs.apify.com) or direct sitemap URLs (https://example.com/sitemap_index.xml).
  3. Optional: keep or drop URLs by pattern, keep only pages modified after a date, and set a maximum number of URLs.
  4. Click Start. Most runs finish in a few seconds.
  5. Open the Output tab and export the dataset as JSON, CSV or Excel, or read it through the API.

How much does it cost to extract sitemap URLs?

Pay per result: from $0.30 to $0.50 per 1,000 URLs. No monthly rental, no platform usage on top.

Your Apify planPrice per 1,000 URLs
Free$0.50
Starter (Bronze)$0.45
Scale (Silver)$0.40
Business (Gold) and above$0.30

Results removed by your filters are free: you only pay for what you receive. Use the max items input to cap spending.

Why this sitemap extractor

  • Auto-discovery: pass example.com and the Actor reads robots.txt, then tries the usual locations (/sitemap.xml, /sitemap_index.xml, /wp-sitemap.xml, .gz variants).
  • Every sitemap flavour: <urlset>, <sitemapindex> (nested to any depth), gzip, plain-text sitemaps, and RSS/Atom feeds used as sitemaps.
  • Tolerant parser: survives BOMs, CDATA, XML entities, namespaces and slightly broken XML that strict parsers reject.
  • Useful filters: include/exclude URL patterns, child-sitemap patterns (read only product sitemaps, skip image ones) and a last-modified date filter.
  • Honest failures: unreachable or blocked sitemap files are listed in the run summary instead of failing the whole run.

What can you do with a list of sitemap URLs

  • Feed a crawler or a RAG pipeline - get the complete, canonical URL list of a site before crawling it (works great as the first step for Website Content Crawler).
  • SEO audits and migrations - export all indexable URLs, compare before and after a migration, find sections missing from the sitemap.
  • Content monitoring - schedule a run with modifiedAfter to get only pages changed since your last check.
  • Competitor research - count products, categories, blog posts or locations a competitor publishes, and watch them grow.
  • Hreflang and image checks - optionally export the language alternates and image URLs declared for each page.

Sitemap URL Extractor input

FieldTypeDescription
startUrls (required)array of stringsWebsites (example.com) or direct sitemap URLs. Mix freely.
includePatternsarrayKeep only URLs matching any pattern.
excludePatternsarrayDrop URLs matching any pattern.
modifiedAfterdateKeep only URLs with lastmod on or after this date.
sitemapIncludePatternsarrayIn sitemap indexes, read only child sitemaps matching these.
sitemapExcludePatternsarrayIn sitemap indexes, skip child sitemaps matching these.
maxDepthintegerLevels of nested indexes to follow (default 5).
maxSitemapsintegerSafety limit on sitemap files per run (default 5000).
includeImagesAndAlternatesbooleanAdd images and hreflang alternates to each item.
deduplicatebooleanReturn each URL once (default true).
maxItemsintegerHard cap for the run.

Pattern syntax: plain text matches anywhere in the URL (/blog/), * is a wildcard (*/product/*, *.pdf), and the regex: prefix enables a regular expression (regex:/p/\d+$). Matching is case-insensitive.

Example input

{
"startUrls": ["https://docs.apify.com", "https://example.com/sitemap_index.xml"],
"includePatterns": ["/platform/"],
"excludePatterns": ["*.pdf"],
"modifiedAfter": "2026-01-01",
"maxItems": 10000
}

Sitemap url data output

One item per URL:

{
"url": "https://docs.apify.com/platform/actors",
"lastmod": "2026-11-18T00:00:00.000Z",
"changefreq": "weekly",
"priority": 0.5,
"sitemapUrl": "https://docs.apify.com/sitemap_base.xml",
"source": "https://docs.apify.com"
}

With includeImagesAndAlternates enabled, each item also has images (array of image URLs) and alternates (array of { "hreflang", "href" }).

A RUN_SUMMARY record in the key-value store reports sitemap files read, files that failed (with the reason), sites without a sitemap, URLs found and URLs saved.

Limits and good to know

  • The Actor reads sitemaps, it does not crawl pages. A site without a sitemap returns no URLs (and is reported in the summary).
  • Some sites block datacenter traffic to their sitemap. The Actor reports those files as failed (for example HTTP 403) and does not try to bypass protections.
  • Requests to the same host are spaced out and retried with backoff on 429 and 5xx, so it stays polite on large sitemap trees.
  • A single sitemap file larger than 60 MB uncompressed is skipped (the protocol limit is 50 MB).
  • lastmod, changefreq and priority are returned as declared by the site; many sites omit them.

FAQ about Sitemap URL Extractor

Is this legal? Sitemaps are files that websites publish specifically for automated readers. The Actor only reads robots.txt and sitemap files and collects no personal data.

How do I crawl the pages afterwards? Pass the resulting dataset to a crawler Actor (for example Website Content Crawler) as its start URLs.

Can I use it through the API, with AI agents or in no-code tools? Yes. Run it from the Apify API, the apify-client packages for JavaScript and Python, the Apify MCP server (Claude, ChatGPT, Cursor and other agents), or the Apify integrations for Make, n8n and Zapier. Schedules and webhooks are built into the platform.

Which export formats are available? JSON, JSON Lines, CSV, Excel, XML and RSS, from the dataset tab or the API.

What happens when nothing is found or the input is wrong? The run still finishes as succeeded, with a status message that says what was missing, and you are charged nothing for results that do not exist.

Something is missing or broken? Open an issue in the Issues tab of this Actor.

More Actors from the same developer

ActorWhat it does
Greenhouse Jobs ScraperGet every open job from any company that hires through Greenhouse (Airbnb, Stripe, Anthropic and thousands more) via the official public Job Board API
Ashby Jobs ScraperGet every open job from any company that hires through Ashby (OpenAI, Notion, Ramp and thousands of startups) via the official public Job Postings API
Lever Jobs ScraperGet every open job from any company that hires through Lever (jobs.lever.co), straight from the official public Postings API
ATS Jobs ScraperEvery open job at any company, in one run: type a company name and get all its open roles with title, team, location, posting date and pay range when published
Remote Jobs ScraperFresh remote jobs from 6 boards in one run
Career Site Jobs SearchSearch jobs on thousands of company career sites with one query, no company list: keywords, location, remote and date in, first-party jobs out
Website Tech Stack DetectorDetect the technologies behind any website in bulk

Disclaimer

This Actor is an independent tool. It is not affiliated with the websites whose sitemaps it reads, nor with any search engine or SEO product.