# Sitemap Extractor & New Page Monitor: All URLs, Titles, Dates (`pikoulas/sitemap-watcher`) Actor

Extract every URL from any website's sitemaps, with last-modified dates, or watch them: on a schedule, only the pages added since the last run, with each page's title, description, author and publish date, kept to those dated since a day you choose.

- **URL**: https://apify.com/pikoulas/sitemap-watcher.md
- **Developed by:** [Spyridon Pikoulas](https://apify.com/pikoulas) (community)
- **Categories:** SEO tools, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 pages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Sitemap Extractor & New Page Monitor: All URLs, Titles, Dates

Give it websites and get the pages their sitemaps list, as clean JSON, CSV or Excel:

- **Every URL of a site:** found through its `robots.txt`, or at the usual paths such as `/sitemap.xml`;
  sitemap indexes, gzipped sitemaps and plain-text lists are all read. You can also give a sitemap's URL.
- **Each page:** its URL, last-modified date, change frequency, priority, its news title and publication
  date where the site has a news sitemap, and how many images it lists.
- **What each page is:** with **Read each page's title, description, author and date**, every page given
  is visited for its title, meta description, author, published and modified dates (from its meta tags or
  its JSON-LD), image, language and schema.org types, at no extra charge.
- **Only new pages:** run it on a schedule and each run gives only the pages added since the last one: a
  competitor's new products, a news site's new articles, a company's new job or blog pages. You pay for
  each page once.
- **Only recent pages:** **Only pages dated since** a day, or a span such as `7 days`, keeps the pages
  whose sitemap date is that recent.
- **Where a site is publishing:** the run's summary counts each site's pages by section (`/blog/`,
  `/recipes/`, `/changelog/`), and its status line says it at a glance.
- **Filters:** keep only URLs containing `/blog/` or `/products/`, say, and optionally pages whose
  last-modified date moved.

It costs **$0.30 per 1,000 pages** on Apify's paid plans and $0.50 on the free plan, plus $0.0002 for each sitemap
file read ($0.0003 on the free plan). A site with nothing new costs $0.0002 for each sitemap it had to read; one
that can't be read costs nothing.

### What people use it for

- **Sitemap extraction:** every URL of a site, with its dates, for a crawl, a migration or an SEO audit
  (turn **Only new pages** off).
- **Competitor monitoring:** new product, pricing, landing or job pages on competitors' sites, every day.
- **News and content tracking:** new articles on the outlets you follow, with their titles, authors and
  publish dates, including sites without an RSS feed.
- **SEO:** what a site publishes and updates, and how its sitemap is laid out.
- **Pipelines:** new URLs into a crawler, a spreadsheet, Slack or an AI summarizer, through Make, Zapier or n8n.

### How to watch a site

1. Click **Try for free**; Apify's free plan covers a first run.
2. Enter the **Sites or sitemaps**.
3. Keep **Only new pages** on to watch, or turn it off to extract every URL; turn on **Read each page's
   title, description, author and date** for what each page is, and add **URL contains** or **Only pages
   dated since** if you want only some pages.
4. Click **Start**, then open the pages from the **Output** tab, or download them as JSON, CSV or Excel.
5. To watch the sites, add a **Schedule** to the task, such as every day: each run gives the pages added since the
   last.

The first run of a site gives its newest pages, up to **Max pages per site** (1,000 unless you change it), and
counts the rest as seen, so later runs give only what's new.

An input with every option:

```json
{
  "sites": ["https://www.theverge.com/", "https://github.blog/", "https://example.com/sitemap.xml"],
  "pageDetails": true,
  "modifiedSince": "7 days",
  "onlyNew": true,
  "includeChanged": false,
  "memory": "default",
  "urlContains": ["/2026/"],
  "maxPagesPerSite": 1000,
  "maxSitemapsPerSite": 100
}
```

### Output

A page from The Verge, read for its details (November 2026):

```json
{
  "input": "https://www.theverge.com/",
  "site": "https://www.theverge.com",
  "sitemapUrl": "https://www.theverge.com/sitemaps/entries/2026/11",
  "url": "https://www.theverge.com/tech/1039504/korgs-phase8-acoustic-synthesizer-now-has-a-companion-web-app",
  "lastmod": "2026-11-21T15:48:41Z",
  "changefreq": null,
  "priority": null,
  "newsTitle": null,
  "newsPublished": null,
  "images": 0,
  "change": null,
  "title": "Korg’s Phase8 acoustic ‘synthesizer’ now has a companion web app. | The Verge",
  "description": "The Phase8 Companion lets you build and edit sequences on a visual grid, send them to the instrument, adjust settings, and update its firmware right from your browser. ...",
  "author": "Terrence O'Brien",
  "publishedAt": "2026-11-21T15:48:41+00:00",
  "modifiedAt": "2026-11-21T15:48:41+00:00",
  "image": "https://platform.theverge.com/wp-content/uploads/sites/2/2025/01/verge-placeholder_f212b3.png?quality=90&strip=all&crop=0,0.13712291199202,100,99.725754176016",
  "language": "en-US",
  "type": "article",
  "canonical": "https://www.theverge.com/tech/1039504/korgs-phase8-acoustic-synthesizer-now-has-a-companion-web-app",
  "robots": "index,follow,max-image-preview:large",
  "schemaTypes": ["NewsArticle", "Organization", "ImageObject", "Person", "SpeakableSpecification", "Thing"],
  "detailsError": null,
  "readAt": "2026-11-21T16:46:36Z",
  "error": null
}
```

`change` is `new`, `changed` (with **Changed pages too**), or `null` with **Only new pages** off. Dates are UTC; a
date without a time stays a date. `newsTitle` and `newsPublished` come from a Google News sitemap. The fields from
`title` to `schemaTypes` come with **Read each page's title, description, author and date**; `detailsError` says why
a page has none (its `robots.txt` refuses it, it's gone, or it isn't HTML). A site that can't be read comes as one
row with `input`, `url: null` and `error`, saying why.

The run's summary, in its `SUMMARY` record (40 pages a site dated since 2026-11-14; sections cut to three):

```json
{
  "sites": [
    {"site": "https://github.blog/", "sitemapsRead": 26, "pagesListed": 9790, "pagesGiven": 40, "newest": "2026-11-20T21:50:43Z",
     "sections": {"/changelog/": 32, "/tag/": 4, "/open-source/": 3}},
    {"site": "https://www.bbcgoodfood.com/", "sitemapsRead": 100, "pagesListed": 8948, "pagesGiven": 40, "newest": "2026-11-20T17:03:29Z",
     "sections": {"/recipes/": 20, "/premium/": 11, "/review/": 4}},
    {"site": "https://www.theverge.com/", "sitemapsRead": 100, "pagesListed": 93805, "pagesGiven": 40, "newest": "2026-11-21T15:48:41Z",
     "sections": {"/tech/": 19, "/ai-artificial-intelligence/": 7, "/policy/": 4}}
  ],
  "pages": 120,
  "failed": 0,
  "modifiedSince": "2026-11-14"
}
```

### Use it as an API

Apify's API starts a run and returns its dataset as JSON; its Python and JavaScript clients, and
its Make, Zapier and n8n integrations, work the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~sitemap-watcher/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"sites": ["https://github.blog/"], "onlyNew": true, "pageDetails": true}'
```

AI agents can call it as a tool through Apify's MCP server: `https://mcp.apify.com?tools=pikoulas/sitemap-watcher`.

