# RSS, Atom, Sitemap & JSON Delta Monitor (`simon_kundrik/stateful-delta-monitor`) Actor

Monitor RSS, Atom, XML Sitemaps, and public JSON APIs on a schedule and emit ONLY new or changed items. Zero-proxy HTTP with ETag 304 caching and persistent deduplication.

- **URL**: https://apify.com/simon_kundrik/stateful-delta-monitor.md
- **Developed by:** [Kundrik Apps](https://apify.com/simon_kundrik) (community)
- **Categories:** News, Automation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 new or updated delta items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/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

## RSS, Atom, Sitemap & Website Change Monitor (Stateful Delta Feed API)

Monitor **RSS feeds, Atom feeds, XML Sitemaps (including nested sitemap indexes), and public JSON APIs** on a schedule and emit **ONLY brand-new or modified entries** between runs.

Built as a proxy-free **RSS feed monitor, sitemap change detector, and website change monitor** for **n8n, Make, Zapier, scheduled pipelines, and AI agents (MCP)** - so you never waste LLM tokens or downstream automation credits reprocessing items you already saw.

### Why Use This Instead of a Standard Feed Scraper?

- **Built-in Persistent State:** Remembers seen item IDs and SHA-256 content fingerprints in a named Apify Key-Value Store across runs.
- **Change Detection (`new` vs. `updated`):** Optionally alerts you when an existing entry's title, summary, or timestamp changes.
- **Conditional HTTP Caching (`ETag` & `Last-Modified`):** Uses `304 Not Modified` responses so unchanged feeds finish in milliseconds.
- **Safe First-Run Seeding:** Choose `seed_only` (baseline with 0 item charges) or `emit_limited` (cap first-run output) so adding a 5,000-URL sitemap never triggers surprise costs.
- **Server-Side Filtering:** Filter by `includeKeywords`, `excludeKeywords`, and `regexFilter` before emitting or charging for items.
- **Zero Proxy Overhead & MCP-Ready:** Runs at 256 MB RAM with `LIMITED_PERMISSIONS` - clean, structured JSON ready for AI agents and RAG pipelines.

### Input Example

```json
{
  "sources": [
    {
      "url": "https://hnrss.org/newest?points=100",
      "type": "auto",
      "label": "Hacker News 100+ pts"
    },
    {
      "url": "https://api.github.com/repos/apify/apify-sdk-python/releases?per_page=5",
      "type": "json",
      "label": "Apify Python SDK Releases",
      "idField": "id",
      "titleField": "name",
      "urlField": "html_url",
      "summaryField": "body",
      "dateField": "published_at"
    }
  ],
  "stateStoreName": "delta-monitor-state",
  "firstRunMode": "emit_limited",
  "firstRunEmitLimit": 5,
  "detectUpdates": true,
  "includeKeywords": ["python", "security", "release"]
}
```

### Output Example

```json
{
  "changeType": "new",
  "itemId": "tag:example.com,2026:v2.0",
  "sourceLabel": "CPython Releases",
  "sourceUrl": "https://api.github.com/repos/python/cpython/releases",
  "sourceType": "json",
  "title": "Python 3.14.1",
  "url": "https://github.com/python/cpython/releases/tag/v3.14.1",
  "summary": "Security and bugfix release...",
  "publishedAt": "2026-12-03T12:00:00Z",
  "updatedAt": "2026-12-03T12:00:00Z",
  "author": "",
  "categories": [],
  "detectedAt": "2026-12-03T16:30:00Z"
}
```

### Transparent Pay-Per-Event Pricing

| Event Name | Title | Price |
|---|---|---|
| `source-checked` | Source URL checked | `$0.0005` (`$0.50` / 1,000 checks) |
| `delta-item-found` | New or updated item emitted | `$0.002` (`$2.00` / 1,000 delta items) |

- **Free Apify Plan Limits:** Free users can test up to **5 sources** and **25 delta items per run**. Any paid Apify plan unlocks unlimited sources and up to 50,000 items per run.
- **MCP & Automation Ready:** Runs with `LIMITED_PERMISSIONS` at 256 MB RAM and works out of the box with Apify MCP Server (`mcp.apify.com`), n8n, Make, and REST webhooks.

#### Realistic Monthly Cost Examples

| Schedule & Scope | Monthly Checks | Est. New Items / Mo | Total Monthly Cost |
|---|---|---|---|
| 10 RSS/news feeds checked hourly | 7,200 | 300 | **~$4.20 / month** |
| 25 competitor sitemaps checked daily | 750 | 120 | **~$0.62 / month** |
| 50 JSON endpoints checked every 6 hours | 6,000 | 500 | **~$4.00 / month** |

### Automation & AI Agent Recipes

#### 1. Apify MCP Server (Claude, Cursor, ChatGPT, Custom Agents)

Connect `https://mcp.apify.com` and ask your AI agent:

> *"Run `simon_kundrik/stateful-delta-monitor` on `https://hnrss.org/newest?points=100` with `firstRunMode: "emit_limited"` and `firstRunEmitLimit: 5`, then summarize the top stories."*

#### 2. n8n / Make / Zapier Scheduled Alerts

1. Add an **Apify → Run Actor** node targeting `simon_kundrik/stateful-delta-monitor` on an hourly or daily schedule.
2. Keep the same `stateStoreName` across runs so seen items are deduplicated automatically.
3. Route dataset items directly into **Slack, Discord, Email, Notion, or Google Sheets** (zero downstream runs when `0` new items are detected).

#### 3. Direct REST API (cURL)

```bash
curl -X POST "https://api.apify.com/v2/acts/simon_kundrik~stateful-delta-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"sources":[{"url":"https://hnrss.org/newest?points=100","type":"auto"}],"firstRunMode":"emit_limited","firstRunEmitLimit":5}'
```

### Frequently Asked Questions

**Do I need Apify Proxies?**
No. All RSS, Atom, XML Sitemap, and public JSON feeds are fetched over direct HTTP with conditional `ETag` and `Last-Modified` headers (`304 Not Modified`), running at just 256 MB RAM.

**How do I avoid paying for 5,000 existing items on my first run?**
Set `firstRunMode: "seed_only"` to silently record the current baseline (0 item charges), or `firstRunMode: "emit_limited"` with `firstRunEmitLimit: 5` to preview a small sample first.

**Does it work with nested XML sitemap indexes?**
Yes. Sitemap index files are expanded automatically up to your configured limits.

**Built & Maintained by [Kundrik Apps](https://kundrikapps.co.uk)** (UK). Need a custom parser or help with a workflow? Email `support@kundrikapps.co.uk`.

# Actor input Schema

## `sources` (type: `array`):

List of source objects or URLs. Supported types: auto, rss, atom, sitemap, json.

## `stateStoreName` (type: `string`):

Named Apify Key-Value Store used to remember seen items and ETag/Last-Modified headers across scheduled runs.

## `stateNamespace` (type: `string`):

Separate state key if you run multiple distinct monitoring workflows against the same store.

## `detectUpdates` (type: `boolean`):

When enabled, items whose content fingerprint (title, summary, updated timestamp, or JSON fields) changes will be emitted with changeType='updated'.

## `firstRunMode` (type: `string`):

Choose whether the first run seeds state silently (zero item charges), emits up to firstRunEmitLimit items, or emits all items.

## `firstRunEmitLimit` (type: `integer`):

Used when firstRunMode is 'emit_limited' so initial seeding never causes surprise charges.

## `maxItemsPerRun` (type: `integer`):

Hard ceiling on dataset items emitted in a single run.

## `includeKeywords` (type: `array`):

Only emit items whose title, summary, or URL contains at least one of these terms.

## `excludeKeywords` (type: `array`):

Skip items containing any of these terms.

## `regexFilter` (type: `string`):

Only emit items whose searchable text matches this regular expression.

## `maxSitemapDepth` (type: `integer`):

Follow nested <sitemapindex> child sitemaps up to this depth (0 disables recursion).

## `maxChildSitemaps` (type: `integer`):

Maximum number of child sitemap XML files expanded per sitemap index.

## `requestTimeoutSecs` (type: `integer`):

Maximum seconds to wait for each HTTP GET response before timing out.

## `customHeaders` (type: `object`):

Additional read-only headers (e.g., Accept or public API token) sent with HTTP GET requests.

## `dryRun` (type: `boolean`):

Preview delta items without mutating stored state.

## Actor input object example

```json
{
  "sources": [
    {
      "url": "https://hnrss.org/newest?points=100",
      "type": "auto",
      "label": "Hacker News 100+ pts"
    }
  ],
  "stateStoreName": "delta-monitor-state",
  "stateNamespace": "default",
  "detectUpdates": true,
  "firstRunMode": "emit_limited",
  "firstRunEmitLimit": 10,
  "maxItemsPerRun": 500,
  "includeKeywords": [],
  "excludeKeywords": [],
  "regexFilter": "",
  "maxSitemapDepth": 1,
  "maxChildSitemaps": 10,
  "requestTimeoutSecs": 15,
  "customHeaders": {},
  "dryRun": false
}
```

# Actor output Schema

## `deltaItems` (type: `string`):

Newly detected or modified items from monitored RSS, Atom, XML Sitemap, and JSON API sources.

## `runSummary` (type: `string`):

JSON summary with sources checked, HTTP 304 cache hits, delta count, and free-tier/budget status.

# 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 = {
    "sources": [
        {
            "url": "https://hnrss.org/newest?points=100",
            "type": "auto",
            "label": "Hacker News 100+ pts"
        }
    ],
    "stateStoreName": "delta-monitor-state",
    "stateNamespace": "default"
};

// Run the Actor and wait for it to finish
const run = await client.actor("simon_kundrik/stateful-delta-monitor").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 = {
    "sources": [{
            "url": "https://hnrss.org/newest?points=100",
            "type": "auto",
            "label": "Hacker News 100+ pts",
        }],
    "stateStoreName": "delta-monitor-state",
    "stateNamespace": "default",
}

# Run the Actor and wait for it to finish
run = client.actor("simon_kundrik/stateful-delta-monitor").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 '{
  "sources": [
    {
      "url": "https://hnrss.org/newest?points=100",
      "type": "auto",
      "label": "Hacker News 100+ pts"
    }
  ],
  "stateStoreName": "delta-monitor-state",
  "stateNamespace": "default"
}' |
apify call simon_kundrik/stateful-delta-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,simon_kundrik/stateful-delta-monitor"
        }
    }
}
```

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/0msC5yRot7bo8DSmJ/builds/LajuWLthefwh8criF/openapi.json
