# Filter RSS feed items by keyword

**Use case:** 

Reads RSS, Atom and JSON feeds and keeps only the items whose title, summary, full text or categories contain one of your words (whole words, any case), with optional words to exclude. $0.0005 per feed checked and per item returned on the Free plan. This example keeps the NASA and GOV.UK items whose text or tags contain the words Moon, Mars or space.

## Input

```json
{
  "feeds": [
    "https://www.nasa.gov/news-release/feed/",
    "https://www.gov.uk/search/news-and-communications.atom"
  ],
  "feedFields": [
    "url"
  ],
  "onlyNewItems": false,
  "monitorName": "default",
  "keywords": [
    "Moon",
    "Mars",
    "space"
  ],
  "maxItemsPerFeed": 20,
  "maxItems": 10000,
  "includeContent": true,
  "includeHtml": false,
  "findFeeds": true,
  "maxFeeds": 1000,
  "maxFeedSizeMb": 10,
  "timeoutSecs": 30,
  "maxConcurrency": 10
}
```

## Output

```json
{
  "feedTitle": {
    "label": "Feed",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "link": {
    "label": "Link",
    "format": "link"
  },
  "published": {
    "label": "Published",
    "format": "date"
  },
  "updated": {
    "label": "Updated",
    "format": "date"
  },
  "author": {
    "label": "Author",
    "format": "text"
  },
  "categories": {
    "label": "Categories",
    "format": "array"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  },
  "feedUrl": {
    "label": "Feed link (input)",
    "format": "link"
  }
}
```

## How it works

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

The RSS Feed Reader & Monitor: New Items from Any Feed Actor is ready to run with the inputs already set for "Filter RSS feed items by keyword". [Sign up or log in](https://console.apify.com/create-task-from-example/m9w9v3aSdFj2cJcKx) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Filter RSS feed items by keyword" task

The RSS Feed Reader & Monitor: New Items from Any Feed Actor will start running based on the input automatically. You can also change all the input fields, like feeds, feed link fields, and more, to match your specific use case.

### 3. Receive the "Filter RSS feed items by keyword" 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 feed, title, link, 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 "Filter RSS feed items by keyword" task via API](https://apify.com/klarto/rss-feed-reader.md).

## FAQ

### How does the keyword match work?

The task keeps an item when its title, summary, full text or categories contain one of the words as a whole word, in any case: 'AI' does not match 'said', and 'moon' does not match 'moons'.

### Can the task return only new items on each run?

Yes. Turn on 'Only new items' in the task and keep or set a monitor name (default 'default'), one per schedule, never two runs at once; later runs return only unseen items. Filtered-out and over-the-cap items count as seen.

### What does the keyword task cost?

The task charges $0.0005 per feed checked and per item returned (Free plan; less with Store discounts) plus $0.00005 per GB of run memory, at least $0.00005 per run. Filtered-out items are free.

## About this Actor

This example demonstrates how to use [RSS Feed Reader & Monitor: New Items from Any Feed](https://apify.com/klarto/rss-feed-reader.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/klarto/rss-feed-reader.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/klarto/rss-feed-reader.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`).
