# RSS and Atom Feed Reader: Items to JSON (`praise-most-high/feed-reader`) Actor

Reads RSS and Atom feeds and returns one flat JSON row per item: title, link, stable id, published and updated dates, categories and enclosure URL. Honours robots.txt and Crawl-delay.

- **URL**: https://apify.com/praise-most-high/feed-reader.md
- **Developed by:** [angel nguyen](https://apify.com/praise-most-high) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 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 and Atom Feed Reader: Items to JSON

An RSS feed reader for scripts, spreadsheets and AI agents. Give it one or more RSS or Atom feed URLs and it returns one flat JSON row per item: title, link, a stable id, published and updated dates, categories and the enclosure URL. Use it as RSS to JSON for a pipeline, as an Atom feed parser, or for feed monitoring on a schedule you set.

### What the Actor returns

Honours each site's robots.txt and Crawl-delay, returns typed item metadata with stable ids, charges per item with no run fee of its own, and every failed feed gets an error row that says why.

- One row per feed item, in feed order, up to `maxItemsPerFeed` per feed.
- Reads RSS 2.0, RSS 0.91 and 0.92, RSS 1.0 (RDF) and Atom.
- Give it a site page instead of a feed and it reads the feed that page names in its HTML link elements.
- Values are as each publisher's feed states them. `publishedAt` is null when a feed gives no readable date.
- The Actor returns item metadata only (title, link, ids, dates, categories, enclosure URL). It never returns summaries, article text or author names.
- A feed's content belongs to its publisher; you are responsible for using it under that publisher's terms.
- A feed whose titles name people (court and press-release feeds often do) returns those titles as published.

### Input

The one required field is `urls`. The shortest useful input:

```json
{ "urls": ["https://news.va.gov/feed/atom/"] }
```

The example input, which three US federal agency feeds answer:

```json
{
  "urls": [
    "https://www.fda.gov/about-fda/contact-fda/stay-informed/rss-feeds/press-releases/rss.xml",
    "https://www.justice.gov/news/rss?type=press_release&m=1",
    "https://news.va.gov/feed/atom/"
  ],
  "maxItemsPerFeed": 10
}
```

| Field | Type | Default | What it does |
|---|---|---|---|
| `urls` | array of strings | (required) | Feed URLs, or site pages whose HTML names a feed. Absolute http or https, at most 100. |
| `maxItemsPerFeed` | integer, 1 to 500 | 50 | The most item rows per feed, in feed order. |
| `publishedWithinDays` | integer, 1 to 365 | none | Keep items published or updated within this many days. Items with no date are kept and counted. |
| `keywords` | string | none | Plain words; every word must appear in the title, case ignored. Not a regular expression. |
| `discoverFeeds` | boolean | true | Read the first RSS or Atom feed an HTML page names in a link element with rel alternate. |

### Output fields

Item rows and error rows share the default dataset. An item row has the first 13 fields; an error row has the last 6.

| Field | Type | Meaning |
|---|---|---|
| `feedUrl` | string | The URL the feed was read from, after redirects. With `itemId`, the dedupe key. |
| `feedTitle` | string | The channel title (RSS) or feed title (Atom), as plain text. |
| `itemId` | string | guid (RSS), id (Atom), else the link, else a 16-character hash of title plus publishedAt. |
| `idSource` | string | Where `itemId` came from: `guid`, `id`, `link` or `hash`. |
| `title` | string | Item title as plain text: CDATA unwrapped, entities decoded once, markup removed. |
| `link` | string | Absolute item link; empty when the feed gives none. |
| `publishedAt` | string or null | Published date, ISO 8601 UTC. Atom uses published, else updated. |
| `updatedAt` | string or null | Updated date (Atom updated or RSS atom:updated), ISO 8601 UTC. |
| `categories` | array of strings | Category texts (RSS) or terms (Atom), unique, in feed order. |
| `enclosureUrl` | string or null | First enclosure URL (podcast audio, for example). |
| `enclosureType` | string or null | First enclosure MIME type. |
| `sourceUrl` | string | The feed this row was read from (same as `feedUrl`). |
| `checkedAt` | string | When the run read it, ISO 8601 UTC. |
| `error` | boolean | Error row only: true. |
| `errorCode` | string | Error row only: one of the codes below. |
| `input` | string | Error row only: the input or URL concerned. |
| `url` | string | Error row only: the URL that failed; empty when none. |
| `httpStatus` | integer or null | Error row only: the HTTP status, null when none. |
| `errorMessage` | string | Error row only: what went wrong and why. |

A real row from the example input, read on 2026-11-22:

```json
{
  "feedUrl": "https://www.fda.gov/about-fda/contact-fda/stay-informed/rss-feeds/press-releases/rss.xml",
  "feedTitle": "FDA Press Releases RSS Feed",
  "itemId": "http://www.fda.gov/news-events/press-announcements/fda-approves-first-drug-treat-neurological-symptoms-type-3-gaucher-disease",
  "idSource": "guid",
  "title": "FDA Approves First Drug to Treat Neurological Symptoms of Type 3 Gaucher Disease",
  "link": "http://www.fda.gov/news-events/press-announcements/fda-approves-first-drug-treat-neurological-symptoms-type-3-gaucher-disease",
  "publishedAt": "2026-11-18T19:13:26.000Z",
  "updatedAt": null,
  "categories": [],
  "enclosureUrl": null,
  "enclosureType": null,
  "sourceUrl": "https://www.fda.gov/about-fda/contact-fda/stay-informed/rss-feeds/press-releases/rss.xml",
  "checkedAt": "2026-11-22T17:38:49.875Z"
}
```

Measured from our own machine on 2026-11-22: the example input returned 30 item rows (10 per feed) and 0 error rows in 41.7 seconds. Most of that time is the 30-second Crawl-delay that www.fda.gov sets in its robots.txt, which the Actor waits out.

### Robots and pacing

- robots.txt is read once per host per run, before any other request to that host.
- The product token is `feed-reader`. A group naming it is used; otherwise the `*` group.
- Rules follow RFC 9309: `*` wildcards, `$` end anchors, the longest match wins and Allow wins a tie.
- A disallowed feed path is never requested. A robots.txt that answers 5xx or times out means nothing on that host is read.
- Crawl-delay is honoured up to 30 s. A host that asks for more is not read and gets an error row naming the delay.
- At least 1 s between two requests to one host, and one request at a time.

### Errors

Every failed input, URL or host gets one error row. Error rows are never charged.

| Code | When |
|---|---|
| `NO_INPUT` | `urls` is empty or absent. |
| `INVALID_INPUT` | A URL is not absolute http or https, more than 100 URLs, or a number is out of range. The row names the field. |
| `ROBOTS_DISALLOWED` | robots.txt disallows the path, or asks for a Crawl-delay over 30 s. |
| `ROBOTS_UNREACHABLE` | robots.txt answered 5xx or no answer, so the host is treated as closed. |
| `SOURCE_HTTP_ERROR` | The feed answered a non-2xx status, timed out, failed DNS, reset, or redirected more than 5 times. |
| `SOURCE_TOO_LARGE` | The body is over 5 MB. |
| `NOT_A_FEED` | The body is not RSS or Atom, or an HTML page names no feed. |
| `SOURCE_PARSE_ERROR` | The XML is broken or declares an entity. |
| `NO_RESULTS` | No item was delivered and nothing else failed; the message gives items seen and items filtered per URL. |

The run ends SUCCEEDED when at least one item row was delivered, and FAILED with a status message naming the codes when none was. A `SUMMARY` record in the run's key-value store counts requests, robots reads, items seen, delivered, duplicates and filtered items per URL.

### Pricing

- **0.0012 USD per feed item** delivered (1.20 USD per 1,000 items).
- Start charge: 0.00005 USD per started GB of run memory, at least one; at the default 4 GB that is 0.0002 USD per run.

Error rows, duplicates and filtered items are free.

### For the Apify MCP server and AI agents

- Field names are flat, typed and stable, so an agent can read rows without parsing nested objects.
- Use `feedUrl` plus `itemId` as the dedupe key between runs.
- Branch on `error`: when it is true, read `errorCode` and `errorMessage`; otherwise the row is an item.
- A short example request: `{ "urls": ["https://www.justice.gov/news/rss?type=press_release&m=1"], "maxItemsPerFeed": 5, "keywords": "fraud" }`

### Support and feedback

Open an issue on the Issues tab of this Actor's page. Issues are answered within 14 days.

# Actor input Schema

## `urls` (type: `array`):

RSS or Atom feed URLs, or site pages whose HTML names their feed in a link element. Absolute http or https URLs, at most 100 per run.

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

The most item rows returned per feed, in feed order (1 to 500).

## `publishedWithinDays` (type: `integer`):

Keep only items whose published or updated date falls within this many days of the run (1 to 365). An item with neither date is kept and counted in the run summary.

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

Plain words. An item is kept only when every word appears in its title, case ignored. Not a regular expression.

## `discoverFeeds` (type: `boolean`):

When a URL answers an HTML page, read that page's link elements with rel alternate and an RSS or Atom type, and read the first feed it names. No other part of the page is used.

## Actor input object example

```json
{
  "urls": [
    "https://www.fda.gov/about-fda/contact-fda/stay-informed/rss-feeds/press-releases/rss.xml",
    "https://www.justice.gov/news/rss?type=press_release&m=1",
    "https://news.va.gov/feed/atom/"
  ],
  "maxItemsPerFeed": 10,
  "discoverFeeds": true
}
```

# Actor output Schema

## `rows` (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 = {
    "urls": [
        "https://www.fda.gov/about-fda/contact-fda/stay-informed/rss-feeds/press-releases/rss.xml",
        "https://www.justice.gov/news/rss?type=press_release&m=1",
        "https://news.va.gov/feed/atom/"
    ],
    "maxItemsPerFeed": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("praise-most-high/feed-reader").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 = {
    "urls": [
        "https://www.fda.gov/about-fda/contact-fda/stay-informed/rss-feeds/press-releases/rss.xml",
        "https://www.justice.gov/news/rss?type=press_release&m=1",
        "https://news.va.gov/feed/atom/",
    ],
    "maxItemsPerFeed": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("praise-most-high/feed-reader").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 '{
  "urls": [
    "https://www.fda.gov/about-fda/contact-fda/stay-informed/rss-feeds/press-releases/rss.xml",
    "https://www.justice.gov/news/rss?type=press_release&m=1",
    "https://news.va.gov/feed/atom/"
  ],
  "maxItemsPerFeed": 10
}' |
apify call praise-most-high/feed-reader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,praise-most-high/feed-reader"
        }
    }
}
```

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/c9dMtKvpB4MUrCuuT/builds/3bNkpRZW8syPD0hZU/openapi.json
