# Substack Scraper: Posts, Full Text & Notes (`talllabs/substack-posts-scraper`) Actor

Posts from any Substack with likes, comments, word count, paywall flag and full text of free posts. Custom domains, date filter, optional Notes. No login.

- **URL**: https://apify.com/talllabs/substack-posts-scraper.md
- **Developed by:** [Tall Tom Trading Ltd](https://apify.com/talllabs) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 post saveds

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 Scraper: Posts, Full Text & Notes

**Scrape posts from any Substack newsletter into a clean table: title, subtitle, date, likes, comments, restacks, word count, paywall status and the full text of free posts.** Works with `name.substack.com` addresses and with custom domains that run on Substack. Optionally add the authors' latest Substack Notes. No login, no browser, $1.50 per 1,000 posts with full text.

*Not affiliated with or endorsed by Substack Inc.*

### Example output

Real rows from the example input, run on 10 Nov 2026 (a few columns shown):

| publicationName | title | publishedAt | wordCount | reactionCount | audience |
|---|---|---|---|---|---|
| Noahpinion | Noah Smith and Azeem Azhar discuss the AI boom | 2026-11-09 | 80 | 71 | everyone |
| Noahpinion | Noah, Brad DeLong, and Dan Wang discuss the Anthropic IPO | 2026-11-09 | 574 | 73 | everyone |
| Noahpinion | Why I’m becoming a China bear | 2026-11-07 | 3756 | 509 | only_paid |

### What does Substack Scraper do?

- **Reads a publication's archive**, newest posts first, using the same public JSON that Substack's own website loads.
- **Gets the full text of free posts** (and the free preview of paid posts) as plain text, ready for analysis or AI tools.
- **Adds engagement numbers**: likes (reactions), comments and restacks per post.
- **Optionally adds Notes** by each publication's authors.
- **Falls back to the public RSS feed** if the JSON is not available, so you still get the latest posts.
- **Date filter**: only posts published after a date you choose. Great for weekly monitoring.

### What can I use it for?

- Tracking competitors' or industry newsletters and what gets the most likes.
- Building a searchable archive or an AI knowledge base from newsletters you read.
- Content research: which topics, lengths and formats perform best on Substack.
- Media monitoring of mentions in newsletters.

### Input

| Field | What it does |
|---|---|
| `publications` | One per line: `https://name.substack.com`, a custom domain on Substack, any post URL, or just `name`. |
| `maxPostsPerPublication` | Newest first; stop after this many posts (and notes per author). `0` = all. Default 50. |
| `publishedAfter` | Only posts and notes published after this date (`YYYY-MM-DD`). |
| `includeContent` | Add the full text of free posts (one extra request per post). On by default. |
| `includeNotes` | Also return the latest Notes by the publication's authors. |
| `includeAuthorDetails` | Add author names, handles, bios and profile links. Off by default (personal data). |
| `redactContactDetails` | Hide email addresses and phone numbers in post and note text (on by default). |

Example input:

```json
{
  "publications": ["https://on.substack.com", "https://www.astralcodexten.com", "noahpinion"],
  "maxPostsPerPublication": 20,
  "publishedAfter": "2026-10-01",
  "includeContent": true,
  "includeNotes": false,
  "includeAuthorDetails": false
}
```

### Output

One row per post (`"type": "post"`) or note (`"type": "note"`). Fields Substack does not provide are `null`.

```json
{
  "type": "post",
  "id": "150000003",
  "title": "A free post about writing",
  "subtitle": "Notes on drafting every day",
  "url": "https://example.substack.com/p/free-post",
  "publicationName": "The Example Letter",
  "publicationUrl": "https://example.substack.com",
  "publishedAt": "2026-10-30T13:00:00Z",
  "audience": "everyone",
  "isPaywalled": false,
  "postType": "newsletter",
  "wordCount": 1200,
  "reactionCount": 87,
  "commentCount": 14,
  "restackCount": 5,
  "coverImageUrl": "https://substackcdn.com/image/fetch/example-cover-1.jpg",
  "description": "Notes on drafting every day",
  "contentText": "Write every day.\n\nWhy\n\nBecause practice compounds.",
  "sharedUrl": null,
  "authors": [],
  "source": "api",
  "scrapedAt": "2026-11-03T08:00:00Z"
}
```

`audience` is `everyone`, `only_paid`, `founding` or `only_free`. Note rows have no title; many notes only share a post, so `contentText` is empty and `sharedUrl` holds the shared link. `source` is `api` or `rss` (RSS rows have fewer fields). With `includeAuthorDetails` on, `authors` holds `name`, `handle`, `bio` and `profileUrl` for each byline. A per-publication report is saved as `RUN_SUMMARY` in the key-value store. Export as JSON, CSV, Excel or via the Apify API.

### How much does it cost to scrape Substack?

Pay-per-event pricing. You pay only for what you get:

- **How much per post?** $1.50 per 1,000 posts ($0.0015 per post), full text included, less on Apify's Silver and Gold plans.
- **How much per note?** $1.00 per 1,000 notes ($0.001 per note). Notes are off unless you turn them on.
- **What does a typical run cost?** 10 newsletters x 50 posts = 500 posts = $0.75.
- **What about a weekly check?** 20 newsletters with about 2 new posts a week, using `publishedAfter`: 40 posts = $0.06 a week.
- **Can I cap my spend?** Yes. Set a maximum cost per run. The Actor stops cleanly at the cap and keeps everything saved so far.

### FAQ

**Can it read paid posts?** No. It never logs in. For paid posts you get the title, stats and the free preview that Substack shows to everyone. `isPaywalled` tells you which posts are paid.

**Does it work with custom domains?** Yes, if the site runs on Substack (for example `www.astralcodexten.com`). Give the address and the Actor reads it the same way.

**Why do some rows say `source: rss`?** If Substack's JSON is not available for a site, the Actor reads the public RSS feed instead. RSS has the latest posts (often about 20) and no like or comment counts.

**Why are author names empty?** Author details are personal data, so they are off by default. Turn on `includeAuthorDetails` if you have a lawful reason to process them.

**How fast is it?** It waits about a second between requests to each site to stay polite. 50 posts with full text takes about a minute per publication. Turn off `includeContent` for a much faster list.

### Is it legal to scrape Substack?

This Actor reads only posts that writers publish publicly, through the same public pages and feeds that any visitor or RSS reader uses. It does not log in, does not get around paywalls and respects each site's robots.txt.

**Personal data.** This Actor is built for business data: newsletter posts. It does not read profiles, logins or private areas, and author details are off unless you turn them on. Posts and notes can still mention people (an author's name, a signature with an email). Contact details in text are masked by default (`redactContactDetails`). If you turn masking off or author details on, you are the data controller for what you collect and must have a lawful basis under UK GDPR / GDPR. Tall Tom Trading Ltd processes the data only to deliver your run and keeps no copy.

The text of posts is the writers' copyrighted work: summarising and analysing is usually fine, republishing whole posts usually is not. You are responsible for how you use the data. If in doubt, ask a lawyer.

# Changelog

This Actor's version history is a separate document: https://apify.com/talllabs/substack-posts-scraper/changelog.md

# Actor input Schema

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

One publication per line: https://name.substack.com, a custom domain on Substack (https://www.example.com), any post URL from it, or just the subdomain (name).

## `maxPostsPerPublication` (type: `integer`):

Newest posts first. Stop after this many posts (and this many notes per author) from each publication. 0 means no limit.

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

Optional date (YYYY-MM-DD). Only posts and notes published after this date are returned. Leave empty for no date limit.

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

Add the full text of free posts (for paid posts, the free preview). Needs one extra request per post. Turn off for a faster list of posts.

## `includeNotes` (type: `boolean`):

Also return the latest Substack Notes by each publication's authors. Charged per note.

## `includeAuthorDetails` (type: `boolean`):

Add each post's author names, handles, bios and profile links. Off by default because these are personal data. Turn on only if you have a lawful reason to process them.

## `redactContactDetails` (type: `boolean`):

Mask email addresses and phone numbers in post and note text. On by default. If you turn it off, you are responsible for a lawful basis to process them.

## Actor input object example

```json
{
  "publications": [
    "https://on.substack.com",
    "https://www.astralcodexten.com",
    "https://www.noahpinion.blog"
  ],
  "maxPostsPerPublication": 5,
  "includeContent": true,
  "includeNotes": false,
  "includeAuthorDetails": false,
  "redactContactDetails": true
}
```

# Actor output Schema

## `items` (type: `string`):

No description

## `summary` (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": [
        "https://on.substack.com",
        "https://www.astralcodexten.com",
        "https://www.noahpinion.blog"
    ],
    "maxPostsPerPublication": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("talllabs/substack-posts-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 = {
    "publications": [
        "https://on.substack.com",
        "https://www.astralcodexten.com",
        "https://www.noahpinion.blog",
    ],
    "maxPostsPerPublication": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("talllabs/substack-posts-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 '{
  "publications": [
    "https://on.substack.com",
    "https://www.astralcodexten.com",
    "https://www.noahpinion.blog"
  ],
  "maxPostsPerPublication": 5
}' |
apify call talllabs/substack-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,talllabs/substack-posts-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/MXcq0869uoIw3p6Xd/builds/O5mshluCH0jNlOuXQ/openapi.json