### How much does it cost?

A page is $0.0003, so 1,000 pages cost $0.30, and each sitemap file read is $0.0002. A sitemap its index dates as
unchanged since the last run isn't read again, so a daily run over a news site usually reads two or three: The Verge,
whose sitemaps list some 93,000 pages, then costs about $0.0004 a day plus its new pages. A site whose index doesn't
date its sitemaps has them all read each run, up to **Max sitemap files per site**. Set a spending limit on a run
and it stops there; the pages it didn't give stay new for the next run. Reading each page's details costs nothing
more, but takes a second a page on each site: those 120 pages of three sites took 2.5 minutes.

### Good to know

- **How "new" is kept:** the Actor remembers the pages it has seen in a key-value store named
  `sitemap-watcher-memory` in your Apify account, by site and by **Memory name**: a short hash of each URL and its
  last-modified date, and the date of each sitemap read. Runs with the same memory name share it: give a task its
  own name to start afresh, or delete the store.
- **Large sites:** a site can split its pages over hundreds of sitemap files. The newest are read first, as its
  sitemap index dates them, up to **Max sitemap files per site** and 100,000 pages; later runs read no deeper into
  its archive.
- **Changed pages:** some sites date every page with the time the sitemap was made, so with **Changed pages too**
  each run would give them all again. It's off unless you turn it on.
- **A page only appears once the site lists it** in its sitemap, which some sites do hours or a day after
  publishing.
