← RSS

New Item From Multiple RSS Feeds from RSS API

Pipedream makes it easy to connect APIs for RSS and 900+ other apps remarkably fast.

Trigger workflow on
New Item From Multiple RSS Feeds from the RSS API
Next, do this
Connect to 900+ APIs using code and no-code building blocks
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Trigger a workflow on New Item From Multiple RSS Feeds with RSS API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Item From Multiple RSS Feeds trigger
    1. Connect your RSS account
    2. Configure timer
    3. Configure Feed URLs
    4. Optional- Configure Max per Feed
  2. Add steps to connect to 900+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Send Message with Discord Webhook API on New item from multiple RSS feeds from RSS API
RSS + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New item from multiple RSS feeds from RSS API
RSS + Google Sheets
 
Try it
Get Film with SWAPI - Star Wars API on New item from multiple RSS feeds from RSS API
RSS + SWAPI - Star Wars
 
Try it
Create Multiple Records with Airtable API on New item from multiple RSS feeds from RSS API
RSS + Airtable
 
Try it
Send any HTTP Request with HTTP / Webhook API on New item from multiple RSS feeds from RSS API
RSS + HTTP / Webhook
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

New Item From Multiple RSS Feeds on RSS
Description:Emit new items from multiple RSS feeds
Version:1.0.4
Key:rss-new-item-from-multiple-feeds

Code

import rss from "../../app/rss.app.mjs";
import { defineSource } from "@pipedream/types";
import rssCommon from "../common/common.mjs";
export default defineSource({
    ...rssCommon,
    key: "rss-new-item-from-multiple-feeds",
    name: "New Item From Multiple RSS Feeds",
    type: "source",
    description: "Emit new items from multiple RSS feeds",
    version: "1.0.4",
    props: {
        ...rssCommon.props,
        urls: {
            propDefinition: [
                rss,
                "urls",
            ],
            description: "Enter one or multiple URLs from any public RSS feed. To avoid timeouts, 5 or less URLs is recommended.",
        },
        max: {
            type: "integer",
            label: "Max per Feed",
            description: "Maximum number of posts per feed to retrieve at one time. Defaults to 20.",
            optional: true,
            default: 20,
        },
    },
    dedupe: "unique",
    hooks: {
        async activate() {
            // Try to parse the feed one time to confirm we can fetch and parse.
            // The code will throw any errors to the user.
            for (const url of this.urls) {
                await this.rss.fetchAndParseFeed(url);
            }
        },
    },
    async run() {
        const items = [];
        for (const url of this.urls) {
            const feedItems = (await this.rss.fetchAndParseFeed(url))?.slice(0, this.max);
            console.log(`Retrieved items from ${url}`);
            items.push(...feedItems);
        }
        this.rss.sortItems(items).forEach((item) => {
            const meta = this.generateMeta(item);
            this.$emit(item, meta);
        });
    },
});

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
RSSrssappThis component uses the RSS app.
timer$.interface.timer

How often you want to poll the feed for new items

Feed URLsurlsstring[]

Enter one or multiple URLs from any public RSS feed. To avoid timeouts, 5 or less URLs is recommended.

Max per Feedmaxinteger

Maximum number of posts per feed to retrieve at one time. Defaults to 20.

Authentication

The RSS API does not require authentication.

About RSS

Real Simple Syndication

More Ways to Use RSS

Triggers

New Item in Feed from the RSS API

Emit new items from an RSS feed

 
Try it
Random item from multiple RSS feeds from the RSS API

Emit a random item from multiple RSS feeds

 
Try it

Actions

Merge RSS Feeds with the RSS API

Retrieve multiple RSS feeds and return a merged array of items sorted by date See docs

 
Try it