Sitemap Extractor & URL Finder
Pricing
from $0.10 / 1,000 extracted urls
Sitemap Extractor & URL Finder
Get every URL from a website's sitemaps: auto-discovers them via robots.txt, follows nested sitemap indexes, reads gzip, text, RSS and Atom sitemaps, filters by URL pattern or last-modified date, and can return only the URLs that are new since the last run.
Pricing
from $0.10 / 1,000 extracted urls
Rating
0.0
(0)
Developer
Gabriel
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Features
Share
Get all URLs of a website from its sitemaps, in seconds. Give it a domain and it finds the sitemaps for you (robots.txt first, then common locations), follows nested sitemap indexes, reads compressed and non-XML sitemaps, and returns a clean list of URLs with their last-modified dates, ready to export as CSV, JSON or Excel.
Turn on Only new URLs and schedule it: each run returns just the pages, products or articles that appeared since the previous run, and you pay only for those.
What it does
- Finds sitemaps automatically from
robots.txt, or from/sitemap.xml,/sitemap_index.xml,/wp-sitemap.xmland other common paths when robots.txt lists none. - Follows sitemap indexes at any nesting depth, including split product sitemaps on Shopify, WordPress (Yoast, Rank Math, core) and large news sites.
- Reads every common format: XML, gzip (
.xml.gz), plain-text sitemaps, and RSS and Atom feeds. - Keeps the useful details:
lastmod(normalized to UTC),changefreq,priority, image count and image URLs,hreflanglanguage alternates, and Google News fields. - Survives broken sitemaps: malformed XML (unescaped
&, truncated files) is recovered with a tolerant parser instead of failing the run. - Filters before you pay:
- include or exclude URLs with regular expressions;
- read only certain sitemaps, such as
post-sitemaporproducts; - keep URLs modified after or before a date, or within a period like
7 days.
- Scopes to a section: enter
https://example.com/blog/to get only the URLs under/blog/. - Monitors for new URLs: remembers the URLs it has seen and returns only the others. New URLs a run could not return, because of Max URLs or your cost limit, come back on the next run, unless your filters exclude them by then (a period in Modified after moves with each run).
How to get all URLs of a website
- Enter the website in Websites or sitemap URLs, for example
example.com. To list one section only, enter its address, such ashttps://www.example.com/blog/. - Optionally narrow it down with URL patterns, specific sitemaps or a date.
- Click Start. The extractor finds the site's sitemaps and lists every page they contain.
- Download the URL list as CSV, JSON or Excel, or read it through the API.
Export a sitemap to CSV, JSON or Excel
Already know the sitemap address? Enter it directly, for example https://www.example.com/sitemap.xml or a .xml.gz file. Nested sitemap indexes are followed, and every URL becomes one row with its lastmod, changefreq and priority. Pick the format when you export the results: CSV and Excel for spreadsheets, JSON for code.
Use cases
- SEO audits and content inventories: export every indexable URL with its last-modified date.
- Crawling and AI/RAG pipelines: feed a clean URL list to a crawler instead of discovering links page by page.
- Competitor monitoring: schedule a daily run with Only new URLs to see new products, landing pages or blog posts the day they are published.
- Site migrations and QA: compare the URLs a site advertises before and after a release.
- News and content tracking: use Modified after =
24 hourson news sitemaps to collect fresh articles.
Input examples
Extract all URLs of two sites:
{"startUrls": ["apify.com", "https://www.example.com"]}
Blog posts changed in the last 30 days, without tag and author pages:
{"startUrls": ["https://www.example.com"],"includeUrlPatterns": ["/blog/"],"excludeUrlPatterns": ["/tag/", "/author/"],"modifiedAfter": "30 days"}
Daily monitor of new product pages (schedule this run in Apify):
{"startUrls": ["https://shop.example.com"],"sitemapUrlPatterns": ["product"],"onlyNewUrls": true,"monitoringName": "competitor-shop-products"}
The first monitoring run only saves a baseline: it returns nothing and charges nothing for URLs. Every later run returns only new URLs, each marked with "isNew": true. If the baseline could not read a sitemap, or a site at all, its status message says so, and the next run that reads it adds its URLs to the baseline instead of returning them. Turn off First run only saves a baseline if you also want the current URLs on the first run.
Output
One dataset item per URL:
{"url": "https://www.example.com/products/wool-runner","lastmod": "2026-11-16T11:37:38Z","changefreq": "daily","priority": null,"sitemapUrl": "https://www.example.com/sitemap_products_1.xml","site": "https://www.example.com","sourceType": "xml","imageCount": 1,"alternates": [{ "hreflang": "pt-br", "href": "https://www.example.com/pt/products/wool-runner" }]}
Optional fields:
imageUrls, when Include image URLs is on;news, with the title, publication date, publication name and language;videoCount;isNew, in monitoring mode.
Download the results as JSON, CSV, Excel or HTML, or read them through the Apify API.
A run summary is saved in the key-value store as OUTPUT. For each site it lists:
- the sitemaps it found and read;
- the sitemaps (or robots.txt) that failed, and why;
- how many URLs were found, filtered out, already known or returned (the run's total
urlsFoundcounts a URL once, even when several start URLs read it); - whether the run stopped early.
Sitemap extractor API and integrations
Start a run and get the URLs in one HTTP call (it waits up to 5 minutes, enough for most sites):
curl -X POST "https://api.apify.com/v2/acts/urameshi7k~sitemap-extractor/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{"startUrls": ["https://www.example.com"], "maxUrls": 1000}'
The response is the list of URLs as JSON. Add &format=csv to the address to get CSV instead. The API tab shows ready-made code for the Python and JavaScript clients.
You can also:
- schedule runs, for example a daily list of new pages with Only new URLs;
- send results to Make, Zapier, n8n, Google Drive or Slack, or call your own webhook when a run finishes;
- give AI agents this tool through the Apify MCP server: add
https://mcp.apify.com?tools=urameshi7k/sitemap-extractorto your MCP client.
Pricing
You pay per URL returned, from $0.10 to $0.40 per 1,000 URLs depending on your Apify plan (see the Pricing tab), plus a very small fee for every 100 URLs read from sitemaps (about $0.10 per million URLs). That fee covers downloading and parsing when filters or monitoring return only a few URLs. Date limits skip whole sitemaps, so they make runs cheaper. In monitoring mode, the per-URL price applies only to new URLs.
Set a maximum cost per run in the run options. The Actor stops cleanly before it would go over that limit. With Only new URLs, the new URLs it could not return come back on the next run, unless your filters exclude them by then. Max URLs per run defaults to 100,000, because some sites list millions of URLs. Raise it, or set it to 0, when you need everything.
Tips
- No sitemap found? Some sites don't publish one. If you know the sitemap address, enter it directly, for example
https://example.com/sitemaps/main.xml. - Large sites: a date filter skips whole child sitemaps whose own
lastmodis older, which saves time on news sites with years of archives. With Only new URLs, pages in skipped sitemaps are not remembered, so an old page that gets updated comes back as new. - Memory: the default 1 GB handles sites with about 3 million URLs, even in monitoring mode. On Apify, more memory also means more CPU, so very large sites finish faster with 2–4 GB at a similar cost.
- Separate monitors: runs that share a Monitoring name share their memory of known URLs. Use different names to track different lists of sites. Without a name, the list of start URLs identifies the monitor.
FAQ
How do I find all pages on a website? Enter the website and start the run. The extractor reads the sitemaps the site publishes for search engines and returns every page they list. Pages that no sitemap lists are not included.
How do I convert a sitemap XML to CSV? Enter the sitemap address (or just the website), run it, and export the results as CSV. Each URL becomes one row.
Can I use it through an API? Yes. Every run can be started through the Apify API and returns the URLs as JSON or CSV. See Sitemap extractor API and integrations above.
Does it load pages or run JavaScript?
No. It reads only robots.txt and the sitemap files, which sites publish precisely so that crawlers can find their pages. That's why it is fast and cheap.
How polite is it? It downloads at most five files from the same site at a time, identifies itself with a clear user agent, and retries temporary errors (429 and 5xx) with a pause.
Is it legal to use? Sitemaps are public files intended for automated discovery. You are responsible for how you use the URLs and any content you collect afterwards, including the target site's terms and applicable laws.
A sitemap failed. What now?
Check OUTPUT → sites → sitemapsFailed for the URL and the reason (HTTP status, invalid URL, not a sitemap, too large). Other sitemaps of the same site are still processed.
Related Actors
- Website Screenshot Crawler: screenshot every page of a website, full page on desktop and mobile, with an HTML gallery.