# Substack Scraper: Newsletters, Subscriber Counts & Posts (`wrenfield-data/substack-scraper`) Actor

Scrape Substack newsletters by category leaderboard, keyword or URL: subscriber counts, bestseller rank, paid status, posting cadence, engagement, author socials and website. Plus full post archives with reactions, comments and optional full text. Only-new-posts monitoring. No login. $0.60/1K posts.

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

## Pricing

from $1.40 / 1,000 newsletter profiles

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: Newsletters, Subscriber Counts & Posts

### What does Substack Scraper do?

**Substack Scraper** turns Substack into a clean dataset. Pick a category leaderboard (Technology, Business, Finance and 30+ more), search a topic, or paste newsletter URLs, and get one row per newsletter with **subscriber count, bestseller tier, leaderboard rank, paid status, posting cadence, average engagement, author socials and website**. Switch to posts mode for **full post archives** with reactions, comments, restacks, word count, tags and optional full text.

- **Find newsletters you didn't know about:** category leaderboards run hundreds deep, and keyword search covers posts and author profiles.
- **Sponsor and partner prospecting in one row:** audience size, how often they publish, how engaged readers are, and where to reach the author (X, LinkedIn, Instagram, YouTube, TikTok, website).
- **Posts at $0.60 per 1,000**, full text optional, full archives supported.
- **Only-new-posts monitoring** for daily or weekly digests.
- No login, no cookies, no browser. Works with `*.substack.com` and custom domains.

### What Substack data can you get?

| Newsletter profile | Post |
|---|---|
| Name, URL, subdomain, custom domain, description, language | Title, subtitle, URL, published date |
| Author name, handle, bio, profile URL | Authors and handles |
| Subscriber count (as shown on Substack), paid subscriber range | Audience (free / paid), post type (newsletter, podcast, thread) |
| Bestseller tier, follower count, leaderboard category and rank | Reactions, comments, restacks, word count |
| Paid subscriptions on/off, podcast, recommendations count | Tags, section, podcast URL and duration |
| Last post date, days since last post, posts in last 30 / 90 days, posts per month | Preview text, cover image |
| Average reactions, comments, restacks, word count, paid post share | Full plain-text body (optional) |
| Top recent post | Post ID and slug |
| X, LinkedIn, Instagram, YouTube, TikTok and website links | |

### How to scrape Substack newsletters in 4 steps

1. Choose **Newsletter profiles**, **Posts**, or both.
2. Add **category leaderboards** (e.g. `Technology`, `Finance`), **keywords** (e.g. `AI agents`), or **newsletter URLs / @handles**.
3. Set how deep to go per category and, for posts, how many posts per newsletter or a date window.
4. Run, then export JSON, CSV or Excel, or pull results through the API.

### Input example

```json
{
  "mode": "publications",
  "categories": ["Technology", "Business"],
  "leaderboard": "paid",
  "maxPerCategory": 100,
  "searchTerms": ["SaaS marketing"],
  "newsletters": ["https://www.lennysnewsletter.com", "@packym"]
}
```

Posts from the last 7 days across a list of newsletters, with full text:

```json
{
  "mode": "posts",
  "newsletters": ["lenny", "https://www.platformer.news", "@noahpinion"],
  "postsNewerThanDays": 7,
  "includeFullText": true
}
```

### Output example

```json
{
  "type": "publication",
  "name": "Lenny's Newsletter",
  "url": "https://www.lennysnewsletter.com",
  "authorName": "Lenny Rachitsky",
  "authorHandle": "lenny",
  "subscriberCount": 1200000,
  "subscriberCountText": "1.2M+ subscribers",
  "paidSubscribersRange": "Tens of thousands",
  "bestsellerTier": 10000,
  "leaderboard": {"category": "Business", "ranking": "paid", "rank": 1},
  "paidSubscriptionsEnabled": true,
  "lastPostDate": "2026-11-17",
  "postsLast30Days": 3,
  "postsPerMonth": 3.2,
  "avgReactions": 472.8,
  "avgComments": 11.2,
  "paidPostShare": 0.75,
  "twitterUrl": "https://x.com/lennysan",
  "youtubeUrl": "https://www.youtube.com/c/LennysPodcast",
  "websiteUrl": "https://www.lennyrachitsky.com/"
}
```

