Sitemap Extractor & Broken URL Checker avatar

Sitemap Extractor & Broken URL Checker

Pricing

from $0.20 / 1,000 url extracteds

Go to Apify Store
Sitemap Extractor & Broken URL Checker

Sitemap Extractor & Broken URL Checker

Get every URL of a website from its sitemaps: auto-finds them via robots.txt, follows sitemap indexes, reads .gz, lastmod, priority, hreflang. Optionally checks each URL's HTTP status and redirects to find broken pages. From $0.20 per 1,000 URLs.

Pricing

from $0.20 / 1,000 url extracteds

Rating

0.0

(0)

Developer

Ethan Wagner

Ethan Wagner

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

Get every URL of a website in one run, straight from its XML sitemaps, and optionally check each one for broken pages and redirects. Good for SEO audits, site migrations, content inventories, crawl planning, and feeding page lists to scrapers or AI pipelines.

$0.20 per 1,000 URLs (extract only) · $0.70 per 1,000 URLs (extract + status check). Missing or failed sitemaps are free.

Features

  • Auto-discovery: give it a homepage and it reads robots.txt Sitemap: lines, then tries /sitemap.xml, /sitemap_index.xml, /wp-sitemap.xml and others.
  • Sitemap indexes followed recursively (up to 5 levels), gzip (.xml.gz) and plain-text sitemaps supported.
  • Per URL: lastmod, changefreq, priority, image count and hreflang alternates.
  • Duplicate URLs are removed automatically.
  • Status check (optional): HTTP status code, full redirect chain (301/302/307/308), final URL, response time, isBroken flag (4xx, 5xx, DNS and timeout errors). Uses HEAD with a GET fallback, at a polite concurrency you control.
  • Regex filter: keep only /blog/, .pdf, a language folder, etc.

Input example

{
"startUrls": [{ "url": "https://apify.com" }, { "url": "https://example.org/sitemap_index.xml" }],
"checkStatus": true,
"maxUrls": 5000,
"urlFilter": "/blog/"
}

Output example

{
"url": "https://apify.com/about",
"statusCode": 200,
"isBroken": false,
"finalUrl": "https://apify.com/about",
"redirectChain": [],
"responseTimeMs": 46,
"lastmod": null,
"priority": null,
"imageCount": 0,
"hreflangs": [],
"sitemapUrl": "https://apify.com/sitemap/pages.xml",
"startUrl": "https://apify.com"
}

Export as CSV, Excel or JSON, or use it via the API, schedules, Make, Zapier, n8n or MCP. Schedule it weekly to get alerted to newly broken pages.

Pricing

Pay per event:

  • url: $0.0002 per unique URL extracted (status check off)
  • url-checked: $0.0007 per unique URL extracted and checked

Rows that only report a problem ("no sitemap found", "sitemap returned 404") are not charged. Set a max spend per run in the run options and the Actor stops cleanly when it's reached.

Notes

  • Only public sitemap files and public pages are requested. No login, no personal data.
  • Some sites block automated requests (403). Those show up as broken in the status check, with the status code shown.