Sitemap Extractor and Change Monitor avatar

Sitemap Extractor and Change Monitor

Pricing

from $0.26 / 1,000 url rows

Go to Apify Store
Sitemap Extractor and Change Monitor

Sitemap Extractor and Change Monitor

Lists every URL in the sitemaps of any website, found automatically through robots.txt, and tells you what changed since your last run: new pages, updated pages and removed pages.

Pricing

from $0.26 / 1,000 url rows

Rating

0.0

(0)

Developer

KmS

KmS

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 hours ago

Last modified

Features

Limited permissions

Share

Get every URL a website lists in its sitemaps, and on the next run get only what changed: new pages, updated pages and pages that left the sitemap.

Enter a website and the Actor finds its sitemaps by itself, through robots.txt and the usual addresses. It follows sitemap indexes, opens compressed files (.xml.gz) and reads XML sitemaps, plain text lists and RSS or Atom feeds. There is no browser and no proxy involved, so a site with tens of thousands of URLs is read in seconds.

What you can do with it

  • Build the full list of pages of a site before a crawl, an SEO audit, a migration or a content inventory.
  • Feed only new and updated pages to your crawler or your search index instead of reading the whole site again.
  • Watch a competitor and get the pages they published since yesterday.
  • Find the pages that were modified in the last 7 days, or that match a pattern such as /blog/.
  • Catch pages that disappeared from a sitemap after a release.

Input

FieldWhat it does
Websites or sitemap addressesOne per line. A website (example.com) to find its sitemaps automatically, or the address of one sitemap file.
Only changesReturns only new, updated and removed URLs since your previous run.
Report updated URLsMarks a URL as updated when its last modified date changes. Turn it off to track only new and removed URLs.
Modified afterKeeps only URLs modified on or after a date (2026-11-01) or within a period (7 days, 2 weeks, 3 months).
URL must containKeeps only URLs that match one of the patterns. Plain text or * wildcards.
URL must not containLeaves out URLs that match any of the patterns.
Sitemap file keywordsReads only the sitemap files whose address contains one of the words, such as product or post.
Include images, videos, news and language versionsAdds the extra data the sitemap lists for each URL.
Maximum URLs per siteUpper limit of URLs read from each site.

Example: the blog posts a site published or changed in the last week.

{
"sites": ["example.com"],
"modifiedAfter": "7 days",
"includePatterns": ["/blog/"]
}

Example: a daily watch that returns only what changed in two sites.

{
"sites": ["example.com", "https://another-example.com/sitemap_index.xml"],
"onlyChanges": true
}

Output

One row per URL:

{
"site": "developer.mozilla.org",
"url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asIntN",
"lastModified": "2026-10-26",
"changeFrequency": null,
"priority": null,
"sitemapUrl": "https://developer.mozilla.org/sitemaps/en-us/sitemap.xml.gz",
"change": "updated",
"previousLastModified": "2026-09-30",
"scrapedAt": "2026-11-22T06:51:46.909Z"
}
FieldMeaning
siteThe website the URL belongs to, as you entered it.
urlThe page address listed in the sitemap.
lastModifiedThe last modified date from the sitemap, as YYYY-MM-DD or as a full UTC time. null when the sitemap has none.
changeFrequency, priorityThe optional hints from the sitemap.
sitemapUrlThe sitemap file where the URL was found.
changeWhat happened since your previous run. See below.
previousLastModifiedFor updated and removed URLs, the last modified date seen before.
scrapedAtWhen the site was read.

The change field:

ValueMeaning
newThe URL was not in the sitemaps before.
updatedThe last modified date is different from the one seen in your previous run.
removedThe URL is no longer in the sitemaps.
nullNothing changed.

With "Include images, videos, news and language versions" on, every row also has images (addresses), videos (title, description, thumbnail, player and content addresses, duration, publication date), news (title, publication, language, publication date) and alternates (language and address of each language version).

A summary of the run is saved in the key-value store under SUMMARY. For each site it tells how the sitemaps were found, how many files and URLs were read, the number of changes, and the reason for any site or file that failed.

How change detection works

The Actor remembers the URLs of each site and their last modified dates in a named key-value store in your account (sitemap-extractor-monitor-state). On the next run it compares the sitemaps with that memory.

  • The first run for a site reports every URL as new, because nothing has been seen yet.
  • change is filled in on every run, even when "Only changes" is off. Changed rows come first.
  • A change that was not delivered because your spending limit was reached is reported again on the next run.
  • removed is reported only when every sitemap file of the site was read. If a file failed, or the site has more URLs than "Maximum URLs per site", removals wait for a complete run.
  • If a site that had URLs comes back empty, nothing is reported as removed. An empty sitemap is far more often a temporary problem of the site than a real mass removal.
  • The memory is kept per site and per set of "Sitemap file keywords". The filters on URLs and dates only choose which rows you receive.

Dates you can trust

Many sites do not record when a page changed. They fill the last modified field with the moment the sitemap was generated, so every page looks freshly modified on every visit. Shopify stores do this for their products, and static site generators often stamp every page with the build date.

A monitor that believed those dates would report the whole site as updated on every run. This Actor recognizes them and does not count them as updates:

  • a last modified value shared by most URLs of a sitemap file is treated as a generation time;
  • a last modified time only minutes old is not counted yet. If the page really changed, the date stays the same on the next run and the update is reported then.

lastModified always shows what the sitemap says. The number of dates that were not counted is in SUMMARY, under generatedDatesIgnored. For sites whose dates are unreliable in other ways, turn "Report updated URLs" off and track new and removed URLs only.

Pricing

You pay per URL delivered to the dataset, plus a small fee per run. With "Only changes" on, a quiet day costs almost nothing, because unchanged URLs are not delivered. Set a maximum cost per run in the run options and the Actor stops delivering when that limit is reached.

Notes and limits

  • The Actor reads only robots.txt and sitemap files. It does not open the pages themselves, so it does not check status codes or page content.
  • It identifies itself as sitemap-extractor-monitor and does not use proxies. A site that refuses automated requests is reported as failed in SUMMARY.
  • A sitemap file that robots.txt does not allow is not read and is listed in SUMMARY.
  • A site with no sitemap in robots.txt or at /sitemap.xml, /sitemap_index.xml, /sitemap-index.xml, /wp-sitemap.xml or /sitemap.xml.gz is reported as failed. If you know where its sitemap is, enter that address directly.
  • The default memory of 512 MB is enough for a few hundred thousand URLs per site. For sites with millions of URLs, raise "Maximum URLs per site" and run with 2 GB or more.

FAQ

What is a sitemap? A file in which a website lists the pages it wants search engines to find, usually at /sitemap.xml. Large sites split it into many files and link them from a sitemap index.

How do I schedule a daily watch? Save a task with "Only changes" on and add a schedule to it. Each run returns only the differences since the previous one. Connect the dataset to a webhook, a spreadsheet or your own crawler.

Can I read many sites in one run? Yes. Each site is handled on its own, so a failing site does not affect the rest.

The site has a sitemap but the Actor did not find it. Enter the full address of the sitemap file instead of the website address.

I need another field or another format. Open an issue on the Issues tab and it will be considered for the next version.