# Substack Scraper: Posts, Engagement & New-Post Alerts (`promur/substack-scraper`) Actor

Get every post of any Substack newsletter (substack.com or custom domain): title, date, free or paid, word count, likes, comments, restacks, tags, authors and optional full text. Monitor mode returns only new posts. No login, no API key.

- **URL**: https://apify.com/promur/substack-scraper.md
- **Developed by:** [PROMUR s.r.o.](https://apify.com/promur) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 88.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 posts

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 Scraper: Posts, Engagement & New-Post Alerts

Get **every post of any Substack newsletter** - on substack.com or its own custom domain - with **title, subtitle, date, free or paid, word count, likes, comments, restacks, tags, section and authors**, and optionally the **full text**, in one clean format ready for Excel, Google Sheets, Notion, your CRM or an AI agent. Or switch on the **new-post monitor** and get only the posts published since your last run.

The Actor reads the same public post archive the newsletter's own website loads. No login, no API key, no browser.

### Why this Actor

**Price, quality, reliability, responsibility - in balance:**

- 💵 **Fair price** - $2 per 1,000 posts, full text, engagement and authors included; new-post alerts charge only new posts.
- 🔍 **Complete posts** - title, text, engagement numbers, authors, tags and paywall status for every post in the archive.
- 🔁 **Dependable runs** - requests are paced per publication to stay within Substack's limits, with a run report per publication.
- 🤝 **Responsible collection** - public posts only: paid posts give their free preview, never the paywalled text; no subscriber or commenter data; robots.txt respected.

**What you get:**

- 📰 **Any Substack** - `https://<name>.substack.com`, a custom domain (e.g. `lennysnewsletter.com`) or just the name. Every post, newest first or most popular first.
- 📊 **Engagement numbers** - likes (reactions), comments and restacks per post: compare newsletters, find what performs.
- 🔒 **Free vs paid** - `audience` and `isPaywalled` on every post, plus word count and post type (newsletter, podcast, thread, video).
- 📝 **Full text on request** - the post body as plain text and HTML (for paid posts the free preview), ready for AI summaries or RAG.
- 🔔 **New-post alerts** - one switch turns the scraper into a monitor: only new posts are saved, and a run that finds nothing new **costs nothing**.
- 🙅 **No subscriber or commenter data** - only what the publication itself publishes: posts and their public bylines.

### Use cases

- **Newsletter research** - what a competitor or a whole niche publishes, how often, how much is paywalled, what gets the most likes.
- **Content monitoring** - a daily feed of new posts from the newsletters you follow, into Slack, email or a spreadsheet.
- **AI and RAG** - full text of a newsletter's free posts for summaries, search or a chatbot.
- **Sponsorship and partnerships** - find active newsletters and their engagement before you reach out.

### How to use

1. Paste one or more Substack publications or post links under **Substack publications or posts**.
2. Optional: set **Max posts per publication**, choose **Order**, switch on **Full text**, or turn on the **New-post monitor**.
3. Click **Start**. Download the results as JSON, CSV or Excel, or connect them to your tools. For a monitor, schedule the Actor (Console → Schedules), e.g. daily.

```json
{
    "urls": ["https://www.lennysnewsletter.com", "astralcodexten"],
    "onlyNew": true,
    "feedName": "my-newsletters"
}
```

### Output

One row per post:

`postId`, `title`, `subtitle`, `url`, `slug`, `publishedAt`, `updatedAt`, `type`, `audience`, `isPaywalled`, `wordcount`, `reactions`, `restacks`, `comments`, `tags`, `section`, `authors`, `coverImage`, `description`, `previewText`, `podcastDurationSec`, `language`, `publicationUrl`, `publicationId`, `content`, `contentHtml`, `contentIsPreview`, `changeType`, `source`, `input`, `scrapedAt`.

```json
{
    "title": "How to tell if a startup has a moat",
    "publishedAt": "2026-10-13T12:45:41.160Z",
    "type": "newsletter",
    "audience": "only_paid",
    "isPaywalled": true,
    "wordcount": 4153,
    "reactions": 388,
    "comments": 2,
    "restacks": 24,
    "tags": ["Career"],
    "authors": [{ "name": "Dan Hockenmaier", "handle": "danhock", "url": "https://substack.com/@danhock" }],
    "publicationUrl": "https://www.lennysnewsletter.com"
}
```

| Field | Meaning |
| --- | --- |
| `audience` | `everyone` (free), `only_paid`, `founding`, `only_free`; `isPaywalled` is true for paid-only posts |
| `reactions` | total likes (all reaction types) |
| `type` | `newsletter`, `podcast`, `thread`, `video` ... |
| `authors` | the post's public bylines: name, handle, profile link |
| `content` / `contentHtml` | with *Full text* on; `contentIsPreview: true` when it is the free preview of a paid post |
| `changeType` | monitor mode: `new` |
| `source` / `input` | `publication` or `post`, and the line you gave |

**Run report:** every run saves a `SUMMARY` record (Storage → Key-value store) with one entry per line: kind, status, posts read, posts saved, new posts, and a plain-English message (`not_substack` when a site does not run on Substack).

### Pricing

**$2.00 per 1,000 posts saved** - you pay only for results. Full text, engagement and authors are included at no extra charge.

- A newsletter with 300 posts: **$0.60**.
- A daily new-post monitor over 50 newsletters with ~10 new posts a day: about **$0.02 a day**.

Set *Maximum cost per run* in the run options: the Actor saves posts up to that amount and stops cleanly. A post found by two lines in the same run is saved and charged once.

### FAQ

**Does it get paid posts' full text?** No - only what Substack shows to non-subscribers: the free preview (`contentIsPreview: true`). Free posts come in full.

**Does it get comments or subscribers?** No. Only the publication's own posts and their public bylines.

**What does `blocked` mean in the run report?** If Substack ever refuses automated access, the line is marked `blocked` in `SUMMARY`. We do not work around that, so nothing is silently missing.

### Support

Found a newsletter that does not work, or need a field? Open an issue on the **Issues** tab with the link and the run link - we usually fix it fast.

# Actor input Schema

## `urls` (type: `array`):

One per line:<br>• a <b>publication</b> - <code>https://\<name>.substack.com</code>, its custom domain (e.g. <code>https://www.lennysnewsletter.com</code>) or just the name - all its posts<br>• a <b>post</b> - <code>…/p/\<post></code> - one post (e.g. to track its likes and comments over time)

## `maxPostsPerInput` (type: `integer`):

Maximum posts saved per publication. 0 = all posts. In monitor mode: the maximum new posts saved per publication.

## `sort` (type: `string`):

Newest first, or the publication's most popular posts first. Monitor mode always reads newest first.

## `includeContent` (type: `boolean`):

Adds the post body as plain text and HTML. For paid posts this is the free preview Substack shows to non-subscribers (<code>contentIsPreview: true</code>). One extra request per post (slower). No extra charge.

## `onlyNew` (type: `boolean`):

Return only posts that are new since your previous run with the same feed name. The first run is the baseline (it returns the newest posts up to your limit). Ideal for a daily schedule.

## `feedName` (type: `string`):

Keeps separate memories for separate monitors. Stored in your own account (key-value store <code>substack-scraper-state</code>).

## Actor input object example

```json
{
  "urls": [
    "https://www.lennysnewsletter.com",
    "https://astralcodexten.substack.com"
  ],
  "maxPostsPerInput": 50,
  "sort": "new",
  "includeContent": false,
  "onlyNew": false,
  "feedName": "default"
}
```

# Actor output Schema

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

One row per post: postId, title, subtitle, url, publishedAt, type, audience, isPaywalled, wordcount, reactions, restacks, comments, tags, section, authors, coverImage, description, previewText, podcastDurationSec, language, publicationUrl, content, contentHtml, contentIsPreview, changeType, source, input, scrapedAt.

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

One entry per line: kind (publication, post), status (ok, not_found, not_substack, blocked, invalid, error, duplicate, skipped), posts read, saved, new posts, and a plain-English message.

# 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 = {
    "urls": [
        "https://www.lennysnewsletter.com",
        "https://astralcodexten.substack.com"
    ],
    "maxPostsPerInput": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("promur/substack-scraper").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 = {
    "urls": [
        "https://www.lennysnewsletter.com",
        "https://astralcodexten.substack.com",
    ],
    "maxPostsPerInput": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("promur/substack-scraper").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 '{
  "urls": [
    "https://www.lennysnewsletter.com",
    "https://astralcodexten.substack.com"
  ],
  "maxPostsPerInput": 50
}' |
apify call promur/substack-scraper --silent --output-dataset

```

## MCP server setup

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

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/3ZUiwQJ27Jb1sgW6B/builds/rsgHKvAKzpL2JQkhb/openapi.json