```json
{
  "type": "post",
  "title": "35 premium tools free for a year",
  "url": "https://www.lennysnewsletter.com/p/35-premium-tools-free-for-a-yearnow",
  "publishedAt": "2026-11-17T18:02:02.477Z",
  "publication": "Lenny's Newsletter",
  "authors": ["Lenny Rachitsky"],
  "audience": "free",
  "postType": "newsletter",
  "wordcount": 1758,
  "reactions": 220,
  "comments": 13,
  "restacks": 2
}
```

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

Pay per result, no subscription:

| Event | Price | Example |
|---|---|---|
| Newsletter profile | $2.00 / 1,000 (down to $1.20 on higher Apify plans) | Top 500 Technology bestsellers with subscribers and socials: $1.00 |
| Post | $0.60 / 1,000 (down to $0.40) | 10,000 posts from 100 newsletters: $6.00 |
| Post with full text | $1.60 / 1,000 (down to $1.20) | A week of posts from 50 newsletters with full text: a few cents |
| Run start | $0.002 (Free plan), $0.0005 paid plans | |

Error rows and skipped posts are free. Set a max cost per run and the Actor stops cleanly at your limit.

### Use cases

- **Newsletter sponsorships and partnerships:** rank newsletters in your niche by subscribers, cadence and engagement, then reach the author on X, LinkedIn or their website.
- **Influencer and creator research:** find active writers by topic and size, with paid vs free signals.
- **Content and competitor monitoring:** track what the top newsletters in your space publish every day.
- **Market research:** map a category's leaderboard, pricing models and posting habits.
- **AI pipelines:** clean full text from thousands of long-form posts with dates, authors and engagement.

### Monitor new posts on a schedule

Turn on **Only new posts (monitoring)** and schedule the Actor daily or weekly in Apify Console. Each run returns only posts not returned before for the same inputs (seen post IDs are kept in a named key-value store in your account), so you pay only for new rows.

### Use it from code or an AI agent

```bash
curl -X POST "https://api.apify.com/v2/acts/wrenfield-data~substack-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"publications","categories":["Finance"],"maxPerCategory":100}'
```

- **MCP:** add `https://mcp.apify.com/?actors=wrenfield-data/substack-scraper` to Claude, Cursor or any MCP client.
- **Pay per run without an account:** agents can pay for a run through Apify's agentic payments, with no Apify account required.
- **Cap the bill:** set `maxTotalChargeUsd` on the run to limit what a run can charge.
- Rows are flat JSON with the fields documented above, so an agent can use them without post-processing.

### Related tools

