# Substack Scraper: Posts, Comments & Subscribers (`rowfinch/substack-scraper`) Actor

Scrape Substack newsletters: every post with its full text, likes, comments and restacks, comment threads, and each newsletter's subscriber count and prices. Search all of Substack by keyword. No login. $0.80 per 1,000 posts, text included.

- **URL**: https://apify.com/rowfinch/substack-scraper.md
- **Developed by:** [Rowfinch](https://apify.com/rowfinch) (community)
- **Categories:** News, Social media, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 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

Get posts from any Substack newsletter, with the full text, likes, comments and restacks, plus the comment threads and each newsletter's subscriber count, prices and author. Read a newsletter's whole archive, a period, single posts, or search all of Substack by keyword. Works with custom domains. No login, no API key.

**$0.80 per 1,000 posts, text included.**

### What it's for

- **Content and trend research**: what the top writers in a niche publish, and which posts get the most likes, comments and restacks.
- **Sponsorship and partnership prospecting**: find newsletters on a topic with `searchQueries`, then sort them by subscribers and price.
- **Competitor and media monitoring**: every new post of the newsletters you follow, on a schedule with `since: 1 day`.
- **Audience research**: what readers say in the comments, with likes and replies per comment.
- **Datasets for AI and research**: clean plain text with dates, authors, tags and links, ready for a model or a spreadsheet.

### Input

| Field | What it does |
|---|---|
| `newsletters` | Names or links: `noahpinion`, `noahpinion.substack.com`, `https://www.noahpinion.blog`. A post link (`https://www.noahpinion.blog/p/…` or an `open.substack.com` share link) reads that one post |
| `searchQueries` | Posts across all of Substack that match each query |
| `maxPostsPerNewsletter` | Newest first (default 50; 0 reads the whole archive) |
| `maxSearchResults` | Posts per query (default 50) |
| `since` / `until` | A period: `2026-10-01` or `30 days` |
| `includeContent` | The post's text (default on). Paid posts give the part before the paywall |
| `includeComments` | Comments and replies, one row each (default off) |
| `maxCommentsPerPost` | Top comments first, each followed by its replies (default 100) |
| `includeNewsletterInfo` | One row per newsletter with subscribers and prices (default on) |
| `onlyFree` | Leaves out posts for paying subscribers |
| `postTypes` | Articles, podcasts, videos or threads (default all) |
| `maxItems` | Most rows in the run, all kinds together (0 means no limit) |

Coming from another Substack scraper? `urls`, `startUrls`, `keywords`, `maxPostsPerNewsletter`, `maxSearchResultsPerKeyword`, `includePublicationInfo`, `startDate`, `endDate` and `contentType` are read too, so saved inputs keep working.

### Output

One dataset; `dataType` tells posts, comments and newsletters apart.

A post:

```json
{
  "dataType": "post",
  "id": 221850619,
  "url": "https://www.theargumentmag.com/p/what-economists-just-dont-get-about",
  "newsletter": "www.theargumentmag.com",
  "newsletterName": "The Argument",
  "title": "What economists just don’t get about climate change",
  "subtitle": "The case against cheap climate policy",
  "date": "2026-10-26T10:01:16.877Z",
  "type": "newsletter",
  "isPaid": false,
  "audience": "everyone",
  "authors": [{ "name": "Noah Kaufman", "handle": "noahkaufman", "url": "https://substack.com/@noahkaufman" }],
  "tags": ["Toward abundance"],
  "preview": "Economists working on climate change are used to being ignored…",
  "text": "Economic studies on climate policies tend to ask which policies cut the next ton of emissions most cheaply. (Illustration by The Argument using ChatGPT; photo by Jon Cherry/Getty Images)\n\nEconomists working on climate change are used to being ignored…",
  "isTextComplete": true,
  "wordCount": 2498,
  "reactions": 115,
  "comments": 10,
  "restacks": 18,
  "coverImage": "https://substackcdn.com/image/fetch/…",
  "images": ["https://substackcdn.com/image/fetch/…/58fbd8fe-13cf-4664-9672-8df90d746788_1536x1024.png"],
  "links": ["https://www.eia.gov/todayinenergy/detail.php?id=48296", "https://www.sciencedirect.com/science/article/pii/S030142151301152X"],
  "podcastUrl": null,
  "podcastDurationSeconds": null,
  "language": "en",
  "input": "climate policy"
}
```

A comment:

```json
{
  "dataType": "comment",
  "id": 370599253,
  "url": "https://www.theargumentmag.com/p/what-economists-just-dont-get-about/comment/370599253",
  "postUrl": "https://www.theargumentmag.com/p/what-economists-just-dont-get-about",
  "newsletter": "www.theargumentmag.com",
  "author": "Rustbelt Andy",
  "authorHandle": "rustbeltandy",
  "date": "2026-10-26T10:27:36.807Z",
  "text": "The strong version of this argument is much simpler. Carbon prices aren't credible over 30-year investment horizons…",
  "reactions": 32,
  "replies": 0,
  "parentId": null,
  "depth": 0,
  "input": "climate policy"
}
```

A newsletter:

```json
{
  "dataType": "newsletter",
  "id": 35345,
  "name": "Noahpinion",
  "url": "https://www.noahpinion.blog",
  "subdomain": "noahpinion",
  "customDomain": "www.noahpinion.blog",
  "description": "Economics and other interesting stuff",
  "author": "Noah Smith",
  "authorHandle": "noahpinion",
  "authorBio": "Econ blogger",
  "language": "en",
  "logoUrl": "https://substackcdn.com/image/fetch/…",
  "subscribers": 466000,
  "subscribersText": "Over 466,000 subscribers",
  "paidSubscribersText": "Tens of thousands of paid subscribers",
  "acceptsPayments": true,
  "currency": "USD",
  "monthlyPrice": 10,
  "yearlyPrice": 100,
  "foundingMemberPrice": 420,
  "createdAt": "2020-03-28T03:32:51.086Z",
  "twitter": "Noahpinion",
  "input": "noahpinion"
}
```

`parentId` and `depth` rebuild the comment threads. `subscribers` is Substack's own public figure; newsletters that hide it get `null`.

Newsletters that can't be read get a row with the reason, free of charge:

```json
{ "input": "nope-this-does-not-exist", "error": "Not found on Substack: check the address" }
```

### Price

- **$0.80 per 1,000 posts**, text included
- **$0.30 per 1,000 comments**
- **$0.002 per newsletter row** (subscribers, prices, author)
- Newsletters that can't be read: free

| Run | Cost |
|---|---|
| 10 newsletters, last 50 posts each, with details | $0.42 |
| 1 newsletter, whole archive of 2,000 posts | $1.60 |
| 1,000 posts with 100 comments each | $30.80 |

A run stops at the maximum cost you set for it. On Apify's free plan, a run returns up to 100 results.

### FAQ

**Do I need a Substack account?**
No. It reads what Substack shows anyone who opens the newsletter.

**What about paid posts?**
You get the title, stats and the part Substack shows before the paywall, marked with `isPaid: true` and `isTextComplete: false`. Their comments are for subscribers only, so they come empty.

**Does it work with custom domains?**
Yes: `https://www.noahpinion.blog` and `noahpinion` read the same newsletter.

**How far back can it go?**
To the newsletter's first post. `maxPostsPerNewsletter: 0` reads the whole archive; `since` stops at a date.

**How fast is it?**
About 25 posts per archive page, several posts and newsletters at a time: a few hundred posts a minute with text.

# Actor input Schema

## `newsletters` (type: `array`):

Names or links: noahpinion, noahpinion.substack.com, https://www.noahpinion.blog. A post link (…/p/post-name) reads that post only.

## `searchQueries` (type: `array`):

Posts across all of Substack that match each query, in Substack's order of relevance.

## `maxPostsPerNewsletter` (type: `integer`):

Newest first. 0 reads the whole archive.

## `maxSearchResults` (type: `integer`):

0 reads every result Substack returns.

## `since` (type: `string`):

A date like 2026-10-01 or a period like 30 days.

## `until` (type: `string`):

Leaves out the newest posts, for reading a past period.

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

The full text of free posts, and the part before the paywall of paid ones.

## `includeComments` (type: `boolean`):

Each post's comments and replies, one row each.

## `maxCommentsPerPost` (type: `integer`):

Top comments first, each followed by its replies. 0 reads them all.

## `includeNewsletterInfo` (type: `boolean`):

One row per newsletter: subscribers, prices, author, description and start date.

## `onlyFree` (type: `boolean`):

Leaves out posts for paying subscribers.

## `postTypes` (type: `array`):

Leave empty for all.

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

Posts, comments and newsletters together. 0 means no limit.

## Actor input object example

```json
{
  "newsletters": [
    "noahpinion"
  ],
  "maxPostsPerNewsletter": 10,
  "maxSearchResults": 50,
  "includeContent": true,
  "includeComments": false,
  "maxCommentsPerPost": 100,
  "includeNewsletterInfo": true,
  "onlyFree": false,
  "maxItems": 0
}
```

# Actor output Schema

## `results` (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 = {
    "newsletters": [
        "noahpinion"
    ],
    "maxPostsPerNewsletter": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfinch/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 = {
    "newsletters": ["noahpinion"],
    "maxPostsPerNewsletter": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("rowfinch/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 '{
  "newsletters": [
    "noahpinion"
  ],
  "maxPostsPerNewsletter": 10
}' |
apify call rowfinch/substack-scraper --silent --output-dataset

```

## MCP server setup

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