Sitemap URL Extractor: SEO URL Inventory
Pricing
from $0.50 / 1,000 sitemap url rows
Sitemap URL Extractor: SEO URL Inventory
Extract URLs from XML sitemaps and sitemap indexes. Filter URL patterns and last-modified dates for SEO audits and crawl planning.
Pricing
from $0.50 / 1,000 sitemap url rows
Rating
0.0
(0)
Developer
Ailu Studio
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
14 days ago
Last modified
Categories
Features
Share
Sitemap URL Extractor: SEO URL Inventory
Extract URLs from XML sitemaps and sitemap indexes. Filter URL patterns and last-modified dates for SEO audits and crawl planning.
Try a small sample
Paste this into the Input JSON editor, run the Actor, then inspect its dataset. Export JSON or CSV from the dataset, or use the API tab for authenticated integration examples.
{"websites": ["https://docs.python.org"],"maxUrlsPerSite": 20,"maxSitemaps": 3,"maxItems": 20}
Workflow example
Create an inventory before a content audit. Sitemap lastmod values are publisher-provided; URLs absent from a sitemap can still exist on the site.
{"websites": ["https://docs.python.org"],"urlContains": ["/library/"],"maxUrlsPerSite": 100,"maxSitemaps": 5,"maxItems": 50}
Examples show supported inputs, not guaranteed result counts. Public sources and filters can produce fewer rows or zero rows. Check the run log and any summary/error records before treating the output as complete.
For recurring use, save the input as an Apify Task and schedule sequential runs. Export results to your own spreadsheet, database, n8n or Make workflow. Scheduling does not add stateful tracking to Actors that only return snapshots. Keep API credentials in environment variables.
Related workflow
Broken Link Checker: 404s, Errors & Redirects can complement this Actor. It runs separately and has its own price and input requirements.
Detailed reference
Sitemap URL Extractor: All URLs from sitemap.xml, Sitemap Indexes, .xml.gz and Feeds
Get every URL a website lists in its XML sitemaps, as clean JSON or CSV. Give the Actor a website address and it finds the sitemaps itself (from the Sitemap: lines in robots.txt, otherwise /sitemap.xml, /sitemap_index.xml and /sitemap-index.xml), follows sitemap indexes recursively, and reads gzipped .xml.gz sitemaps, plain-text URL lists and RSS/Atom feeds used as sitemaps. Each URL row carries lastmod, changefreq, priority, image count and image URLs, Google News title and publication date, and hreflang alternates. Filters for URL substrings, modification date and host keep the output focused. Compared with other sitemap extractors in the Store, this one returns news, image and hreflang data per URL, skips child sitemaps that were not modified since your date filter, honours robots.txt, and adds a free per-site summary row (sitemaps found, URLs found, errors) so you can see why a site returned nothing.
Use cases
- SEO audits: list all indexable URLs, compare with crawled pages, check
lastmodfreshness and hreflang coverage. - Content monitoring: pull only URLs modified since a date (
lastmodSince) to find new or updated pages, products or articles. - Crawl seeding: feed the URL list into a scraper or link checker instead of crawling the whole site.
- News and publisher tracking: read Google News sitemaps (title, publication date) of media sites.
- Site migrations: export old and new sitemap URLs to build redirect maps.
Input
| Field | Default | Meaning |
|---|---|---|
websites | ["https://docs.python.org", "https://apify.com"] | Website addresses or direct sitemap/feed URLs. A URL with a path is read as a sitemap first; if it is an ordinary page, the site's sitemaps are discovered instead. |
maxUrlsPerSite | 5000 | Stop reading a site's sitemaps once this many URL rows were returned for it. |
maxSitemaps | 50 | Maximum sitemap files (indexes and URL sets) fetched per site. |
urlContains | [] | Keep only URLs containing at least one of these strings. |
urlExcludes | [] | Drop URLs containing any of these strings. |
lastmodSince | empty | Keep only URLs with lastmod on or after this date (URLs without lastmod are dropped). |
sameHostOnly | true | Keep only URLs on the site's own host (www. ignored). |
maxItems | 2000 | Maximum charged URL rows across all sites. |
Example input:
{ "websites": ["https://www.example.com", "https://blog.example.com/sitemap-posts.xml.gz"], "urlContains": ["/blog/"], "lastmodSince": "2026-10-01", "maxItems": 10000 }
Output
| Field | Type | Meaning |
|---|---|---|
id | string | SHA-1 of the URL, first 16 hex characters (site rows: site:<input>). |
rowType | string | url (charged) or site (free summary). |
site | string | Origin of the website. |
url | string | Page URL from <loc>. |
lastmod | ISO 8601 | null | <lastmod> (item date for feeds). |
changefreq, priority | string, number | null | Sitemap hints when present. |
sitemapUrl | string | Sitemap file the URL came from. |
imageCount, imageUrls | integer, string[] | <image:image> entries (first 10 URLs). |
newsTitle, newsPublishedAt | string, ISO 8601 | null | Google News sitemap data. |
alternates | object[] | [{hreflang, href}] from <xhtml:link rel="alternate">. |
fetchedAt | ISO 8601 | Run time. |
Site summary rows add robotsTxt, sitemapsFound, sitemapsFetched, sitemapUrls, urlsFound, urlsMatched, urlsReturned, notes and errors.
Sample URL row (alternates shortened):
{"id": "338be181a2a92faf", "rowType": "url", "site": "https://docs.python.org", "url": "https://docs.python.org/3.11/","lastmod": null, "changefreq": "yearly", "priority": null, "sitemapUrl": "https://docs.python.org/sitemap.xml","imageCount": 0, "imageUrls": [], "newsTitle": null, "newsPublishedAt": null,"alternates": [{ "hreflang": "de", "href": "https://docs.python.org/de/3.11/" }, { "hreflang": "ja", "href": "https://docs.python.org/ja/3.11/" }],"fetchedAt": "2026-11-04T11:33:00.929Z"}
Sample site row:
{ "id": "site:https://apify.com", "rowType": "site", "site": "https://apify.com", "url": "https://apify.com", "robotsTxt": "ok", "sitemapsFound": 21, "sitemapsFetched": 3, "sitemapUrls": ["https://apify.com/sitemap.xml", "https://apify.com/sitemap/pages.xml", "https://apify.com/sitemap/actors1.xml"], "urlsFound": 51621, "urlsMatched": 51621, "urlsReturned": 1993, "notes": null, "errors": [], "fetchedAt": "2026-11-04T11:37:30.729Z" }
How it works and limits
- Discovery order: direct URL given by you, else robots.txt
Sitemap:lines, else the three common paths (the first that works is used). Sitemap indexes are followed breadth-first up tomaxSitemapsfiles per site. - robots.txt is read once per host and obeyed for every sitemap path that robots.txt does not itself declare (the
User-agent: *group, or a group namingapify-actor-sitemap-url-extractor). If robots.txt is unreachable (5xx), nothing is fetched from that site. - Requests are sequential with at least 500 ms between requests to the same host; 429 and 5xx answers are retried with backoff. A sitemap file may be up to 60 MB; gzip is detected by content, not by file name.
- URLs are de-duplicated across all sitemaps and sites in a run. Duplicate entries inside one site count in
urlsFoundbut are returned once. - The Actor reads what the site publishes in its sitemaps. Pages missing from the sitemaps are not discovered (no crawling), and
lastmodis only as accurate as the site's own data. - Not covered: JavaScript-generated sitemaps, sitemaps behind logins or bot walls, video sitemap details, and checking whether the listed URLs are live (use a link checker for that).
Pricing
Pay per result: $0.50 per 1,000 rows (result event). Platform usage is billed separately by Apify. Removed/free rows are not charged.
Only URL rows are charged; the per-site summary rows are free.
Legal
Not affiliated with any of the websites you extract. Uses the public sitemap files (sitemaps.org protocol) and robots.txt files that websites publish for crawlers only. Data licence/terms: https://www.sitemaps.org/protocol.html and the terms of each website you process. Respect each site's terms of use when you reuse the URLs.
FAQ
Why did a site return 0 URLs? Look at its site row: errors tells you whether no sitemap was found, a sitemap returned an HTTP error, robots.txt disallowed it, or all URLs were removed by your filters (urlsFound > 0 but urlsMatched 0).
Can I pass a sitemap URL directly? Yes. Any URL with a path, including .xml.gz files, news sitemaps and RSS/Atom feeds, is read directly. If it turns out to be an ordinary page, the Actor discovers the site's sitemaps instead and says so in notes.
How do I get only new pages? Set lastmodSince to the date of your last run. Only URLs with a lastmod on or after that date are returned, and child sitemaps whose own lastmod is older are not downloaded.
Why are some URLs on other domains missing? sameHostOnly is on by default and drops URLs whose host differs from the site (for example a CDN or a separate shop domain). Turn it off to keep them.
How large can a site be? Each sitemap file can hold 50,000 URLs. Raise maxUrlsPerSite, maxSitemaps and maxItems for very large sites. Parsing is fast (a 50,000-URL sitemap file is read in a few seconds); run time grows mainly with the number of sitemap files, fetched at most two per second per host.