Sitemap Extractor & Sitemap URL Scraper + SEO Index Audit avatar

Sitemap Extractor & Sitemap URL Scraper + SEO Index Audit

Pricing

from $0.30 / 1,000 sitemap url saveds

Go to Apify Store
Sitemap Extractor & Sitemap URL Scraper + SEO Index Audit

Sitemap Extractor & Sitemap URL Scraper + SEO Index Audit

Sitemap extractor: get every URL from a website's XML sitemaps (robots.txt, sitemap index, .xml.gz) and audit them for SEO indexing problems: 404s, redirects, noindex, canonical mismatch, robots.txt blocks and stale lastmod.

Pricing

from $0.30 / 1,000 sitemap url saveds

Rating

0.0

(0)

Developer

Andy zeng

Andy zeng

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 hours ago

Last modified

Share

Sitemap Extractor & SEO Index Audit

Extract every URL from a website's XML sitemaps and find the pages Google can't index. Give it a domain or a sitemap URL. The actor reads robots.txt to find the sitemaps, follows nested sitemap indexes (including .xml.gz), and lists every URL with lastmod, changefreq, priority, hreflang alternates and image/video counts. It can also fetch each URL and flag 404s, redirects, noindex, canonical mismatches, robots.txt blocks, stale lastmod dates and duplicates, which are the usual reasons for "Discovered / Crawled – currently not indexed" in Google Search Console.

What you get

  • A full sitemap URL list (CSV, JSON or Excel export) across all sitemap files, de-duplicated.
  • An indexability audit per URL: HTTP status, redirect chain, final URL, meta robots, X-Robots-Tag, canonical, page title and response time.
  • Issue flags for every URL (see the table below).
  • A site health score plus issue counts and sitemap-file errors in the SUMMARY record.
  • An ISSUES CSV of only the problem URLs, ready to hand to a developer or import into a spreadsheet.

Use cases

  • Technical SEO audits: find sitemap URLs that return 404, redirect, are noindexed or point their canonical elsewhere. Google treats these as sitemap errors.
  • Migrations and redesigns: check that the new sitemap only lists live, indexable URLs.
  • Competitor research: extract a competitor's full URL inventory, or find their newest pages by lastmod.
  • Content inventory: get a full page list with last-modified dates for content pruning or refresh planning.
  • Monitoring: schedule it weekly and alert when new 404s or noindex pages appear in the sitemap.
  • Feeding other tools: pass the URL list to crawlers, scrapers, RAG/LLM pipelines or the Wayback Machine URL Extractor.

Input

FieldDescriptionDefault
startUrlsDomains (example.com), homepages, or direct sitemap URLsrequired
auditPagesFetch and audit each URL. Turn it off to only extract URLstrue
maxUrlsPerSiteMaximum unique sitemap URLs per site100
maxAuditsPerSiteMaximum URLs to fetch and audit per site50
outputOnlyIssuesSave only URLs that have issues (you pay only for saved URLs)false
staleLastmodDaysFlag lastmod dates older than N days (0 = off)365
includeUrlPatterns / excludeUrlPatternsRegex filters, e.g. /blog/–
maxSitemapsPerSiteMaximum sitemap files read (including nested indexes)200
concurrencyParallel requests per site (keep it polite)5

Example:

{
"startUrls": ["example.com", "https://shop.example.com/sitemap_index.xml"],
"auditPages": true,
"maxUrlsPerSite": 5000,
"maxAuditsPerSite": 1000,
"outputOnlyIssues": false
}

Output

Each dataset item is one sitemap URL:

{
"site": "wordpress.org",
"url": "https://wordpress.org/enterprise/media/",
"sitemapUrl": "https://wordpress.org/sitemap-1.xml",
"lastmod": "2022-03-28T20:20:42Z",
"priority": null,
"hreflangAlternates": null,
"statusCode": 200,
"finalUrl": "https://wordpress.org/enterprise/media/",
"redirectCount": 0,
"metaRobots": "max-image-preview:large, noindex,follow",
"canonical": "https://wordpress.org/enterprise/media/",
"title": "Media | WordPress.org",
"responseTimeMs": 286,
"issues": ["stale-lastmod", "noindex"],
"issueCount": 2
}

Key-value store records:

  • SUMMARY: per-site health score, issue counts, sitemaps read, sitemap errors and site-level problems (missing robots.txt, no sitemap, and so on).
  • ISSUES: a CSV of the problem URLs.

Issues detected

IssueMeaning
http-404, http-410, http-5xx…The sitemap lists a URL that returns an error
redirectedThe sitemap URL redirects. List the final URL instead
noindexmeta robots or X-Robots-Tag says noindex, which contradicts the sitemap
canonical-mismatchThe canonical tag points to a different URL
blocked-by-robots-txtrobots.txt disallows the URL for Googlebot
unreachableTimeout or connection error
non-html-contentReturns a non-HTML content type unexpectedly
stale-lastmod / future-lastmod / invalid-lastmodProblems with the lastmod date
duplicate-in-sitemapsThe same URL is listed more than once
http-not-https, off-domain-url, invalid-urlURL hygiene problems

