# Substack Scraper - Newsletter Posts, Likes & Full Text (`gosoul9/substack-scraper`) Actor

Scrape any Substack newsletter: title, date, author, likes, comments, restacks, free or paid, full text. Search all of Substack by keyword to discover newsletters in your niche. No login. $0.25 per 1,000 posts.

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

## Pricing

from $0.25 / 1,000 post scrapeds

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 - Newsletter Posts, Likes, Comments & Full Text

Scrape **any Substack newsletter** in seconds: every post with **title, date, author, likes, comments, restacks, word count, free or paid**, and optionally the **full text**. Or **search all of Substack by keyword** to discover the newsletters and writers of any niche.

No Substack account, no browser, no cookies: the Actor reads Substack's public data, so runs are fast and cheap. Custom domains (like `www.lennysnewsletter.com`) work too.

![Substack Scraper example output: newsletter, post title, date, likes, comments and paid or free](https://api.apify.com/v2/key-value-stores/JJdNTW6mHqsclEqNv/records/substack-scraper-output)

### What you get

| Field | Example |
|---|---|
| `publication`, `publicationUrl` | `Noahpinion`, `https://noahpinion.substack.com` |
| `title`, `subtitle` | `India is quietly doing great` |
| `url` | direct link to the post |
| `postDate` | `2026-11-11T08:51:56.921Z` |
| `author`, `authorHandle` | `Noah Smith`, `noahpinion` (guest authors included) |
| `likes`, `comments`, `restacks` | `792`, `35`, `105` |
| `isPaid`, `audience` | `false`, `everyone` / `only_paid` |
| `wordCount`, `type` | `1596`, `newsletter` / `podcast` / `thread` |
| `tags`, `coverImage`, `podcastUrl` | post tags, cover image, audio file of podcast episodes |
| `preview` | first lines of the post |
| `contentText` | full text of free posts (option *Include full post text*) |
| `searchQuery` | the keyword that found the post (search mode) |

### Why use this Actor

- **Two modes in one Actor**: scrape the newsletters you already know, or **discover new ones** with a keyword search across all of Substack.
- **Any address works**: `lenny`, `lenny.substack.com`, `substack.com/@lenny`, a custom domain or a single post URL.
- **Engagement data on every post**: likes, comments and restacks, perfect to find the best-performing content of a niche.
- **Full text on demand**: clean text without HTML, ready for AI, summaries or analysis.
- **Monitoring-ready**: *Only posts published after* + *Newest* + an Apify schedule = only new posts every day.
- **Fair pricing**: posts you filter out (paid, older than your date) are not charged, and errors are free.

### Step-by-step tutorial

1. **Newsletters**: paste one newsletter per line (`lenny.substack.com`, `www.lennysnewsletter.com`, `noahpinion`...), or single post URLs.
2. **Search** (optional): add keywords like `b2b marketing` or `ai agents` to find posts and newsletters across all of Substack.
3. **Limits**: choose how many posts per newsletter and per keyword.
4. **Filters** (optional):
   - *Sort*: newest or most popular posts first.
   - *Only posts matching*: keep only posts of your newsletters about a word, e.g. `pricing`.
   - *Only posts published after*: `2026-01-31` or `30 days`.
   - *Only free posts*, *Include full post text*.
5. **Start**, then export to Excel, CSV, JSON, Google Sheets, or send the data to your tools (see Integrations).

#### Input example

```json
{
  "publications": ["lenny.substack.com", "noahpinion"],
  "searchQueries": ["b2b marketing"],
  "maxPostsPerPublication": 50,
  "maxResultsPerQuery": 50,
  "sort": "new",
  "publishedAfter": "60 days",
  "includeContent": true
}
```

#### Output example

```json
{
  "publication": "Noahpinion",
  "publicationUrl": "https://noahpinion.substack.com",
  "title": "India is quietly doing great",
  "url": "https://www.noahpinion.blog/p/india-is-quietly-doing-great",
  "postDate": "2026-11-11T08:51:56.921Z",
  "author": "Noah Smith",
  "isPaid": false,
  "likes": 792,
  "comments": 35,
  "restacks": 105,
  "wordCount": 1596,
  "contentText": "..."
}
```

### Use cases

- **Newsletter sponsorship & influencer marketing**: search your niche (`saas`, `crypto`, `parenting`...) and get a list of active newsletters with their engagement, then pick the best ones to sponsor.
- **Content research**: find the most liked posts of a topic and see which formats and headlines work.
- **Competitor monitoring**: follow competitors' newsletters every day with a schedule.
- **AI & LLM datasets**: collect clean full text of free posts for summaries, RAG or sentiment analysis.
- **Journalism & research**: archive a newsletter, track writers, study trends over time.
- **Lead generation**: build lists of writers and publications in a market, then enrich them with our [Company Email Finder](https://apify.com/gosoul9/company-email-finder).

### Integrations

- **Google Sheets**: send every new post to a sheet your team already uses.
- **Slack / email alerts** with Make, Zapier or n8n: get a message when a newsletter you follow publishes.
- **Schedules**: run daily with *Newest* + *Only posts published after* = `1 day`.
- **API and SDKs** (Python, JavaScript) and **webhooks**.
- **AI agents**: call it from Claude, ChatGPT or Cursor through the Apify MCP server.

### Tips

- **Discover newsletters fast**: use a search keyword and keep only the `publication` and `publicationUrl` columns, then remove duplicates.
- **Most popular posts**: set *Sort* to *Most popular* to get a newsletter's all-time best posts.
- **Daily monitoring costs almost nothing**: with *Newest* + a date filter, the Actor stops as soon as it reaches older posts.
- **Long archives**: newsletters with thousands of posts are supported, just raise *Max posts per newsletter*.

### Pricing

**$0.25 per 1,000 posts.** Example: the last 100 posts of 20 newsletters = 2,000 posts = **$0.50**. Errors, unknown addresses and filtered-out posts are free.

### FAQ

**Do I need a Substack account or API key?**
No. The Actor uses Substack's public pages and data, like a browser visiting the site.

**Can it get the full text of paid posts?**
No. For paid posts you get all the metadata and the public preview only (`contentIsPreview: true`). The Actor never bypasses a paywall.

**Does it work with custom domains?**
Yes. `www.lennysnewsletter.com`, `www.noahpinion.blog` and other custom domains work like `name.substack.com`.

**Why are likes or comments sometimes 0?**
Some writers hide or disable reactions and comments, and very recent posts may not have any yet.

**Can I get the subscriber list of a newsletter?**
No. Subscriber lists are private. The Actor only returns public data.

**How do I monitor new posts automatically?**
Create an Apify schedule (for example every morning) with *Sort: Newest* and *Only posts published after: 1 day*.

**Is scraping Substack legal?**
The Actor only collects publicly available data. You are responsible for how you use it: respect copyright (do not republish full posts) and privacy laws such as GDPR.

### Other Actors you may like

- [App Store Reviews Scraper](https://apify.com/gosoul9/app-store-reviews-scraper): reviews and ratings of iPhone apps.
- [Google Play Reviews Scraper](https://apify.com/gosoul9/google-play-reviews-scraper): reviews and ratings of Android apps.
- [Bluesky Scraper](https://apify.com/gosoul9/bluesky-scraper-posts-profiles): posts and profiles from Bluesky.
- [Hacker News Scraper](https://apify.com/gosoul9/hacker-news-scraper): stories, comments and search on Hacker News.
- [Google News Scraper](https://apify.com/gosoul9/google-news-scraper-cheap): news articles for any keyword.

### Support

Missing a field or found a newsletter that does not work? Open an issue in the **Issues** tab with the address.

# Actor input Schema

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

One per line: a Substack newsletter (lenny.substack.com, lenny, www.lennysnewsletter.com, substack.com/@handle) or a single post URL (.../p/post-slug). Custom domains work.

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

Find posts about a topic across every Substack newsletter, e.g. 'b2b marketing'. Each result includes the newsletter name and URL: perfect to discover newsletters in a niche.

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

How many posts to collect from each newsletter.

## `maxResultsPerQuery` (type: `integer`):

How many posts to collect for each search keyword.

## `sort` (type: `string`):

Newest first, or most popular first.

## `keyword` (type: `string`):

Optional: keep only posts of the newsletters above that match this word, e.g. 'pricing'.

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

A date like 2026-01-31, or a relative period like '30 days', '2 weeks', '1 year'. Combine with Newest + a schedule to monitor new posts.

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

Adds the full text of each free post (contentText). Paid posts only include the public preview.

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

Skip posts reserved for paid subscribers. Skipped posts are not charged.

## Actor input object example

```json
{
  "publications": [
    "lenny.substack.com"
  ],
  "maxPostsPerPublication": 50,
  "maxResultsPerQuery": 50,
  "sort": "new",
  "includeContent": false,
  "onlyFree": false
}
```

# 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 = {
    "publications": [
        "lenny.substack.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gosoul9/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 = { "publications": ["lenny.substack.com"] }

# Run the Actor and wait for it to finish
run = client.actor("gosoul9/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 '{
  "publications": [
    "lenny.substack.com"
  ]
}' |
apify call gosoul9/substack-scraper --silent --output-dataset

```

## MCP server setup

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