Sitemap URL Extractor: lastmod, hreflang, robots, status avatar

Sitemap URL Extractor: lastmod, hreflang, robots, status

Pricing

from $0.10 / 1,000 results

Go to Apify Store
Sitemap URL Extractor: lastmod, hreflang, robots, status

Sitemap URL Extractor: lastmod, hreflang, robots, status

Extract every URL from a website's XML, gzip or text sitemaps and sitemap indexes. Get lastmod, changefreq, priority, hreflang alternates, image counts, robots.txt allow flags and optional HTTP status codes. No proxy or browser.

Pricing

from $0.10 / 1,000 results

Rating

0.0

(0)

Developer

Kevin Rajan

Kevin Rajan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Features

Limited permissions

Share

Sitemap URL Extractor: every URL from a site's sitemaps, with SEO fields

Give it a domain or a sitemap URL. It finds the sitemaps, follows sitemap indexes, and returns one clean row per page URL with lastmod, changefreq, priority, hreflang alternates, image counts, and a robots.txt allowed flag. Optional HTTP status checks show broken or redirected sitemap URLs.

It uses plain HTTP requests: no browser, no proxy, no login. It reads only robots.txt and sitemap files unless you turn on status checks.

What it does

  • Finds sitemaps for you. For a bare domain it reads Sitemap: lines in robots.txt, then tries /sitemap.xml, /sitemap_index.xml, /sitemap-index.xml and /wp-sitemap.xml.
  • Reads every format. XML urlset, nested sitemapindex files (followed recursively), .xml.gz gzip sitemaps, and plain-text .txt sitemaps.
  • Returns the SEO fields that matter. lastmod, changefreq, priority, <xhtml:link hreflang> alternates, and the number of <image:image> entries.
  • Flags sitemap/robots conflicts. robotsAllowed: false marks URLs listed in the sitemap but blocked by the start host's robots.txt, a common technical SEO error. Rules follow Google's matching: * and $ wildcards, longest rule wins, and a tie goes to Allow. Only the User-agent: * group is applied, and URLs on other hosts get null.
  • Can check status codes (optional). It sends a HEAD request to each URL (a 1-byte GET if HEAD is refused) and follows redirects. It records the final status code, the final URL, and redirected: true when the final URL differs. URLs blocked by robots.txt are never requested. Requests are paced, and a 429 response is retried once after the server's Retry-After delay, up to 10 seconds.
  • Filters before you pay. Include and exclude regular expressions run before a row is saved, so skipped URLs are free.
  • Fails fast and cheaply. If a site has no readable sitemap, the run says so in the log and saves no rows, so you pay no per-URL charges. It does not wander a site or burn time on retries.

Input

FieldDefaultDescription
startUrls(required)1 to 20 domains, homepages, or direct sitemap URLs
maxUrls1000Stop after this many unique URLs (up to 200,000)
includePatternemptyOnly keep URLs matching this regex, e.g. /blog/
excludePatternemptyDrop URLs matching this regex, e.g. \?page=|/tag/
checkStatusfalseRequest each URL and record statusCode and finalUrl
concurrency5Parallel status requests (1 to 20)
{
"startUrls": ["https://crawlee.dev"],
"maxUrls": 1000,
"excludePattern": "/api/",
"checkStatus": true
}

Output

One dataset row per unique page URL:

{
"url": "https://crawlee.dev/blog",
"site": "https://crawlee.dev",
"sitemapUrl": "https://crawlee.dev/sitemap.xml",
"lastmod": null,
"changefreq": "weekly",
"priority": 0.5,
"imageCount": 0,
"alternates": [],
"robotsAllowed": true,
"statusCode": 200,
"finalUrl": "https://crawlee.dev/blog",
"redirected": false
}

lastmod is the raw value the site published. statusCode, finalUrl and redirected are null when status checks are off, when robots.txt blocks the URL, or when the request fails. Export as JSON, CSV, Excel or HTML from the dataset tab, or fetch through the API.

A SUMMARY record in the key-value store reports resultCount, errorCount (start URLs without a readable sitemap) and aborted.

Pricing

Pay per event, per saved URL, by Apify plan:

Apify planPer 1,000 URLs
Free, Starter (Bronze)$0.30
Scale (Silver)$0.20
Business (Gold) and above$0.10

There is also a $0.00005 start fee per run. There are no charges for filtered-out URLs, duplicates, or sites without a sitemap. Set a maximum cost per run in the run options and the Actor stops cleanly at that limit.

Examples on the Free plan: 1,000 URLs cost about $0.30, and a 20-URL smoke test costs under $0.01.

Use cases

  • Crawl planning. Feed a clean URL list into Website Content Crawler or your own scraper instead of crawling blindly.
  • Technical SEO audits. Find 404s, redirects and robots-blocked URLs that are still in the sitemap, plus missing lastmod and hreflang gaps.
  • Content inventories. Count blog posts, product pages or docs pages, and track lastmod over time with a scheduled run.
  • Competitor monitoring. Schedule weekly runs and diff the datasets to spot new or removed pages.

How it compares

Compared with the best-known sitemap extractor on Apify Store (checked November 2026), whose documented output is url, status and lastmod:

  • Same price or lower on every plan: $0.30 per 1,000 URLs on Free against its $0.50, and equal to its Bronze, Silver and Gold prices.
  • More output fields: changefreq, priority, hreflang alternates, image counts, the source sitemap file, a robots.txt allow flag, the final redirect URL, and a redirected flag.
  • Status checks are opt-in, so a plain URL list does not send a request to every page on the site.
  • A clear result when there is no sitemap: the run finishes with a plain message and no per-URL charges.

Formats supported here: XML, sitemap indexes, gzip and plain-text sitemaps, with robots.txt discovery and four well-known fallback paths.

FAQ

Does it crawl pages or follow links? No. It reads only robots.txt and sitemap files. With checkStatus on, it sends one lightweight request per listed URL and never downloads page bodies.

Does it work on JavaScript-heavy sites? Yes. Sitemaps are static XML, so the site's front-end framework does not matter.

Why did my run return nothing? The site publishes no sitemap at robots.txt or the common paths. If you know its sitemap URL, pass it directly in startUrls.

Does it bypass blocking or use proxies? No. It identifies itself with a clear User-Agent and does not circumvent bot protection. A site that blocks plain HTTP requests to its sitemap will show up as "no readable sitemap".

Is there a size limit? Each sitemap file can be up to 50 MB uncompressed (the sitemap protocol maximum). Up to 500 sitemap files per site and up to 200,000 URLs per run are supported.

Does it collect personal data? No. Output contains only URLs and sitemap metadata published for search engines.

Limits and responsible use

Run it on sites you own or whose terms allow automated access. Keep concurrency low when checking status on small sites. Private, loopback and internal network addresses are refused.