- **Each site is read politely:** one request a second at most, or the crawl delay its `robots.txt` asks for; a path
  its `robots.txt` refuses isn't read, and a site that refuses (HTTP 401, 403 or 451), asks it to slow down and a
  wait doesn't clear it, or shows a verification page is left alone for the rest of the run; your other sites go
  on. It names itself in its User-Agent and uses no proxy.
- **Only public addresses are reached,** redirects included: not private networks.
- **Contact.** The Actor keeps nothing itself: pages and its memory sit in the storage of whoever ran it. Questions
  or requests go to spyridwn.pd@gmail.com.

### FAQ

#### Is it legal to read sitemaps?

Sitemaps are published for programs to read: they exist to tell crawlers which pages a site has. This Actor reads
only the sitemaps of the sites you give it, at a polite pace, keeping to each site's `robots.txt`, and gives the URLs
and dates they list; with page details on, also what each page says about itself in its markup (title, description,
author, dates), not its text. What you do with them is your own responsibility; if you're unsure, ask
a lawyer. Apify's [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/) is a good start.

#### Can it give the pages' text?

No: it gives what the sitemaps list, and with page details on what each page says about itself. To read the new pages, pass their URLs to
[Website Content Crawler](https://apify.com/pikoulas/website-content-crawler), or, for a site with a feed, use
[RSS Feed Reader](https://apify.com/pikoulas/feed-reader), which gives each item's text.

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a field you need.

If it does what you need, a review on the **Reviews** tab helps others find it.

# Actor input Schema

## `sites` (type: `array`):

Website addresses, whose sitemaps are found through their robots.txt or at the usual paths such as /sitemap.xml, or the URLs of sitemaps themselves.

## `pageDetails` (type: `boolean`):

Visit each page given, as its site's robots.txt allows, for its title, meta description, author, published and modified dates (from its meta tags or JSON-LD), image, language and schema.org types. At no extra charge, but a site is read at one page a second at most, or its crawl delay.

## `modifiedSince` (type: `string`):

A day such as 2026-11-01, or a span back from now such as 7 days, 2 weeks or 1 month: only pages whose sitemap date (lastmod, or a news sitemap's publication date) is that day or later. Undated pages are left out. Empty keeps all.

## `onlyNew` (type: `boolean`):

Give only the pages no earlier run with the same memory listed, so a scheduled run gives, and charges for, what's new. A site's first run gives its newest pages, up to Max pages per site, and counts the rest as seen. Off, every page listed is given, up to Max pages per site: the whole sitemap extracted.

## `includeChanged` (type: `boolean`):

Also give pages already seen whose last-modified date in the sitemap is later than before. Some sites date every page with the time the sitemap was made, so each run would give them all again.

## `memory` (type: `string`):

Runs with the same memory name share what they've seen. Use another name for a task that should see every page again, or that watches the same sites for something else.

## `urlContains` (type: `array`):

Keep only pages whose URL contains one of these, such as /blog/ or /products/ (any case). Empty keeps all.

## `maxPagesPerSite` (type: `integer`):

The most pages given per site in a run, newest first. On later runs, pages past it stay new for the next run.

## `maxSitemapsPerSite` (type: `integer`):

The most sitemap files read per site in a run, newest first as the site's sitemap index dates them. A large site splits its pages over hundreds; once read, one that its index shows unchanged isn't read again.

## Actor input object example

```json
{
  "sites": [
    "https://www.theverge.com/",
    "https://github.blog/"
  ],
  "pageDetails": false,
  "onlyNew": true,
  "includeChanged": false,
  "memory": "default",
  "maxPagesPerSite": 20,
  "maxSitemapsPerSite": 20
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `details` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "sites": [
        "https://www.theverge.com/",
        "https://github.blog/"
    ],
    "maxPagesPerSite": 20,
    "maxSitemapsPerSite": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pikoulas/sitemap-watcher").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "sites": [
        "https://www.theverge.com/",
        "https://github.blog/",
    ],
    "maxPagesPerSite": 20,
    "maxSitemapsPerSite": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pikoulas/sitemap-watcher").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "sites": [
    "https://www.theverge.com/",
    "https://github.blog/"
  ],
  "maxPagesPerSite": 20,
  "maxSitemapsPerSite": 20
}' |
apify call pikoulas/sitemap-watcher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pikoulas/sitemap-watcher"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/qJlWwE5ZXxegiLOld/builds/J0f9Jz76GJzlpysIZ/openapi.json
