# RSS & Atom Feed Tracker | New Items Only (`wayturn/rss-new-items-tracker`) Actor

Monitor release notes, blogs and news feeds on a schedule. Reuse the same stateKey to get only newly seen RSS or Atom entries, with titles, links and publication dates. When the feed is unchanged, the next run returns zero new items.

- **URL**: https://apify.com/wayturn/rss-new-items-tracker.md
- **Developed by:** [Wayturn Hung](https://apify.com/wayturn) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 new feed 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/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

## RSS & Atom Feed Tracker | New Items Only

Check release notes, engineering blogs or news feeds on a schedule. Each dataset row represents a newly seen entry. Keep the same feed URL and stateKey on later runs to pick up where you left off.

### Try it with GitHub releases

Run the input below twice in sequence. In a test with the Crawlee release feed, the first run returned 10 entries. The second checked the same 10 and returned zero. New releases between runs will change the count.

```json
{
  "feedUrls": [
    "https://github.com/apify/crawlee/releases.atom"
  ],
  "stateKey": "crawlee-releases",
  "maxItemsPerFeed": 50
}
```

### Input

| Field | Default | Description |
|---|---|---|
| `feedUrls` | GitHub crawlee releases Atom feed | Public HTTPS RSS or Atom URLs. |
| `stateKey` | `default` | Namespace for seen state. Use different keys to track the same feed independently. |
| `maxItemsPerFeed` | `50` | Max entries considered per feed per run (1 to 500). |

### Output

Each new entry is pushed to the default dataset:

```json
{
  "itemId": "guid:tag:github.com,2008:Repository/66670819/v4.0.0-rc.2",
  "title": "v4.0.0-rc.2",
  "link": "https://github.com/apify/crawlee/releases/tag/v4.0.0-rc.2",
  "publishedAt": "2026-11-10T00:00:00.000Z",
  "feedUrl": "https://github.com/apify/crawlee/releases.atom"
}
```

### Item identity

Items are identified in this order: `guid` (RSS) or `id` (Atom), then `link`, then a stable SHA-256 hash of title and publication date.

### State, retention and retries

- Items are marked as seen only after the dataset write succeeds, so a failed write is retried on the next run.
- Seen entries are kept for 180 days, then pruned.
- Fetches time out after 20 seconds and are capped at 5 MB.
- Network errors, HTTP 429 and 5xx responses are retried up to 2 times with exponential backoff (1s, 2s). Other 4xx responses are not retried.
- Up to 3 feeds are fetched concurrently.

### Edge cases

Each feed gets a status in the run summary: `ok`, `no-new-items`, `empty-feed`, `invalid-feed`, `invalid-url` (non-HTTPS, private or unresolvable host) or `fetch-failed`.

### Scheduling

Create a daily schedule that runs the Actor at 08:00 UTC:

```bash
curl -X POST "https://api.apify.com/v2/schedules?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "rss-daily",
    "cronExpression": "0 8 * * *",
    "timezone": "UTC",
    "isEnabled": true,
    "actions": [{
      "type": "RUN_ACTOR",
      "actorId": "CpxLwirdbhJ3SXXDZ",
      "runInput": { "body": { "feedUrls": ["https://example.com/feed.xml"], "stateKey": "daily" } }
    }]
  }'
```

### Cost

Each new item costs $0.001 ($1 per 1,000). The start event costs $0.00005 per allocated GB, with a minimum of one event. At 1 GB, a run that finds 10 new items costs $0.01005. An unchanged feed costs only the start fee.

# Actor input Schema

## `feedUrls` (type: `array`):

Public HTTPS RSS or Atom feed URLs to check. Private, local and non-HTTPS URLs are rejected.

## `stateKey` (type: `string`):

Name of the seen-items state. Use different keys to track the same feed independently (for example, one per consumer).

## `maxItemsPerFeed` (type: `integer`):

Only the newest N entries of each feed are considered per run (1 to 500).

## Actor input object example

```json
{
  "feedUrls": [
    "https://github.com/apify/crawlee/releases.atom"
  ],
  "stateKey": "default",
  "maxItemsPerFeed": 50
}
```

# Actor output Schema

## `results` (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 = {
    "feedUrls": [
        "https://github.com/apify/crawlee/releases.atom"
    ],
    "stateKey": "default",
    "maxItemsPerFeed": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("wayturn/rss-new-items-tracker").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 = {
    "feedUrls": ["https://github.com/apify/crawlee/releases.atom"],
    "stateKey": "default",
    "maxItemsPerFeed": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("wayturn/rss-new-items-tracker").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 '{
  "feedUrls": [
    "https://github.com/apify/crawlee/releases.atom"
  ],
  "stateKey": "default",
  "maxItemsPerFeed": 50
}' |
apify call wayturn/rss-new-items-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wayturn/rss-new-items-tracker"
        }
    }
}
```

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/CpxLwirdbhJ3SXXDZ/builds/gAtoYUKKU9M6ADx5W/openapi.json
