Sitemap URL Extractor - Get All Website URLs
Pricing
from $0.25 / 1,000 results
Sitemap URL Extractor - Get All Website URLs
Get every URL of a website from its sitemaps, with last-modified dates. Finds sitemaps via robots.txt, follows indexes, reads .xml, .gz and .txt. Optional check finds 404s and redirects.
Pricing
from $0.25 / 1,000 results
Rating
0.0
(0)
Developer
Chaseb Gonzalez
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
12 days ago
Last modified
Categories
Features
Share
Get every URL of any website in seconds, straight from its sitemap.xml. Give it a website or a sitemap link, and this sitemap scraper returns every page URL with its last-modified date, ready to download as Excel, CSV or JSON, or to pass to another Actor.
No browser, no crawling page by page, so it is fast and cheap: thousands of URLs per minute.
What does it do?
- Finds the sitemaps for you. Reads
robots.txt, then tries/sitemap.xml,/sitemap_index.xmland/wp-sitemap.xml. - Follows sitemap indexes (sitemaps of sitemaps), including big sites split into hundreds of files.
- Reads every format: XML, gzipped
.xml.gzand plain-text sitemaps. - Removes duplicates across all sitemaps and websites in a run.
- Filters URLs so you only get (and pay for) what you need, for example only
/blog/or/products/. - Optional status check: adds the HTTP status (200, 301, 404...) and the final address after redirects, to find broken or redirected pages.
Who uses it?
- SEO audits: get every indexable URL and compare it with what search engines show.
- Content inventories and site migrations: list every old URL before moving to a new site, then check that each one redirects correctly with URL Status & Redirect Checker.
- Researchers and analysts: count a site's products, articles or locations from its URL structure, and see how fast it grows.
- Competitor monitoring: sort by last-modified date to see which pages a competitor added or changed recently.
- Feeding other scrapers: collect product, article or listing URLs first, then send them to the scraper of your choice.
- AI agents and automations: a predictable, cheap first step for any workflow that needs a site's page list.
How to use it
- Add one or more websites (
https://example.com) or direct sitemap links (https://example.com/sitemap.xml). For long lists, link a text file with one website per line. - Optional: set Maximum URLs, filters, or turn on Check that each URL works.
- Click Start, then download the results as Excel, CSV, JSON or HTML, or get them through the API.
Input example
{"startUrls": [{ "url": "https://crawlee.dev" }],"maxUrls": 1000,"includeUrlsContaining": ["/docs/"],"checkStatus": false}
Output example
{"url": "https://crawlee.dev/js/docs/quick-start","lastmod": null,"changefreq": "weekly","priority": 0.5,"httpStatus": null,"finalUrl": null,"sitemapUrl": "https://crawlee.dev/sitemap.xml","website": "https://crawlee.dev"}
lastmod, changefreq and priority are only filled when the website provides them. httpStatus and finalUrl are filled when the status check is on.
Each run also saves a SUMMARY record (in the key-value store) with, for each website: where the sitemaps were found, how many were read, URLs saved, duplicates, filtered URLs and any problems.
Use it from the API or an AI agent
- AI agents: connect your AI assistant to the Apify MCP server and it can find and run this Actor on its own. The Actor's ID is
faglez/sitemap-url-extractor, and every input field has a plain description, so the agent knows what to send. - API: a single call starts a run and returns the results. This suits small runs that finish within 5 minutes:
POST https://api.apify.com/v2/acts/faglez~sitemap-url-extractor/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>Content-Type: application/json{ "startUrls": [{ "url": "https://crawlee.dev" }], "maxUrls": 100 }
For bigger jobs, start a run and read its dataset when it finishes, or use the Apify clients for JavaScript and Python.
- No code: set up schedules, webhooks and integrations (Make, Zapier, Slack, Google Drive and more) from the Actor's Integrations tab.
How much does it cost?
You only pay for what you get:
| Event | Price |
|---|---|
| Each URL saved | $0.25 per 1,000 URLs |
| Each status check (only if you turn it on) | $0.50 per 1,000 checks |
| Actor start | $0.001 per run |
Example: 10,000 URLs cost about $2.50, or $7.50 with the status check on. Set Maximum URLs or a maximum cost per run and the Actor stops cleanly at your limit, keeping everything it saved.
Tips
- Big sites: start with a small Maximum URLs to preview the data, then raise it.
- Only some sections: use Only keep URLs containing (for example
/blog/) so you do not pay for URLs you will throw away. - Know the sitemap already? Give the direct link, it saves a few requests.
- Several websites: add them all to one run. Duplicates are removed across all of them.
Questions
What if a website has no sitemap? The run still finishes, and the status message and SUMMARY record tell you which websites had none. This Actor reads sitemaps only; it does not crawl pages to discover links.
Some sitemaps failed. Why? Some websites block automated requests or have broken sitemap files. The SUMMARY record lists every problem with the exact address and error.
Is it allowed? Websites publish sitemaps so that search engines and other tools can find their pages, and this Actor only reads those public files (and, if you ask, sends one quick request per URL to check its status). You are responsible for how you use the data, including any website's terms.
I already have a list of URLs. How do I check them all? Use URL Status & Redirect Checker. It checks any list of URLs and records every redirect hop.
How many URLs can I get? Up to 1,000,000 per run (Maximum URLs). Big sitemap indexes are followed automatically, including .gz files and nested indexes.
Can I get only one section of a website, like the blog? Yes: put /blog/ in Only keep URLs containing, or exclude sections with Skip URLs containing. URLs that are filtered out are not charged.
I entered several websites, but only the first one has URLs. Why? Maximum URLs is a limit for the whole run, and websites are read in the order you list them, so one big website can use it up. To get a set number of URLs from each website, raise the limit or run the Actor once per website.
Does it give the last-modified date? Yes, when the sitemap has one: lastmod, plus changefreq and priority. Many sitemaps leave these out; they are then null.
Found a bug or need a feature? Open an issue in the Issues tab and I will look into it.