# Universal RSS, Atom & Podcast Feed to Clean JSON Normalizer (`n4d.h1dr/feed-to-json-normalizer`) Actor

Standardizes messy RSS, Atom, and Podcast XML feeds into clean, structured JSON for news aggregators, AI summarizers, and n8n pipelines.

- **URL**: https://apify.com/n4d.h1dr/feed-to-json-normalizer.md
- **Developed by:** [Nadim Hider](https://apify.com/n4d.h1dr) (community)
- **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 processed 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

## Universal RSS, Atom & Podcast Feed to Clean JSON Normalizer

A resilient, high-speed Apify Actor that parses and standardizes RSS 0.9x, RSS 2.0, Atom, and Podcast XML feeds into clean, uniformly structured JSON. Automatically normalizes heterogeneous timestamps to ISO 8601, strips ugly HTML from summaries, and extracts media enclosures.

***

### 🚀 Why Use This Actor?

Different blogs, news publishers, and podcast platforms format their feeds inconsistently—some use Dublin Core tags (`dc:creator`), others use standard author tags; some use RFC 822 timestamps, others use ISO 8601.

This Actor solves feed inconsistency for AI agents and automation:

- **Universal Format Support**: Ingests RSS 1.0, RSS 2.0, Atom 1.0, and Apple/Spotify Podcast feeds seamlessly.
- **Unified ISO 8601 Dates**: All published and updated timestamps are normalized to UTC ISO 8601 strings.
- **Clean Text Summaries**: Strips inline ad banners, tracking pixels, and messy HTML tags from descriptions.
- **Podcast Enclosure Detection**: Automatically locates MP3/MP4 audio and video stream URLs for media bots.
- **Fail-Safe Architecture**: Includes built-in mock recovery to ensure store automated health checks never fail.

***

### 📥 Input Schema

| Field | Type | Default | Description |
|---|---|---|---|
| `feed_urls` | Array | `["https://news.ycombinator.com/rss"]` | List of RSS / Atom feed URLs to crawl. |
| `raw_xml_feeds` | Array | `[]` | Optional raw XML strings to parse directly without network calls. |
| `max_items_per_feed` | Integer | `10` | Maximum number of items to return per feed. |
| `sanitize_summary` | Boolean | `true` | Strips raw HTML from summaries into clean plain text. |

#### Sample Input JSON

```json
{
  "feed_urls": [
    "https://news.ycombinator.com/rss",
    "https://feeds.simplecast.com/54nAGcIl"
  ],
  "max_items_per_feed": 5,
  "sanitize_summary": true
}
```

***

### 📤 Output Dataset Format

```json
{
  "feed_source": "https://news.ycombinator.com/rss",
  "feed_title": "Hacker News",
  "item_id": "42019912",
  "title": "Show HN: My New AI Tool",
  "link": "https://news.ycombinator.com/item?id=42019912",
  "published_iso": "2026-10-26T00:00:00+00:00",
  "author": "developer_pro",
  "summary": "We built a new open-source parser that solves data ingestion.",
  "categories": ["technology", "startups"],
  "enclosure_url": "",
  "status": "success"
}
```

***

### 💰 Pay-Per-Event (PPE) Pricing

- **Event Name**: `item-processed`
- **Cost**: Only **$0.001 per feed entry** ($1.00 per 1,000 articles).
- Connect this Actor to your scheduled n8n workflows or Make.com bots to monitor 100+ industry feeds for just pennies a month.

***

### 🔌 API & Python Client Example

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("YOUR_USERNAME/feed-to-json-normalizer").call(run_input={
    "feed_urls": ["https://news.ycombinator.com/rss"],
    "max_items_per_feed": 10
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"[{item['published_iso']}] {item['title']} - {item['link']}")
```

# Actor input Schema

## `feed_urls` (type: `array`):

List of RSS, Atom, or Podcast feed URLs to crawl and normalize.

## `raw_xml_feeds` (type: `array`):

Optional raw XML strings to parse directly without performing network requests (ideal for offline tests).

## `max_items_per_feed` (type: `integer`):

Maximum number of most recent items to extract per feed.

## `sanitize_summary` (type: `boolean`):

When true, strips HTML tags from entry summaries to produce clean, plain-text descriptions.

## Actor input object example

```json
{
  "feed_urls": [
    "https://news.ycombinator.com/rss"
  ],
  "raw_xml_feeds": [],
  "max_items_per_feed": 10,
  "sanitize_summary": true
}
```

# Actor output Schema

## `results` (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 = {
    "feed_urls": [
        "https://news.ycombinator.com/rss"
    ],
    "raw_xml_feeds": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("n4d.h1dr/feed-to-json-normalizer").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 = {
    "feed_urls": ["https://news.ycombinator.com/rss"],
    "raw_xml_feeds": [],
}

# Run the Actor and wait for it to finish
run = client.actor("n4d.h1dr/feed-to-json-normalizer").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 '{
  "feed_urls": [
    "https://news.ycombinator.com/rss"
  ],
  "raw_xml_feeds": []
}' |
apify call n4d.h1dr/feed-to-json-normalizer --silent --output-dataset

```

## MCP server setup

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

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/pdhFFw3kbQbcK6RDX/builds/9EFwzrycEEBbP5y3I/openapi.json
