# Substack RSS: Public Newsletter Post Metadata (`varnmill/substack-rss`) Actor

Recent public Substack newsletter titles, dates and post links as JSON or CSV. Hosted publication handles, date filtering and a free feed-window report. No article bodies, archive search or login.

- **URL**: https://apify.com/varnmill/substack-rss.md
- **Developed by:** [Jay Novello](https://apify.com/varnmill) (community)
- **Categories:** News, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 post metadata rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Substack RSS: Public Newsletter Post Metadata

On November 10, 2026, the public `on.substack.com/feed` returned 20 recent post metadata rows. One actual row was:

```json
{
  "publication": "on",
  "title": "Candidates flipped seven Senate seats this election. The winners are all on Substack.",
  "postUrl": "https://on.substack.com/p/candidates-flipped-seven-senate-seats",
  "publishedAt": "2026-11-07T17:30:18+00:00"
}
```

Use this Actor to put known newsletters' recent post titles, links and dates into a recurring spreadsheet or research feed. Each fresh run is a new paid snapshot. The feed window is bounded; it is not a complete publication archive.

### Start with one publication

```json
{"publications":["on"],"maxItems":20}
```

Enter hosted publication handles, not URLs. Export the dataset as JSON or CSV. The free **FEED-REPORT** in the key-value store records each publication's source window, parsed/invalid/duplicate rows, delivered rows, limits and errors. Check the report before interpreting an empty dataset. `sourceComplete` is always `null`: the source does not establish archive completeness.

For a weekly spreadsheet, supply the same handles and optionally `publishedAfter` as an ISO date or timezone-aware timestamp. Only post dates strictly after the cutoff are included. Unknown dates are excluded with an explicit count when filtering; without the filter they remain null in output. Filtering does not fetch older posts that have fallen out of the RSS feed. Deduplicate exported snapshots using `postId` if needed.

### Output and coverage

Each post has a publication-scoped stable `postId`, source GUID when present, publication handle/title, post title/link, normalized UTC date (or null), raw date, source feed URL and capture time. Bodies, author email addresses and subscriber data are never exported. Identical source posts within one publication are collapsed. Posts from different publications remain separate rows even if their GUIDs match.

One to five hosted publications per run; a maximum 8 MB feed response; at most 100 source items inspected per publication and 500 delivered rows in total. Common feeds expose about 20 recent items. A `maxItems` value above available items cannot retrieve additional history. Publications are processed in input order. A limit can leave later feeds unstarted. A successful run with source errors is partial; consult every publication outcome in FEED-REPORT.

Custom domains and redirects, article bodies, full archives, search/discovery, Notes, comments, publication analytics, login-only content and paid articles are unsupported. A title in a public feed does not establish whether its linked article is free or paid. No article page is requested and no paywall is bypassed. Substack can change or refuse public feeds. Refusals/timeouts are reported once, without retries, proxies or alternative access routes.

### Pricing

One **post** event per metadata row delivered. The coverage report, filtered rows, source errors and within-run duplicate rows have no post event. The platform start event is $0.00005 (one per GB, minimum one). Minimum spending limit: $0.00005. Platform compute/proxy usage is included in event pricing; this Actor uses no proxy.

| Plan | Price per 1,000 posts |
|---|---:|
| Free | $0.50 |
| Bronze | $0.45 |
| Silver | $0.40 |
| Gold / Platinum / Diamond | $0.35 |

Twenty rows at base price cost $0.01005 including one start event; actual output can be smaller. Empty or failed runs have no post events but can still incur the start event. A spending limit stops work before unaffordable rows are fetched/delivered; a dropped SDK delivery is not counted as a result. Different fresh runs can charge for the same post again.

### Restart and failure behavior

A resurrection with the original input reads the retained dataset and skips its already-delivered IDs; it does not repeat their post charges. Changing input on resurrection fails explicitly: start a new run instead. Retain the original dataset and key-value store. If the dataset ledger cannot be read, the run stops before source work. No persistent only-new watcher or cross-run shared state is provided, so concurrent fresh runs are independent snapshots and may both charge for matching posts.

If every feed fails and no retained rows exist, the run fails. Some working feeds plus some failures produce a partial successful run with explicit errors. Empty feeds and date-filtered windows are distinguished. On cancellation, the report may be provisional (`attemptFinished=false`); the retained dataset is authoritative for delivery. Reports describe the current attempt; `retainedItems` and `deliveredThisAttempt` are separate.

### Alternatives and limits

Direct public RSS plus a parser is a free workaround if you run your own collection and storage. Broader Substack scrapers offer discovery, article content and comments that this Actor does not. This Actor focuses on small known-publication metadata snapshots. No universal coverage or cheapest-provider claim is made.

### FAQ

**Why did I get only 20 posts?** That is often the entire current RSS window; this Actor does not paginate historical archives.

**Can I use my custom-domain newsletter?** Only a hosted handle that serves its feed directly is supported. Redirected or custom-domain feeds are rejected.

**Does a null date mean the post is new?** No. It means the source date was missing, invalid or had no timezone.

**Can I schedule this?** Yes. Use Apify schedules and deduplicate your own exported snapshots. Every fresh snapshot can bill repeated posts.

### Changelog

- 0.1.2 — Accept bounded feeds up to 8 MB after real feeds exceeded 2 MB; distinguish actual XML DTDs from quoted article markup and include source error details.
- 0.1.1 — Initial hosted-publication metadata snapshot, optional date filter, explicit feed outcomes, billing caps and retained-dataset recovery.

# Actor input Schema

## `publications` (type: `array`):

One to five hosted Substack handles, for example on for on.substack.com. Duplicate handles are collapsed. URLs, custom domains and redirected feeds are unsupported.

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

Global limit across all publications, 1–500. At most 100 source items per publication; most recent feeds contain about 20. Later publications may be left unstarted at the limit.

## `publishedAfter` (type: `string`):

ISO date (UTC midnight) or timezone-aware datetime, for example 2026-11-01 or 2026-11-01T12:00:00Z. Only dates strictly later qualify. Unknown dates are excluded and counted in the report. This filters the current feed; it does not retrieve older history.

## Actor input object example

```json
{
  "publications": [
    "on"
  ],
  "maxItems": 20
}
```

# Actor output Schema

## `posts` (type: `string`):

No description

## `coverage` (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 = {
    "publications": [
        "on"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("varnmill/substack-rss").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 = {
    "publications": ["on"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("varnmill/substack-rss").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 '{
  "publications": [
    "on"
  ],
  "maxItems": 20
}' |
apify call varnmill/substack-rss --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,varnmill/substack-rss"
        }
    }
}
```

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/3SFO3y7lIbCrYWoua/builds/IQrdNWMDs5UUsxSnn/openapi.json
