# Substack Scraper - Newsletters, Subscribers, Pricing & Posts (`yugenox/substack-scraper`) Actor

Scrape Substack newsletters by category (Top, Bestseller, Rising), search or link: subscriber counts and bands, paid plans and prices, rank, author, posting frequency and engagement. Or scrape posts with likes, comments, paywall flag and full text. No login.

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

## Pricing

from $2.00 / 1,000 newsletters

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 - Newsletters, Subscribers, Pricing & Posts

Find and size Substack newsletters, and pull their posts. List any Substack category (Top, Bestseller or Rising), search Substack for a topic, or paste newsletter links, and get one clean row per newsletter: name, author, category rank, subscriber count and band, paid subscriber band, Bestseller badge, monthly and yearly price, what free and paid readers get, language, launch date and, optionally, how often it posts and how engaged its readers are. Switch to **Posts** to get each newsletter's newest posts with likes, comments, word count, paywall flag and (optionally) the full text.

No login, no cookies, no browser.

### What you can use it for

- **Newsletter sponsorships**: build a shortlist of newsletters in your niche with audience size, paid band, posting frequency and likes per 1,000 subscribers, then pitch the ones that fit your budget.
- **Influencer and creator marketing**: find the top writers in a category, with their X handle and Substack profile.
- **Market research**: see who leads a category, what they charge, and what paid subscribers get.
- **Media monitoring and PR**: follow what the top newsletters in your space publish, with engagement per post.
- **Content research**: collect posts on a topic with their likes and comments to see what resonates.

### Input

