Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 2.52 KB

File metadata and controls

70 lines (54 loc) · 2.52 KB

API / curl — RSS Feed Reader

Call the RSS Feed Reader over the Apify REST API. Replace YOUR_APIFY_TOKEN with the token from Apify Console → Settings → Integrations. These requests invoke the hosted Actor — no Actor source code lives in this repo.

Run and get items in one call (synchronous)

curl -X POST "https://api.apify.com/v2/acts/logiover~bulk-rss-feed-reader/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
        "feedUrls": [
          "https://hnrss.org/frontpage",
          "https://www.theverge.com/rss/index.xml",
          "https://techcrunch.com/feed/"
        ],
        "maxItemsPerFeed": 25,
        "maxResults": 1000
      }'

Get CSV instead of JSON

curl -X POST "https://api.apify.com/v2/acts/logiover~bulk-rss-feed-reader/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN&format=csv" \
  -H "Content-Type: application/json" \
  -d '{ "feedUrls": ["https://hnrss.org/frontpage"] }' \
  -o feed-items.csv

Auto-discover feeds from plain website URLs

curl -X POST "https://api.apify.com/v2/acts/logiover~bulk-rss-feed-reader/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
        "feedUrls": ["https://arstechnica.com", "https://www.theverge.com"],
        "discoverFromWebsites": true,
        "maxItemsPerFeed": 10
      }'

Start async, then fetch the dataset

# 1. Start the run
curl -X POST "https://api.apify.com/v2/acts/logiover~bulk-rss-feed-reader/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "feedUrls": ["https://hnrss.org/frontpage"], "maxItemsPerFeed": 50 }'
# → note "id" and "defaultDatasetId"

# 2. Poll status
curl "https://api.apify.com/v2/actor-runs/RUN_ID?token=YOUR_APIFY_TOKEN"

# 3. Fetch items, newest first
curl "https://api.apify.com/v2/datasets/DATASET_ID/items?token=YOUR_APIFY_TOKEN&format=json&desc=true"

Fetch only the fields you need

curl "https://api.apify.com/v2/datasets/DATASET_ID/items?token=YOUR_APIFY_TOKEN&format=csv&fields=feedTitle,title,link,pubDate,author"

Notes

  • Use logiover~bulk-rss-feed-reader (tilde) in the API path; logiover/bulk-rss-feed-reader (slash) in the CLI/SDKs.
  • format accepts json, csv, xlsx, xml, jsonl.
  • For large backfills, prefer the async pattern so the connection doesn't stay open for the whole run.

▶️ Actor page: https://apify.com/logiover/bulk-rss-feed-reader