# Compare Sitemap Snapshots for Added and Removed URLs

**Use case:** 

Compare a sitemap with a previous SNAPSHOT to identify added, removed, changed and unchanged URLs. This preset uses a real sitemaps.org snapshot from September 19, 2026; replace both inputs with your own matching scope. Returns one row per URL. Price: $0.001 per run + $0.0005 per returned URL (about $0.043 for this 84-URL example).

## Input

```json
{
  "sitemapUrls": [
    "https://www.sitemaps.org/sitemap.xml"
  ],
  "maxUrls": 100,
  "maxSitemaps": 5,
  "urlContains": "",
  "previousSnapshot": {
    "version": 1,
    "scope": {
      "sitemapUrls": [
        "https://www.sitemaps.org/sitemap.xml"
      ],
      "urlContains": ""
    },
    "observedAt": "2026-09-19T10:04:43.294560+00:00",
    "complete": true,
    "items": [
      {
        "url": "https://www.sitemaps.org/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/da/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/da/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/da/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/da/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/de/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/de/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/de/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/de/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/en_GB/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/en_GB/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/en_GB/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/en_GB/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/es/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/es/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/es/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/es/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/fi/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/fi/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/fi/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/fi/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/fr/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/fr/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/fr/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/fr/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/it/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/it/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/it/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/it/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ja/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ja/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ja/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ja/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ko/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ko/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ko/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ko/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/nl/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/nl/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/nl/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/nl/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/no/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/no/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/no/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/no/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/pl/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/pl/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/pl/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/pl/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/pt_BR/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/pt_BR/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/pt_BR/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/pt_BR/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ro/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ro/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ro/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ro/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ru/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ru/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ru/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/ru/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/sv/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/sv/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/sv/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/sv/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/tr/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/tr/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/tr/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/tr/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_CN/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_CN/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_CN/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_CN/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_HK/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_HK/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_HK/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_HK/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_TW/",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_TW/faq.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_TW/protocol.html",
        "lastmod": "2022-12-15",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      },
      {
        "url": "https://www.sitemaps.org/zh_TW/terms.html",
        "lastmod": "2016-11-21",
        "changefreq": null,
        "priority": null,
        "sourceSitemap": "https://www.sitemaps.org/sitemap.xml"
      }
    ]
  }
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "change": {
    "label": "Change",
    "format": "string"
  },
  "lastmod": {
    "label": "Last modified",
    "format": "string"
  },
  "sourceSitemap": {
    "label": "Source sitemap",
    "format": "string"
  },
  "observedAt": {
    "label": "Observed at",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Sitemap Diff — Added, Removed & Changed URLs Actor is ready to run with the inputs already set for "Compare Sitemap Snapshots for Added and Removed URLs". [Sign up or log in](https://console.apify.com/create-task-from-example/z6TlhnjAwV3f1db12) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare Sitemap Snapshots for Added and Removed URLs" task

The Sitemap Diff — Added, Removed & Changed URLs Actor will start running based on the input automatically. You can also change all the input fields, like sitemap urls, maximum urls, and more, to match your specific use case.

### 3. Receive the "Compare Sitemap Snapshots for Added and Removed URLs" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, change, last modified, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Compare Sitemap Snapshots for Added and Removed URLs" task via API](https://apify.com/gertner-data/sitemap-delta.md).

## About this Actor

This example demonstrates how to use [Sitemap Diff — Added, Removed & Changed URLs](https://apify.com/gertner-data/sitemap-delta.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/gertner-data/sitemap-delta.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/gertner-data/sitemap-delta.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
