# RSS New Items (`luxe_tasks/rss-new-items`) Actor

Watch RSS and Atom feeds and save only items you have not seen before. Normalized title, link, published date, summary, author and guid. Deduped by guid, link or hash.

- **URL**: https://apify.com/luxe_tasks/rss-new-items.md
- **Developed by:** [Luxe Tasks](https://apify.com/luxe_tasks) (community)
- **Categories:** News, 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 $1.00 / 1,000 new 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 New Items

Watch public RSS 2.0 and Atom feeds and save only the items you have not seen before. Each item is remembered by guid, then link, then a hash of title, published date and summary, in a named key-value store that persists across your runs. An item is saved at most once per store, except: the store keeps at most 50,000 ids and then drops the oldest; resetting or deleting that store, or choosing a different store name, may save an item again; and if a run ends after a successful save and charge but before the seen-id write finishes, the next run may list that item again.

Developer: Luxe_tasks.

User-Agent: `RssNewItemsActor/0.1.0 (+https://apify.com/luxe_tasks/rss-new-items; honours robots.txt)`.

### Input

- `feeds` (required, up to 50): public `http` or `https` RSS or Atom feed URLs. Private, loopback, link-local and cloud-metadata addresses are refused. Prefill: NASA's public news-release RSS feed (`https://www.nasa.gov/news-release/feed/`) and the USGS magnitude 4.5+ earthquakes Atom feed (`https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.atom`).
- `keywords` (optional): keep only items whose title or summary contains this text (case-insensitive). Empty = every item.
- `maxItemsPerFeed` (default 50, maximum 200): at most this many of the newest unseen matching items are saved from each feed. Items with a valid published date are ordered newest-first; items with a missing or invalid date follow them, in feed order. Matching items beyond the per-feed limit are marked seen after the run's results and state are saved successfully, and ordinarily are not delivered by later runs while their IDs are retained in the store. Evicted IDs, a reset or deleted store, a different store, or a save/crash failure may allow later delivery. Items skipped because the run charge limit was reached are not marked seen. Items that do not match the keyword filter are recorded in listedIds but are not marked seen.
- `stateStoreName` (default `rss-new-items-seen`): the named key-value store that holds seen item ids for your account. Use another name to keep separate watch lists.
- `timeoutSecs` (default 20): how long to wait for one feed.

Sample input:

```json
{"feeds":["https://www.nasa.gov/news-release/feed/","https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.atom"],"maxItemsPerFeed":20}
```

The sample feeds are NASA's public news-release RSS (`https://www.nasa.gov/news-release/feed/`) and the USGS magnitude 4.5+ earthquakes Atom feed (`https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.atom`). Credit the sources. This Actor stores each item's title, link, published date, author, guid, and up to 500 characters of the item's description or content (RSS `description`/`content:encoded` or Atom `summary`/`content`). It does not store images or the rest of an article page. USGS-authored data and information are considered to be in the U.S. Public Domain (https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits); some non-USGS materials on USGS sites may be copyrighted. NASA content is generally not subject to copyright in the United States, but third-party material may be copyrighted, NASA identifiers are not in the public domain, and use must not imply endorsement (https://www.nasa.gov/nasa-brand-center/images-and-media/). You are responsible for the rights and terms of any feed you choose.

### Output

The default dataset holds one row per new item: `feedTitle`, `title`, `link`, `published`, `summary`, `author`, `guid`, plus `feedUrl`, `itemId` and `fetchedAt`. Only the newest N unseen matching items per feed are saved (valid dates newest-first, then missing or invalid dates in feed order; N is `maxItemsPerFeed`). Matching items beyond the per-feed limit are marked seen after the run's results and state are saved successfully, and ordinarily are not delivered by later runs while their IDs are retained in the store. Evicted IDs, a reset or deleted store, a different store, or a save/crash failure may allow later delivery. Items skipped because the run charge limit was reached are not marked seen. Items that do not match the keyword filter are recorded in listedIds but are not marked seen. A `FEED_STATUS` record in the default key-value store lists each input feed and includes that feed's `listedIds` (at most 500, with `listedIdsTruncated` if the list was cut). `SEEN` in the named store listed above holds item ids from earlier runs. `RUN_SUMMARY` records totals for the run.

A later run with the same store and the same feeds writes only items that were not already marked seen. Only the newest N unseen matching items per feed are saved. Matching items beyond the per-feed limit are marked seen after the run's results and state are saved successfully, and ordinarily are not delivered by later runs while their IDs are retained in the store. Evicted IDs, a reset or deleted store, a different store, or a save/crash failure may allow later delivery. Items skipped because the run charge limit was reached are not marked seen. Items that do not match the keyword filter are recorded in listedIds but are not marked seen. If a run saves no new items (for example Apify's daily Store test, which repeats the prefilled feed against the same seen store), the dataset receives exactly one `type: "run-summary"` row: `{ type, newItems: 0, feedsChecked, fetchedAt, feedsFailed, failedFeeds }`. `feedsFailed` is how many input feeds did not fetch or parse; `failedFeeds` is a short list of `{ url, status, error }` for those feeds (empty when every feed fetched). That row has no `new-item` event; the per-run start fee still applies. A run that saves any new item does not write a `run-summary` row.

