Sitemap Extractor & URL Finder: All Pages, Lastmod, Hreflang avatar

Sitemap Extractor & URL Finder: All Pages, Lastmod, Hreflang

Pricing

from $0.15 / 1,000 urls

Go to Apify Store
Sitemap Extractor & URL Finder: All Pages, Lastmod, Hreflang

Sitemap Extractor & URL Finder: All Pages, Lastmod, Hreflang

Sitemap extractor and URL finder: get every page URL a website publishes, with lastmod, changefreq, priority, hreflang and image counts. Finds sitemaps via robots.txt, follows nested sitemap indexes, reads .gz, text, RSS and Atom. Date and pattern filters, optional status codes. Pay only per URL.

Pricing

from $0.15 / 1,000 urls

Rating

0.0

(0)

Developer

Keel Data

Keel Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

Share

Get every page URL a website publishes in its sitemaps, as clean rows with lastmod, changefreq, priority, hreflang language versions and image counts. Enter a domain and the Actor finds the sitemaps for you, or paste the exact sitemap URL.

Built for SEO audits, site migrations, content inventories and crawl planning. You pay only for URLs delivered. Sites without a sitemap, broken sitemap files and filtered-out URLs are free.

What it does

  • Finds the sitemaps: reads the Sitemap: lines in robots.txt, then tries /sitemap.xml, /sitemap_index.xml, /sitemap-index.xml, /wp-sitemap.xml, /sitemap.txt and /sitemap.xml.gz.
  • Follows nested sitemap indexes (index → index → urlset), up to 500 files per site by default.
  • Reads every common format: XML sitemaps, gzipped .xml.gz, plain-text sitemap.txt, RSS and Atom feeds.
  • Keeps the useful extras: hreflang alternates (xhtml:link), image sitemap entries, video counts and Google News titles and dates.
  • Filters: keep or skip URLs by pattern (plain text or regular expression) and by lastmod date range.
  • Optional HTTP status check: finds 404s, redirects and server errors that are still listed in a sitemap.
  • Removes duplicates per site, so a URL listed in two sitemaps comes back once.

How to use it

  1. Enter one or more websites (example.com) or sitemap URLs (https://example.com/post-sitemap.xml).
  2. Optionally set Max URLs per site (default 1,000; 0 = no limit), URL patterns and dates.
  3. Run, then download the results as JSON, CSV or Excel, or send them to Google Sheets, Make, Zapier or n8n.

Example input

{
"startUrls": ["https://crawlee.dev", "https://wordpress.org/news/sitemap.xml"],
"maxUrlsPerSite": 5000,
"includeUrlPatterns": ["/blog/"],
"excludeUrlPatterns": ["/tag/", "/page/\\d+"],
"lastmodAfter": "2026-01-01",
"checkStatusCodes": false
}

Example output (one row per URL)

{
"status": "ok",
"url": "https://www.theguardian.com/sport/live/2026/nov/13/australia-vs-england-cricket-odi-perth-live-scores",
"lastmod": "2026-11-13T02:54:00Z",
"changefreq": "hourly",
"priority": null,
"site": "https://www.theguardian.com/",
"sitemapUrl": "https://www.theguardian.com/sitemaps/news.xml",
"sitemapType": "xml",
"imageCount": 1,
"videoCount": 0,
"alternates": [],
"newsTitle": "Australia v England: first men's cricket one-day international – live",
"newsPublicationDate": "2026-11-13T02:50:08Z",
"scrapedAt": "2026-11-13T03:00:00.000Z"
}

With Check HTTP status on, each row also has httpStatus (for example 200, 301, 404) and redirectTo.

Rows that cost nothing tell you what went wrong:

statusMeaning
no_sitemapNo sitemap in robots.txt or at the usual addresses. triedUrls lists what was checked.
errorOne sitemap file could not be read (404, blocked, not a sitemap). The other files of the site still count.
no_urlsSitemaps were read, but they are empty or your filters removed every URL.

A per-site summary (sitemaps found and read, URLs found, duplicates, filtered out, limit reached) is saved in the RUN_STATS record.

Pricing

Pay per event, no start fee, proxies and compute included:

  • URL (url): one row with a page URL from the sitemap.
  • URL with status check (url-with-status): one row when Check HTTP status is on. It replaces the plain URL event; you are not charged twice.

Free: no_sitemap, error and no_urls rows, duplicates, URLs removed by filters and every retry. Set a maximum cost per run in the run options: the Actor stops cleanly when it gets there and keeps everything collected so far. If a run delivers no URL at all, it is marked as failed and costs nothing in events.

Limits

  • Up to 1,000 websites per run and 1,000,000 URLs per site.
  • Sitemap files up to 120 MB uncompressed (the sitemap standard allows 50 MB).
  • Date filters use the lastmod the site declares. URLs without a lastmod are dropped when a date filter is set.
  • This Actor reads sitemaps; it does not crawl links. Pages a site leaves out of its sitemaps are not found.

Use cases

  • SEO audits: compare sitemap URLs with indexed pages, find 404s and redirects listed in sitemaps, check hreflang coverage.
  • Site migrations: export the full URL inventory before and after a move to build redirect maps.
  • Content monitoring: schedule a daily run with lastmodAfter to get pages added or updated since the last run.
  • Crawl planning and AI pipelines: feed the URL list to a content crawler or an AI agent through the Apify MCP server.

Support

We run a test extraction every day and fix problems quickly. If something looks wrong, open an issue on the Issues tab; we answer within one business day.

Is it allowed?

Sitemaps are public files that websites publish so robots can find their pages. This Actor reads only those public files (and, if you ask, the status code of each listed URL). It collects no personal data and needs no login. You are responsible for how you use the results. This Actor is not affiliated with or endorsed by any of the websites you scan or by sitemaps.org.