- [Website Contact Scraper](https://apify.com/wrenfield-data/website-contact-scraper): pull public business emails and phones from each author's website
- [YouTube Comments Scraper](https://apify.com/wrenfield-data/youtube-comments-scraper) and [YouTube Transcript Scraper](https://apify.com/wrenfield-data/youtube-transcript-scraper): the same research for video creators
- [Google News Scraper](https://apify.com/wrenfield-data/google-news-scraper): bulk news coverage for any topic or brand
- [Telegram Channel Scraper](https://apify.com/wrenfield-data/telegram-channel-scraper): public channel posts and stats

### FAQ

**Where does the subscriber count come from?**
It is the count Substack shows publicly on the author's profile (for example "1.2M+ subscribers"), returned as a number and as the original text. Paid subscriber ranges ("Thousands", "Tens of thousands") are Substack's public bestseller ranges.

**Do I need a Substack account?**
No. Everything comes from public pages and the public JSON that Substack's own web pages load.

**Can I get the full archive of a newsletter?**
Yes. Set **Max posts per newsletter** as high as you need; the Actor pages through the whole archive, newest first.

**What about paywalled posts?**
You get every post's metadata and engagement. With full text on, paywalled posts return the public preview (`bodyIsPreviewOnly: true`). Use **Free posts only** to skip them.

**Does it collect subscriber lists or reader data?**
No. Only newsletter-level and post-level public data, plus the public links authors put on their own profiles.

**What if Substack slows the run down?**
The Actor reads three newsletters at a time with short pauses. If Substack refuses requests, it backs off and, if refusals continue, ends with everything collected so far saved and a clear status message.

**Did it help?** If this tool saved you time, a short review on the Store helps other people find it. Feedback on what's missing is just as welcome.

### Feedback and support

Open an issue on the Issues tab with the input you used. We reply fast and ship fixes quickly.

# Actor input Schema

## `mode` (type: `string`):

Newsletter profiles: one row per newsletter with subscriber count, bestseller tier, leaderboard rank, paid status, posting cadence, average engagement, author socials and website ($2 per 1,000). Posts: one row per post with date, audience, reactions, comments, restacks, word count, tags and preview ($0.60 per 1,000; $1.60 per 1,000 with full text). Both: profiles and posts in one run.

## `categories` (type: `array`):

Substack categories or subcategories, e.g. Technology, Business, Finance, Culture, Health & Wellness, Crypto, Food & Drink, Sports, Politics, Education. Each leaderboard runs hundreds deep.

## `leaderboard` (type: `string`):

Bestsellers ranks newsletters by paid subscribers; Top includes free newsletters.

## `maxPerCategory` (type: `integer`):

How deep to go into each leaderboard (25 per page).

## `searchTerms` (type: `array`):

Find newsletters writing about these topics (Substack search over posts and profiles), e.g. 'AI agents', 'SaaS marketing', 'personal finance'.

## `maxPerSearch` (type: `integer`):

Maximum newsletters to collect for each keyword.

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

Specific newsletters: https://name.substack.com, custom domains (www.lennysnewsletter.com), subdomains (lenny) or author handles (@lenny).

## `maxPublications` (type: `integer`):

Cap on newsletters processed per run, across all sources.

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

Posts mode: how many recent posts to return per newsletter (newest first). Full archives supported.

## `postsNewerThanDays` (type: `integer`):

Posts mode: skip older posts (e.g. 7 for a weekly digest).

## `postsSince` (type: `string`):

Posts mode: YYYY-MM-DD. Used when 'last N days' is empty.

## `freePostsOnly` (type: `boolean`):

Skip paywalled posts.

## `includeFullText` (type: `boolean`):

Adds bodyText (clean plain text, ready for AI pipelines) for each post. Paywalled posts return the public preview. $1.60 per 1,000 posts instead of $0.60.

## `onlyNewPosts` (type: `boolean`):

Remembers posts returned by earlier runs with the same inputs and returns only new ones. Schedule it daily or weekly.

## Actor input object example

```json
{
  "mode": "publications",
  "categories": [
    "Technology"
  ],
  "leaderboard": "paid",
  "maxPerCategory": 25,
  "maxPerSearch": 25,
  "maxPublications": 200,
  "maxPostsPerNewsletter": 20,
  "freePostsOnly": false,
  "includeFullText": false,
  "onlyNewPosts": false
}
```

# Actor output Schema

## `results` (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 = {
    "mode": "publications",
    "categories": [
        "Technology"
    ],
    "maxPerCategory": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("wrenfield-data/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 = {
    "mode": "publications",
    "categories": ["Technology"],
    "maxPerCategory": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("wrenfield-data/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 '{
  "mode": "publications",
  "categories": [
    "Technology"
  ],
  "maxPerCategory": 25
}' |
apify call wrenfield-data/substack-scraper --silent --output-dataset

```

## MCP server setup

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