# RSS & Atom Reader — feeds to JSON, Markdown & CSV (`variable_paddock/rss-to-json`) Actor

Turn any RSS, Atom or JSON feed into clean articles with title, author, date and full text. Markdown/CSV export, per-item hashes and an only-new mode for cheap incremental monitoring.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 to JSON/Markdown

Convert **RSS 2.0** and **Atom** feeds into clean structured records (JSON) or formatted Markdown. Zero scraping dependencies — only Node's built-in `http`/`https` and a hand-written XML parser.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `feedUrls` | array of strings | — (required) | RSS/Atom URLs, e.g. `https://hnrss.org/frontpage` |
| `maxItems` | integer | `20` | Max items per feed (1–200) |
| `outputMode` | `json` / `markdown` | `json` | Record format |

#### Example

```json
{
  "feedUrls": ["https://hnrss.org/frontpage", "https://feeds.bbci.co.uk/news/rss.xml"],
  "maxItems": 10,
  "outputMode": "json"
}
```

### Output (one dataset record per item)

```json
{
  "feedUrl": "https://hnrss.org/frontpage",
  "feedTitle": "Hacker News: Front Page",
  "title": "Show HN: ...",
  "link": "https://...",
  "pubDate": "Tue, 11 Nov 2026 07:00:00 +0000",
  "summary": "...",
  "content": "...",
  "author": "...",
  "fetchedAt": "2026-11-11T07:30:00.000Z"
}
```

In `markdown` mode the record has a `markdown` field (heading link + date/author + excerpt) instead of `summary`/`content`.

Errors (bad URL, HTTP non-200, timeout, unparsable feed) are pushed as a record with `error` and `feedUrl`, so one bad feed never blocks the rest.

### Local run

```bash
npm install
mkdir -p storage/key_value_stores/default
echo '{"feedUrls":["https://hnrss.org/frontpage"],"maxItems":5}' > storage/key_value_stores/default/INPUT.json
node src/main.js
## results: storage/datasets/default/*.json
```

### Limitations

- **RSS 2.0 / Atom only** — RDF (RSS 1.0) and JSON Feed are not supported.
- Items without a link/title are still emitted with empty fields (no guessing).
- 15 s timeout per feed; feeds behind auth/cookies or heavy anti-bot pages may fail.
- Summary/content is plain text (HTML tags stripped); no full-text extraction from article pages.
- Images/enclosures are not downloaded.

### Platform notes

- `.actor/actor.json` uses `actorSpecification: 1`, `version: "0.0"`, and points to `./input_schema.json` / `./README.md` (copies live inside `.actor/`).
- `package.json` `main`/`start` = `src/main.js`; only runtime dependency is `apify` (platform SDK).
- `input_schema.json` is duplicated at root and `.actor/input_schema.json`.
- When creating the Actor, pass **source file contents as plain text**, not base64.

### Example output (real run on Hacker News front page)

```json
{
  "feedTitle": "Hacker News: Front Page",
  "title": "After 7 Months, Glasswing Overwhelms Maintainers with Underwhelming Findings",
  "link": "https://www.vulncheck.com/blog/...",
  "pubDate": "2026-11-10T22:41:00.000Z",
  "author": "...",
  "summary": "...",
  "content": "...",
  "feedUrl": "https://hnrss.org/frontpage",
  "fetchedAt": "2026-11-10T23:40:57.000Z"
}
```

> Input `{"feedUrls":["https://hnrss.org/frontpage"],"maxItems":5}` → **5 dataset items**.

# Actor input Schema

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

One or more RSS 2.0 / Atom feed URLs (http or https). Each string is fetched independently.

## `maxItems` (type: `integer`):

Maximum number of entries to output per feed (1-200).

## `outputMode` (type: `string`):

json = structured fields (summary/content); markdown = formatted Markdown per item.

## Actor input object example

```json
{
  "maxItems": 20,
  "outputMode": "json"
}
```

# Actor output Schema

## `results` (type: `string`):

Each item: feedTitle, title, link, pubDate, summary, author (plus markdown when outputMode=markdown).

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("variable_paddock/rss-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("variable_paddock/rss-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 '{}' |
apify call variable_paddock/rss-to-json --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,variable_paddock/rss-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/iPi0TgdCbDelllSP4/builds/RXftVc6dDJWNBraZP/openapi.json
