# Substack Scraper (`automly/substack-scraper`) Actor

Scrape Substack newsletters: every post with its full text, likes, comments, restacks, authors and tags, from newsletter, post or profile links; plus newsletters found by keyword. No login.

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

## Pricing

from $0.22 / 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.
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 & Newsletters

### What is Substack Scraper?

**Substack Scraper** is a tool that lets you **scrape Substack newsletters**: every post with its full text, title, subtitle, date, likes, comments, restacks, authors, tags and cover image, from newsletter links, post links or writer profiles, and **find newsletters by keyword** with their author, subscriber count and paid plans. Paste newsletter links, click **Start**, and download the posts as Excel, CSV or JSON.

- 📰 **Whole archives:** read a newsletter's posts newest first or most liked first, up to its first post
- 📝 **Full text:** each post's text and HTML (the free preview for paid posts)
- 📊 **Engagement:** likes, comments, restacks and word count for every post
- 🔎 **Newsletter search:** newsletters for any keyword, with author, subscribers and paid plans
- 🔓 **No login:** no Substack account, cookies or API key needed

### What can Substack Scraper do?

- **Scrape all posts of a Substack newsletter**, on substack.com or on its own domain (like lennysnewsletter.com)
- **Get a post's full text** from its link
- **Read a writer's newsletter** from their profile link (substack.com/@name)
- **Find newsletters** on a topic and see their subscriber counts
- **Track new posts** of the newsletters you follow with a scheduled run
- Export to Excel, CSV, JSON, HTML or XML, or send the data to Google Sheets, Make, Zapier and more

### What data can you extract from Substack?

| | | |
|---|---|---|
| 📝 Title and subtitle | 📅 Publish date | 🔗 Post link |
| 📄 Full text and HTML | ❤️ Likes | 💬 Comments |
| 🔁 Restacks | 🔢 Word count | 🏷️ Tags and section |
| ✍️ Authors with profile links | 💳 Free or paid post | 🖼️ Cover image |
| 🎧 Podcast audio link and length | 📰 Newsletter name, author and logo | 👥 Subscribers (as Substack shows them) |

### How to scrape Substack