### Pricing

**Pricing: $0.001 per new item ($1 per 1,000 new items), plus the $0.005 start fee per GB of memory per run, minimum 1 event ($0.005). This Actor runs at a fixed 1024 MB (1 GB), so the start fee is $0.005 per run. Both are pay-per-event prices in Apify Console.**

- Pay-per-event **`new-item`** ($0.001 per new item, plus the $0.005 start fee per GB of memory per run, minimum 1 event): one event per item saved to the dataset, after that item is saved.
- The per-run start fee is **`apify-actor-start`** ($0.005 per GB of memory per run, minimum 1 event / $0.005). This Actor's memory is fixed at 1024 MB (1 GB), so that is $0.005 per run.
- Feeds that deliver no new item have no `new-item` event; the per-run start fee still applies.
- The synthetic `apify-default-dataset-item` event must stay unpriced (the Actor refuses to start if it is priced).

### Politeness and safety

- robots.txt is honoured; crawl-delay is honoured.
- At most about one request per second per registered domain; fixed User-Agent shown above; no proxy rotation.
- A 403, 429, CAPTCHA or repeated 5xx stops that registered domain for the rest of the run; later feeds on it are skipped.
- Private, loopback, link-local and cloud-metadata addresses are refused, re-checked after DNS and on every redirect.
- Each feed body is capped at 2 MB and each request uses the timeout above. There is no JavaScript rendering.
- No logins, cookies or session tokens. Fetch only public feeds you are allowed to read.

### Acceptable use

Use this Actor on public RSS or Atom feeds you are allowed to retrieve automatically. Do not point it at private networks, metadata services, or feeds that require a login. Credit each source. Stored fields are headlines, summaries and links, not full articles or images. You are responsible for the rights and terms of the feeds you choose, including NASA's no-endorsement and brand guidance when you use a NASA feed.

# Actor input Schema

## `feeds` (type: `array`):

Public RSS or Atom feed URLs to watch (up to 50). Only http and https. Private, loopback and metadata addresses are refused.

## `keywords` (type: `string`):

Keep only items whose title or summary contains this text (case-insensitive). Empty = every item.

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

At most this many of the newest unseen matching items are saved (and billed) from each feed. Valid dates are ordered newest-first; missing or invalid dates follow them in feed order. Matching items beyond the per-feed limit are marked seen after the run's results and state are saved successfully, and ordinarily are not delivered by later runs while their IDs are retained in the store. Evicted IDs, a reset or deleted store, a different store, or a save/crash failure may allow later delivery. Items skipped because the run charge limit was reached are not marked seen. Items that do not match the keyword filter are recorded in listedIds but are not marked seen.

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

Named key-value store that remembers item ids across your runs (guid, link or hash). Use a different name to keep separate watch lists.

## `timeoutSecs` (type: `integer`):

How long to wait for one feed.

## `maxConcurrency` (type: `integer`):

Items processed in parallel (each site still gets at most 1 request per second).

## `ignoreRobotsTxt` (type: `boolean`):

Only for a site you own or control; requires the attestation below; small runs only.

## `overrideDomainStop` (type: `boolean`):

Only for a site you own or control; requires the attestation below.

## `robotsOwnershipAttestation` (type: `string`):

A statement that you own or control the one registered domain in the input, naming it.

## Actor input object example

```json
{
  "feeds": [
    "https://www.nasa.gov/news-release/feed/",
    "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.atom"
  ],
  "keywords": "",
  "maxItemsPerFeed": 50,
  "stateStoreName": "rss-new-items-seen",
  "timeoutSecs": 20,
  "maxConcurrency": 3,
  "ignoreRobotsTxt": false,
  "overrideDomainStop": false,
  "robotsOwnershipAttestation": ""
}
```

# Actor output Schema

## `items` (type: `string`):

Default dataset: one row per saved item with feedTitle, title, link, published, summary, author, guid, feedUrl, itemId and fetchedAt. When the run saved no new items, exactly one row with type run-summary, newItems 0, feedsChecked, fetchedAt, feedsFailed and failedFeeds (url, status, error per failed feed) instead (no new-item event; the per-run start fee still applies).

## `feeds` (type: `string`):

FEED_STATUS record in the default key-value store: one JSON array with one entry per input feed.

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

RUN_SUMMARY record: totals by status and charged new-item events.

# 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 = {
    "feeds": [
        "https://www.nasa.gov/news-release/feed/",
        "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.atom"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("luxe_tasks/rss-new-items").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 = { "feeds": [
        "https://www.nasa.gov/news-release/feed/",
        "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.atom",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("luxe_tasks/rss-new-items").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 '{
  "feeds": [
    "https://www.nasa.gov/news-release/feed/",
    "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.atom"
  ]
}' |
apify call luxe_tasks/rss-new-items --silent --output-dataset

```

## MCP server setup

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

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/dIwbgvaMlOmZyfT58/builds/DJRdgaELqa23LD6z6/openapi.json
