# Substack Newsletter & Podcast Feed Change Monitor (`solidscrape/substack-newsletter-feed-monitor`) Actor

Monitor public Substack RSS feeds for new posts and edits to titles, authors, links, dates and podcast enclosures. Compare snapshots, see old and new values and export only observed changes.

- **URL**: https://apify.com/solidscrape/substack-newsletter-feed-monitor.md
- **Developed by:** [SolidScrape](https://apify.com/solidscrape) (community)
- **Categories:** News, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.25 / 1,000 observed post or edits

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

## Substack Newsletter & Podcast Feed Change Monitor

Which newsletter posts appeared since your last check? Did an editor change a headline, move a post, or replace a podcast enclosure? Point this Actor at up to five public Substack publications. It returns an exportable row for each first observation or detected edit, including the post link and the old and new values of each edited field.

Use it for editorial alerts, a newsletter watchlist, or an audio publishing workflow. Each run also produces a portable baseline so your application can repeat the check on its own schedule.

[Try the Substack feed example](https://apify.com/solidscrape/substack-newsletter-feed-monitor/examples/monitor-substack-newsletter-posts-and-podcast-edits) or [read the guide to tracking new posts and corrections](https://solidscrape-monitoring-guides.techmuhafiz.chatgpt.site/substack-feed-changes/).

### Try Substack’s product newsletter

Run the following input in Console. The slug `on` identifies Substack’s own newsletter at [on.substack.com/feed](https://on.substack.com/feed). Each lowercase slug is checked only once per run.

```json
{"publications":["on"],"maxItems":5,"maxSpendUsd":0.02}
```

Open **Dataset → Newsletter changes** for the first five entries. One check returning five entries costs **$0.00475** at the prices below. Open **Output → Snapshot for the next run** for the JSON baseline. A five-row limit can leave older entries awaiting their initial observation. For a baseline covering a twenty-entry feed in one run, use `maxItems: 20` with the same $0.02 cap.

### Compare two runs

1. After a successful extraction, save the complete `SNAPSHOT` record from its default key-value store. It contains version 1, the publication slugs and the metadata you have already received.
2. For the next run, paste that JSON into **Previous SNAPSHOT**, retaining the same publication slugs. A program can fetch the record through the API and insert it into the next input as `previousSnapshot`. Keep the newest successful snapshot in your own pipeline.
3. Send `updated` rows to an editor and `new` rows to your publishing watchlist. Inspect `SUMMARY` for pending changes, source failures and the spending cap.

| Event | Interpretation |
| --- | --- |
| `initial` | First observation while establishing this publication’s baseline. When the output limit splits the baseline across several runs, the remaining initial observations keep this label. |
| `new` | This item ID was absent from a previously established observation window. An old post reappearing in RSS can also produce this event. |
| `updated` | A known item ID has an observed metadata change. The `changes` object gives a before/after pair for every changed field. |

An unchanged feed produces a successful run with zero dataset rows; `SUMMARY.unchanged` reports how many known items matched. A post disappearing from a publisher’s sliding feed window has no deletion event. If an output or spending limit interrupts a check, its snapshot retains old values for pending edits and leaves pending new entries eligible while they remain in the feed. Preserve the input baseline when a run fails.

### API quickstart

With Python 3, set your own Apify token in the local environment as `APIFY_TOKEN`. This starts one bounded run and prints its change rows as JSON. Use the run-history view in Console to access its `SNAPSHOT` and `SUMMARY`. Check run history before retrying an interrupted start request.

```python
import json
import os
from urllib.request import Request, urlopen

endpoint = (
    "https://api.apify.com/v2/acts/solidscrape~substack-newsletter-feed-monitor/"
    "run-sync-get-dataset-items?maxTotalChargeUsd=0.02&memory=512&timeout=100"
)
sample = {"publications": ["on"], "maxItems": 5, "maxSpendUsd": 0.02}
request = Request(
    endpoint,
    data=json.dumps(sample).encode(),
    headers={"Authorization": "Bearer " + os.environ["APIFY_TOKEN"],
             "Content-Type": "application/json"},
)
with urlopen(request, timeout=115) as response:
    rows = json.load(response)
for row in rows:
    print(row["event"], row["title"], row["url"], row["changes"])
```

For recurring runs, start with `POST /v2/acts/solidscrape~substack-newsletter-feed-monitor/runs?maxTotalChargeUsd=0.02` and poll `GET /v2/actor-runs/{runId}` until terminal. On success, use its `defaultKeyValueStoreId` to retrieve `GET /v2/key-value-stores/{defaultKeyValueStoreId}/records/SNAPSHOT`. Send the same authorization header to the Apify API. Scheduled runs with a fixed input repeat the fixed baseline; a caller must pass the latest snapshot to advance it.

### Output fields

Each row contains `publication`, `event`, `itemId`, `title`, `url`, `author`, `publishedAt`, `enclosureUrl`, `enclosureType`, and `changes`. For example, a hypothetical headline correction would have `"changes":{"title":{"before":"Dispatch 21","after":"Dispatch 22"}}`. Initial and newly observed rows have an empty changes object.

The item ID is a SHA-256 hash of the publication and RSS GUID, falling back to the public post link when the GUID is missing. A publisher changing its GUID can create a new identity. Link queries and fragments are removed so tracking and expiring media tokens stay out of the output. Availability of audio metadata depends on the publication’s main RSS feed. The Actor never downloads media. Changed article body text, likes and subscriber counts are outside the comparison.

Check `enclosureType` before treating an enclosure as a podcast. For instance, Substack’s product newsletter serves both `image/jpeg` artwork and `audio/mpeg` recordings. An empty `author` means the feed item omitted its own author or creator. A publication-level owner can differ from a post’s author and is not substituted.

### Pricing and limits

| Billed event | USD per event |
| --- | ---: |
| Actor start with fixed 512 MB | $0.002 |
| One bounded publication check, including the robots check and feed attempt | $0.0015 |
| One emitted initial, new or edited row | $0.00025 |

Checking one unchanged publication costs **$0.0035**. Checking one publication and emitting one edited row costs **$0.00375**. One check with twenty emitted rows costs **$0.0085**. A failed publisher check still incurs the check fee. The lower of `maxSpendUsd` and the platform run cap limits processing. Apify handles the start event before the Actor validates input. No separate charge is configured for the output dataset rows.

One run accepts 1–5 distinct public `*.substack.com` slugs and up to 100 output rows. It inspects the first 40 entries in each main RSS feed; each baseline therefore retains at most 40 entries per publication. A publication with an explicit custom-domain redirect is skipped. Checks respect publisher robots rules, run sequentially, skip retries and stop after a bounded work window. Each feed is limited to 1 MiB transferred and 2 MiB decoded. The only stored publisher fields are the bounded public metadata described above. Use public feeds you have permission to monitor. [Substack’s public RSS documentation](https://support.substack.com/hc/en-us/articles/360038239391-Is-there-an-RSS-feed-for-my-publication)

# Actor input Schema

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

Enter 1–5 lowercase publication names, such as on for on.substack.com. The Actor reads each publisher's public /feed. Duplicates are checked once. Custom domains and redirects are unsupported.

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

Across this run, emit up to this many initial, new or edited items. The next snapshot keeps each pending change eligible while it remains in the published feed.

## `maxSpendUsd` (type: `number`):

Start costs $0.002, each feed check costs $0.0015, and each emitted row costs $0.00025. The lower of this cap and your Apify run cap applies. The platform can charge the start event before input validation.

## `previousSnapshot` (type: `object`):

Paste the full version 1 SNAPSHOT JSON record returned by a prior run using these publications, up to 1 MiB. Omit for a first observation. Keep the original item IDs and metadata.

## Actor input object example

```json
{
  "publications": [
    "on"
  ],
  "maxItems": 5,
  "maxSpendUsd": 0.02
}
```

# Actor output Schema

## `changes` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `snapshot` (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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("solidscrape/substack-newsletter-feed-monitor").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"] }

# Run the Actor and wait for it to finish
run = client.actor("solidscrape/substack-newsletter-feed-monitor").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"
  ]
}' |
apify call solidscrape/substack-newsletter-feed-monitor --silent --output-dataset

```

## MCP server setup

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

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/gYhpRJwN5RO6gF3q6/builds/PPYuRio0kav5SrYE6/openapi.json