1. [Create a free Apify account](https://console.apify.com/sign-up) (no credit card needed).
2. Open **Substack Scraper**.
3. Paste newsletter links, post links or writer profiles, one per line, or type keywords to find newsletters.
4. Set how many posts you want per newsletter, and click **Start**.
5. When the run finishes, download the posts as Excel, CSV, JSON, HTML or XML.

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

You pay per post or newsletter saved, plus $0.0005 when a run starts:

| Apify plan | Posts per 1,000 | Newsletters per 1,000 |
|---|---|---|
| Free | $0.29 | $0.29 |
| Starter (Bronze) | $0.27 | $0.27 |
| Scale (Silver) | $0.25 | $0.25 |
| Business (Gold) and higher | $0.22 | $0.22 |

Full text is included at no extra cost. Platform usage is included in these prices, so you pay nothing else for the run.

Example: 1,000 posts with their full text cost $0.29 on the Free plan and $0.22 on Business.

Every Apify account gets **$5 of free usage each month**, enough for more than 15,000 posts.

### ⬇️ Input

| Setting | What it does |
|---|---|
| Newsletter or post links | Newsletters (`https://www.lennysnewsletter.com`, `https://garymarcus.substack.com` or just `garymarcus`), post links (`.../p/<post>`) or writer profiles (`https://substack.com/@name`) |
| Max posts per newsletter | How many posts to read from each newsletter; 0 for the whole archive |
| Order | Newest first or most liked first |
| Include the full text | Each post's text and HTML; off for titles, dates and counts only (faster) |
| Find newsletters by keyword | Keywords to find newsletters, one per line |
| Max newsletters per keyword | How many newsletters to take from each keyword (up to about 100) |

Example: the 100 newest posts of two newsletters, with their text, and newsletters about history:

```json
{
  "urls": ["https://www.lennysnewsletter.com", "garymarcus"],
  "maxPostsPerNewsletter": 100,
  "searchQueries": ["history"]
}
```

### ⬆️ Output

Each post is one row (text and HTML shortened here):

```json
{
  "type": "post",
  "id": "224824795",
  "url": "https://garymarcus.substack.com/p/what-could-possibly-go-wrong-nationwide",
  "title": "What could possibly go wrong? Nationwide FAA Ground Stop edition",
  "subtitle": "A sign of things to come?",
  "slug": "what-could-possibly-go-wrong-nationwide",
  "postDate": "2026-11-14T00:20:10.924Z",
  "postType": "newsletter",
  "audience": "everyone",
  "isPaid": false,
  "authors": [{"id": "14807526", "name": "Gary Marcus", "handle": "garymarcus", "url": "https://substack.com/@garymarcus"}],
  "publicationId": "888615",
  "newsletterUrl": "https://garymarcus.substack.com",
  "sectionName": null,
  "tags": [],
  "description": "A sign of things to come?",
  "previewText": "Breaking news from EWR, where I have basically spent most of the last 36 hours...",
  "text": "Breaking news from EWR, where I have basically spent most of the last 36 hours...\nNow for the backstory...",
  "html": "<p>Breaking news from EWR, where I have basically spent most of the last 36 hours...</p>...",
  "wordCount": 208,
  "reactionCount": 436,
  "commentCount": 134,
  "restackCount": 74,
  "coverImage": "https://substackcdn.com/image/fetch/...",
  "podcastUrl": null,
  "podcastDurationSeconds": null,
  "language": "en",
  "contentIncluded": true,
  "source": "garymarcus",
  "scrapedAt": "2026-11-15T14:57:15Z"
}
```

A newsletter found by keyword is one row too:

```json
{
  "type": "publication",
  "id": "11538429",
  "url": "https://womenofhistory.substack.com",
  "name": "Women of History",
  "subdomain": "womenofhistory",
  "customDomain": null,
  "description": "Discover extraordinary women who shaped history and the forgotten stories behind their lives...",
  "authorName": "Women of History",
  "authorHandle": "womenofhistory",
  "authorUrl": "https://substack.com/@womenofhistory",
  "logoUrl": "https://substackcdn.com/image/fetch/...",
  "language": "en",
  "publicationType": "newsletter",
  "hasPaidPlans": true,
  "subscribers": "Over 18,000 subscribers",
  "ranking": "Launched a month ago",
  "hasPodcast": true,
  "firstPostDate": "2026-10-06T16:10:19.876Z",
  "createdAt": "2026-10-06T15:02:15.592Z",
  "rank": 1,
  "source": "history",
  "scrapedAt": "2026-11-15T14:57:15Z"
}
```

The **Posts** and **Newsletters** tabs show them as tables. Each run also saves a short report that lists any newsletter, post or profile that does not exist.

### How can I use Substack data?

- **Content research:** read what the top newsletters in your niche write about, and which posts get the most likes and comments
- **Newsletter discovery:** find newsletters on a topic with their subscriber counts, for sponsorships, guest posts or partnerships
- **Archiving and analysis:** export a newsletter's whole archive with its text for search and analysis
- **Monitoring:** follow competitors' newsletters with a scheduled run

### Integrations and API

Run the scraper from your own code with the [Apify API](https://docs.apify.com/api/v2), or connect it to Make, Zapier, n8n, Google Sheets, Airtable, Slack and webhooks from the **Integrations** tab. AI agents can run it through the Apify MCP server at [mcp.apify.com](https://mcp.apify.com).

### ❓FAQ

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

$0.29 per 1,000 posts or newsletters on the Free plan down to $0.22 on Business, full text included, plus $0.0005 per run.

#### Can I get the full text of paid posts?

You get what Substack shows to everyone: the free preview of a paid post. `isPaid` tells you which posts are paid.

#### Can I scrape a newsletter on its own domain?

Yes. Paste its address, like `https://www.lennysnewsletter.com`.

#### Do I need a Substack account?

No. The scraper reads only what anyone can see on Substack without logging in.

#### What happens with a newsletter or post that does not exist?

It is listed in the run report as not found, and the run still succeeds with everything else. You are not charged for it.

#### Is it legal to scrape Substack?

The scraper collects public posts and newsletter details that anyone can read without logging in. Posts are the writers' work: you are responsible for how you use them, and republishing them may need the author's permission. Substack Scraper is not affiliated with or endorsed by Substack.

#### Something isn't working?

Open the **Issues** tab and tell us what you ran (the input) and what you expected. We usually answer within a day.

### ⭐ Your feedback

Have an idea or found a problem? Tell us in the **Issues** tab. If Substack Scraper saved you time, a short review on the **Reviews** tab helps other people find it.

# Actor input Schema

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

Substack newsletters to read, one per line, e.g. https://www.lennysnewsletter.com, https://garymarcus.substack.com or just garymarcus. A post link (.../p/<post>) gives that post; a writer's profile (https://substack.com/@name) gives their newsletter.

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

How many posts to read from each newsletter, newest first, e.g. 100. Set 0 for the whole archive.

## `sortBy` (type: `string`):

Which posts a newsletter gives first.

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

Read each post's whole text (text and HTML). Paid posts give the free preview the newsletter shows to everyone. Off: titles, dates, likes, comments and a short preview only, which is faster.

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

Keywords to find newsletters on Substack, one per line, e.g. history or AI. Each keyword gives newsletters with their author, subscribers and paid plans.

## `maxNewslettersPerSearch` (type: `integer`):

How many newsletters to take from each keyword search (Substack shows up to about 100).

## Actor input object example

```json
{
  "urls": [
    "https://www.lennysnewsletter.com"
  ],
  "maxPostsPerNewsletter": 10,
  "sortBy": "newest",
  "includeContent": true,
  "maxNewslettersPerSearch": 20
}
```

# Actor output Schema

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

No description

## `newsletters` (type: `string`):

No description

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

No description

## `report` (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 = {
    "urls": [
        "https://www.lennysnewsletter.com"
    ],
    "maxPostsPerNewsletter": 10
};

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

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

```

## MCP server setup

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