Health score is the percentage of audited URLs that are indexable: no error status, redirect, noindex, canonical mismatch or robots block.

Pricing (pay per event)

EventPrice
Actor start (per run)$0.005
Sitemap URL saved$0.0003 (= $0.30 per 1,000 URLs)
Page audited$0.0012 (= $1.20 per 1,000 audited pages)

A full audit of 1,000 pages costs about $1.50. Extracting 10,000 URLs without auditing costs about $3. Set a maximum cost per run, and the actor stops cleanly at your limit while keeping the results collected so far.

FAQ

Is this legal? The actor reads public sitemaps and robots.txt (which exist so crawlers can read them) and requests public pages at a polite rate with a clear user agent. It doesn't log in or bypass anything.

Can it find sitemaps automatically? Yes. It reads Sitemap: lines in robots.txt, then falls back to /sitemap.xml, /sitemap_index.xml, /wp-sitemap.xml and other common paths.

Does it support gzip, sitemap indexes, hreflang, image and news sitemaps? Yes.

Does it execute JavaScript? No. It reads the HTML head as served, which is what matters for meta robots and canonical in most cases.


中文说明

这个工具做什么

输入一个域名或 sitemap 地址,工具会自动从 robots.txt 和常见路径找到网站的全部 XML sitemap,递归读取 sitemap 索引(支持 .xml.gz),提取所有 URL,并附带 lastmod、changefreq、priority、hreflang 多语言链接和图片/视频数量。开启审计后,工具会逐个访问这些 URL,检查谷歌无法收录的原因:404/5xx 错误、重定向、noindex、canonical 指向别处、被 robots.txt 屏蔽、lastmod 过旧、重复 URL 等。这些正是 Google Search Console 里"已发现/已抓取 – 尚未编入索引"的常见原因。

适用场景

  • 技术 SEO 审计:找出 sitemap 中的死链、重定向、noindex 和 canonical 冲突
  • 网站改版或迁移后检查新 sitemap 的质量
  • 竞品分析:导出竞争对手的完整 URL 列表,按 lastmod 找出他们的最新页面
  • 内容盘点:获取全站页面和最后修改时间
  • 定期监控:每周运行一次,sitemap 出现新的 404 或 noindex 时提醒你
  • 为爬虫、抓取工具、RAG/大模型流程提供 URL 列表

输入参数

  • startUrls:域名、首页或 sitemap 地址(必填)
  • auditPages:是否逐个访问并审计 URL(默认开启;关闭后只提取 URL,更便宜)
  • maxUrlsPerSite:每个网站最多提取多少个 URL(默认 100)
  • maxAuditsPerSite:每个网站最多审计多少个 URL(默认 50)
  • outputOnlyIssues:只保存有问题的 URL(只对保存的 URL 收费)
  • staleLastmodDays:lastmod 早于多少天就标记为过旧(默认 365,填 0 关闭)
  • includeUrlPatterns / excludeUrlPatterns:正则过滤
  • maxSitemapsPerSite、concurrency:高级设置

输出

  • 数据集:每条记录对应一个 URL,包含状态码、最终 URL、重定向链、meta robots、X-Robots-Tag、canonical、标题、响应时间,以及问题列表 issues
  • SUMMARY:每个网站的健康分(可收录 URL 所占比例)、各类问题数量、sitemap 文件错误
  • ISSUES:只含问题 URL 的 CSV,可以直接发给开发人员

价格(按事件计费)

  • 每次运行启动:$0.005
  • 每保存一个 URL:$0.0003(每 1000 个 $0.30)
  • 每审计一个页面:$0.0012(每 1000 个 $1.20)

完整审计 1000 个页面约 $1.50;只提取 1 万个 URL 约 $3。可以设置单次运行的费用上限,达到上限后工具会正常停止并保留已有结果。

常见问题

  • 合法吗? 只读取公开的 sitemap、robots.txt 和公开网页,请求频率克制,User-Agent 清晰标识,不登录、不绕过任何限制。
  • 能自动找到 sitemap 吗? 能。优先读取 robots.txt 里的 Sitemap: 行,找不到时再尝试 /sitemap.xml、/sitemap_index.xml、/wp-sitemap.xml 等常见路径。
  • 支持 gzip、sitemap 索引、hreflang、图片和新闻 sitemap 吗? 都支持。
  • 会执行 JavaScript 吗? 不会。工具读取服务器返回的原始 HTML,大多数情况下这已足够判断 meta robots 和 canonical。

pandabear 的其他工具