| Field | What it does |
|---|---|
| **What to scrape** | `Publications` (one row per newsletter) or `Posts` (one row per post). |
| **Categories** | Substack categories, e.g. Technology, Business, Finance, Health & Wellness (32 in total). |
| **Ranking** | `Top` (the category's main list, the deepest), `Bestseller` (paid leaderboard, top 100) or `Rising` (trending, top 100). |
| **Search terms** | Topics to search, e.g. `AI agents`, `personal finance`. Publications: the newsletters writing about it. Posts: the matching posts. |
| **Substack links** | `https://name.substack.com`, a custom domain (`https://www.lennysnewsletter.com`) or a post link (`…/p/post-slug`). |
| **Max items** | Rows for the whole run, shared fairly between your categories, searches and links. |
| **Include posting activity** | Publications: last post date, posts in the last 30 / 90 days, average days between posts, average likes and comments, likes per 1,000 subscribers, share of paywalled posts, 5 latest titles. |
| **Max posts per newsletter** | Posts: how many of the newest posts per newsletter. |
| **Include full post text** | Posts: the full text (paywalled posts: the free preview). |
| **Filters** | Minimum subscribers, paid newsletters only, languages (publications); posted within N days (posts). |

Example: the 20 top Technology newsletters

```json
{ "mode": "publications", "categories": ["technology"], "maxItems": 20 }
```

Example: the newest 10 posts of two newsletters, with full text

```json
{ "mode": "posts", "startUrls": ["https://www.lennysnewsletter.com", "https://blog.bytebytego.com"], "maxPostsPerPublication": 10, "includePostBodies": true }
```

### Output

A real publication row (trimmed), scraped 2026-11-07:

```json
{
  "type": "publication",
  "publicationId": 458709,
  "name": "The Pragmatic Engineer",
  "url": "https://newsletter.pragmaticengineer.com",
  "authorName": "Gergely Orosz",
  "twitterHandle": "GergelyOrosz",
  "category": "Technology",
  "source": "Top",
  "rank": 2,
  "subscriberCount": 1100000,
  "subscriberCountText": "Over 1,100,000 subscribers",
  "audienceSize": "1M+",
  "subscriberBand": "Millions of subscribers",
  "paidSubscriberBand": "Tens of thousands of paid subscribers",
  "bestseller": "Bestseller (tens of thousands of paid subscribers)",
  "isPaid": true,
  "monthlyPrice": 15,
  "yearlyPrice": 150,
  "priceCurrency": "USD",
  "language": "en",
  "hasPodcast": true,
  "launchedAt": "2021-08-30T11:24:02.082Z"
}
```

With **Include posting activity** a row also gets, for example: `"lastPostAt": "2026-11-04T20:28:09.006Z", "postsLast30Days": 3, "postsLast90Days": 7, "avgDaysBetweenPosts": 14.7, "avgReactionsPerPost": 776.9, "avgCommentsPerPost": 14.4, "reactionsPer1kSubscribers": 2.9, "paidPostShare": 0.96`.

A real post row (trimmed):

```json
{
  "type": "post",
  "title": "All of the Lenny & Friends Summit talks are now online!",
  "url": "https://www.lennysnewsletter.com/p/all-of-the-lenny-and-friends-summit",
  "publishedAt": "2026-09-29T13:15:57.512Z",
  "audience": "everyone",
  "isPaywalled": false,
  "wordCount": 1276,
  "reactions": 294,
  "comments": 9,
  "publicationName": "Lenny's Newsletter",
  "bodyText": "👋 Hey there, I’m Lenny. Each week, I share deeply researched product, growth, and career advice…",
  "bodyIsTruncated": false
}
```

Every row has every field (empty ones are `null`), so the table and CSV/Excel exports keep the same columns.

### Pricing

Pay per result, no subscription:

| What | Price |
|---|---|
| Newsletter (publication row) | **$2.00 per 1,000** |
| Post | **$1.50 per 1,000** |
| Posting activity (optional, per newsletter) | $1.00 per 1,000 |
| Full post text (optional, per post) | $1.00 per 1,000 |
| Run start | $0.003 per run |

So 1,000 newsletters with activity cost $3.00; 1,000 posts with full text cost $2.50. Rows left out by your filters, duplicates and anything over your Max items are never charged. Pasted post links include their text at no extra charge.

### Tips

- **Subscriber counts are Substack's own rounded figures** ("328K+" becomes 328000). Some newsletters hide their count; those rows have `subscriberCount: null` but often still show a paid band.
- **Paid subscriber numbers are bands**, as Substack shows them ("Thousands of paid subscribers"). `paidSubscribersMagnitude` gives the order of magnitude as a number for sorting.
- **Bestseller and Rising lists hold the top 100** of each category; **Top** goes much deeper.
- **For sponsorship shortlists**, combine a category, `minSubscribers` and Include posting activity, then sort by `reactionsPer1kSubscribers` and `postsLast30Days`.
- **Some newsletters opt out of automated tools** in their own settings. Their directory row (name, subscribers, pricing, rank) is still delivered, but their posts and posting activity are not read; the run's status message says how many.

### FAQ

**Is it legal to scrape Substack?**
This actor only reads public pages and public data that Substack shows to any visitor without an account, and it follows each site's robots.txt, including newsletters that opt out of automated tools. Post texts are the authors' work: use them for analysis and research, and respect copyright if you republish anything. If you are unsure about your use case, ask a lawyer.

**Does it access any private data?**
No. No login, no subscriber lists, no paywalled content beyond the public free preview, and no reader data. Author names, bios and X handles are the public identity a writer publishes under. E-mail addresses and phone numbers inside post texts are masked.

**Why do some rows have no posting activity?**
The newsletter opted out of automated tools in its robots.txt, or did not answer. Activity is only charged when it was read.

**Can I get every post a newsletter ever published?**
Yes: Posts mode with a newsletter link and a high Max posts per newsletter. The run goes back through the archive, newest first.

**How fast is it?**
A category page of 25 newsletters takes well under a second; 1,000 newsletters take about a minute (a few minutes with posting activity).

# Actor input Schema

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

Publications = one row per newsletter (name, author, category, subscriber count and band, paid plans and prices, rank, description, launch date; optional posting activity). Posts = one row per post (title, date, reactions, comments, paywall, word count; optional full text).

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

Substack categories to list (e.g. Technology, Business, Finance). Publications mode: the category's newsletters in ranking order. Posts mode: the newest posts of those newsletters.

## `ranking` (type: `string`):

Which Substack list to read for each category: Top (the category's main list, the deepest), Bestseller (paid leaderboard, top 100) or Rising (trending leaderboard, top 100).

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

Words to search Substack for, e.g. "AI agents", "real estate investing". Publications mode: the newsletters publishing posts that match. Posts mode: the matching posts.

## `startUrls` (type: `array`):

Newsletter links (https://name.substack.com or a custom domain such as https://www.lennysnewsletter.com) or post links (…/p/post-slug). Publications mode: the newsletter's profile. Posts mode: its newest posts (newsletter link) or that post (post link).

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

Maximum rows for the whole run, shared fairly between your categories, searches and links. 0 = no limit.

## `includeActivity` (type: `boolean`):

Reads each newsletter's newest 25 posts to add: last post date, posts in the last 30 / 90 days, average days between posts, average reactions and comments per post, reactions per 1,000 subscribers, share of paywalled posts and the 5 latest titles. Charged as "Posting activity" per newsletter (see Pricing).

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

Posts mode: how many of the newest posts to take from each newsletter (links and category newsletters).

## `includePostBodies` (type: `boolean`):

Posts mode: reads each post to add its full text (paywalled posts: the free preview only). Charged as "Post text" per post (see Pricing). Pasted post links include the text at no extra charge.

## `minSubscribers` (type: `integer`):

Publications: only newsletters showing at least this many subscribers (newsletters that hide their count are left out when this is set). Left-out rows are not charged.

## `paidOnly` (type: `boolean`):

Publications: only newsletters with an active paid subscription.

## `languages` (type: `array`):

Publications: only newsletters in these languages (two-letter codes, e.g. en, es, de). Empty = all.

## `postedWithinDays` (type: `integer`):

Posts: only posts published in the last N days.

## `proxyConfiguration` (type: `object`):

Apify Proxy (datacenter) is the default and comes with every Apify plan. Substack does not need residential IPs, so a Residential choice here runs on datacenter instead; your own proxy URLs are used as given.

## Actor input object example

```json
{
  "mode": "publications",
  "categories": [
    "technology"
  ],
  "ranking": "top",
  "maxItems": 20,
  "includeActivity": false,
  "maxPostsPerPublication": 10,
  "includePostBodies": false,
  "paidOnly": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped publications or posts.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, counts, requests and skipped inputs.

# 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"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/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"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/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"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/substack-scraper --silent --output-dataset

```

## MCP server setup

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