# RSS & Atom Feed Reader to JSON (with Feed Discovery) (`datasetworks/rss-feed-to-json`) Actor

Turn any RSS, Atom or JSON Feed, or just a website URL, into clean JSON items with the same fields every time. Auto-discovers feeds, filters by date and keyword, and can return only new items. For monitoring, newsletters and AI agents.

- **URL**: https://apify.com/datasetworks/rss-feed-to-json.md
- **Developed by:** [Dataset Works](https://apify.com/datasetworks) (community)
- **Categories:** News, Automation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.80 / 1,000 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 Reader to JSON (with Feed Discovery)

**Turn any RSS, Atom or JSON Feed, or just a website address, into clean JSON items with the same fields every time.**

Give it feed URLs or plain websites. It finds each site's feed, reads RSS 2.0, RSS 1.0 (RDF), Atom and JSON Feed, and returns one row per item with a consistent set of fields. Filter by date or keyword, and switch on **Only new items** to get just what was published since your last run. Ideal for news and competitor monitoring, newsletter and content pipelines, and feeding AI agents fresh sources.

### Sample output

| feedTitle | title | publishedAt | link | feedFormat |
| --- | --- | --- | --- | --- |
| The GitHub Blog | Maintainers don't need more AI bug reports. They need fixes. | 2026-11-17T18:29:29Z | https://github.blog/open-source/maintainers/... | rss |
| The Verge | The nation's largest school districts consider ditching Google Search | 2026-11-18T23:18:35Z | https://www.theverge.com/ai-artificial-intelligence/1037151/... | atom |
| JSON Feed | JSON Feed version 1.1 | 2020-08-07T16:44:36Z | https://www.jsonfeed.org/2020/08/07/json-feed-version.html | jsonfeed |

Each item also has `feedUrl`, `siteUrl`, `language`, `itemId` (stable hash), `guid`, `updatedAt`, `summary` (plain text, up to 1,000 characters), `categories`, `imageUrl`, `enclosures` (podcast audio, attachments) and `fetchedAt`. Dates are always ISO 8601 in UTC, whatever format the feed uses.

### How to use

1. Add feed URLs or websites to **Feeds or websites**, e.g. `https://feeds.bbci.co.uk/news/technology/rss.xml` or `github.blog`.
2. Optional: **Max items per feed** (newest first), **Only items from the last N days**, **Keywords**.
3. For monitoring, tick **Only new items since the last run** and schedule the tool (e.g. hourly). Give each schedule its own **State key**.
4. Tick **Include full item content** to get the full text a feed publishes, not just the summary.
5. Tick **Only discover feeds** to just find the feeds on a list of websites (feed URL, title, item count, latest item date).

A `SUMMARY` record lists each input with the feed found and how many items it returned. Sites with no feed, or whose robots.txt disallows access, are listed with the reason and not charged.

### Pricing

**$0.80 per 1,000 feed items** ($0.0008 per item). Items skipped by "only new" or filters are free. In discovery mode, each feed found counts as one item. Platform usage is included.

### For AI agents

Call it via the Apify API or MCP server with `{"feeds": ["github.blog", "theverge.com"], "maxAgeDays": 2, "maxItemsPerFeed": 20}`. Every format comes back with the same fields, so an agent can read news from many sources without writing a parser for each one.

### Data and responsibility

The tool reads only feeds that sites publish openly for readers. It follows each site's robots.txt and skips sites that restrict access instead of getting around it. Author names and other personal fields are not collected: you get the item's title, link, dates, summary, categories and media links. Content belongs to its publishers, so check their terms before republishing it in full.

### Support

Found a bug or need a field? Open an issue on this page and we'll reply within one working day.

Built and maintained by **Dataset Works**.

# Actor input Schema

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

RSS, Atom or JSON Feed URLs. You can also give a plain website (e.g. 'github.blog') and the tool finds its feed.

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

Newest items first. Leave empty for everything the feed contains.

## `maxAgeDays` (type: `integer`):

Skip items published longer ago than this. Items with no date are kept.

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

Only keep items whose title, summary or categories contain any of these words (comma-separated).

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

Remembers items already returned (per state key) and skips them next time. Ideal for scheduled monitoring. Items seen before are not charged.

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

Name for the 'only new' memory, so different schedules don't share it. Letters, digits and dashes.

## `includeContent` (type: `boolean`):

Adds the full content the feed publishes (as plain text), when it has more than a summary.

## `discoverOnly` (type: `boolean`):

Return the feeds found for each website (one row per feed) instead of their items. Charged as one item per feed found.

## Actor input object example

```json
{
  "feeds": [
    "https://feeds.bbci.co.uk/news/technology/rss.xml",
    "github.blog"
  ],
  "maxItemsPerFeed": 10,
  "onlyNew": false,
  "stateKey": "default",
  "includeContent": false,
  "discoverOnly": false
}
```

# Actor output Schema

## `results` (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 = {
    "feeds": [
        "https://feeds.bbci.co.uk/news/technology/rss.xml",
        "github.blog"
    ],
    "maxItemsPerFeed": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datasetworks/rss-feed-to-json").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://feeds.bbci.co.uk/news/technology/rss.xml",
        "github.blog",
    ],
    "maxItemsPerFeed": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datasetworks/rss-feed-to-json").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://feeds.bbci.co.uk/news/technology/rss.xml",
    "github.blog"
  ],
  "maxItemsPerFeed": 10
}' |
apify call datasetworks/rss-feed-to-json --silent --output-dataset

```

## MCP server setup

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

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/mxwnMafkL82vOWVqj/builds/qUsJLZlfrOzR4BzXr/openapi.json
