# Substack Scraper API - Newsletter Posts, Stats & Full Text (`sndzcc/substack-scraper`) Actor

Scrape any Substack newsletter: every post with title, date, author, likes, comments, restacks, word count, tags and the full text of free posts. Filter by date, keyword and free or paid. No login.

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

## Pricing

from $1.50 / 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 API: Newsletter Posts, Stats & Full Text

Scrape **any Substack newsletter**: every post with **title, subtitle, date, authors, likes, comments, restacks, word count, tags**, cover image and link, plus the **full text of free posts**. Works with name.substack.com and custom domains. No login, no API key.

### Why this one?

- **Engagement stats** for every post: likes, comments and restacks, to see what really works.
- **Full text** of free posts, ready for AI summaries, research or archives. Paid posts are respected: you only get their public preview.
- **Any number of newsletters** in one run, newest posts first.
- **Filters** by date, keyword and free or paid.

### Use cases

- **Competitor and content research:** which topics and formats get the most engagement in your niche.
- **Sponsorship and partnerships:** find active newsletters and their best posts before you pitch.
- **AI and research:** collect posts to summarize, classify or feed a RAG system.
- **Archiving and monitoring:** keep a copy of the newsletters you follow and get new posts daily.

### Input

| Field | What it does |
|---|---|
| **Substack newsletters** | Links or names, one per line. |
| **Max posts per newsletter** | Newest first. |
| **Only posts published since** | Optional date. |
| **Keywords** | Keep posts about a topic. |
| **Free or paid posts** | All, only free or only paid. |
| **Include full text of free posts** | Adds the complete text. |

```json
{
  "publications": ["https://www.lennysnewsletter.com", "astralcodexten"],
  "maxPostsPerPublication": 100,
  "includeFullText": true
}
```

### Output

```json
{
  "publication": "https://www.lennysnewsletter.com",
  "title": "Lenny's Newsletter holiday gift guide 2026",
  "subtitle": "100+ gift ideas, all things I actually use, love, and recommend",
  "url": "https://www.lennysnewsletter.com/p/lennys-newsletter-holiday-gift-guide-057",
  "postDate": "2026-11-03T14:45:33.089Z",
  "audience": "paid",
  "authors": ["Lenny Rachitsky"],
  "wordCount": 2759,
  "reactions": 360,
  "comments": 13,
  "restacks": 5,
  "tags": ["Gift guide"],
  "hasPodcast": false,
  "preview": "Hey there, I'm Lenny..."
}
```

### Good to know

- Reads Substack's public API, the same the website uses, at a polite pace.
- Paid posts only include the preview Substack shows to non-subscribers.

### Integrations

Schedule it daily with "Only posts published since" and send new posts to Google Sheets, Notion, Slack, Make, Zapier or n8n.

### How to use it

1. Click **Try for free** (or **Start**) at the top of this page.
2. Fill in the input, or keep the example to see it working in seconds.
3. Click **Start** and wait for the run to finish.
4. Download the results as **Excel, CSV, JSON or HTML**, or get them through the Apify API.

### How much does it cost?

**$0.0015 per post** ($1.50 per 1,000). No start fee, no monthly fee, and you only pay for the results saved to your dataset.

| Example | Cost |
|---|---|
| The last 100 posts of 10 newsletters | about $1.50 |
| Every post of one big newsletter (500) | about $0.75 |

Apify's free plan includes monthly credit, so you can try it for free.

### FAQ

**Do I need a Substack account?**

No. It reads the public API that Substack's own website uses.

**Does it get paid posts?**

Only their public preview. The full text is included for free posts.

**Does it work with custom domains?**

Yes, for example lennysnewsletter.com as well as name.substack.com.

**Which stats are included?**

Likes, comments, restacks and word count for every post.

### More tools from Sndz Data

- [BORME Scraper API - Spain New Company Leads Daily](https://apify.com/sndzcc/borme-spain-companies): every new company registered in Spain, daily
- [App Store & Google Play Reviews Scraper API](https://apify.com/sndzcc/app-reviews-scraper): App Store and Google Play reviews in one run
- [Job Scraper API - Greenhouse, Lever, Ashby & Workable](https://apify.com/sndzcc/ats-jobs-scraper): all open jobs from Greenhouse, Lever, Ashby and more
- [Google News Scraper API - Articles with Real URLs](https://apify.com/sndzcc/google-news-scraper): news by keyword or topic, with real article URLs
- [Email & Contact Scraper API - Emails, Phones & Socials](https://apify.com/sndzcc/contact-details-scraper): emails, phones and social profiles from any website
- [Telegram Scraper API - Channel Posts, Views & Media](https://apify.com/sndzcc/telegram-channel-scraper): posts, views and media from public Telegram channels
- [Brand Monitoring API - Mentions Radar for News & Reddit](https://apify.com/sndzcc/brand-mentions-radar): brand mentions across 9 sources, with sentiment
- [AI Image Upscaler API - Upscale & Enhance Photos 4x](https://apify.com/sndzcc/ai-image-upscaler): upscale and enhance photos 4x with AI
- [Keyword Research API - Google, YouTube & Amazon Ideas](https://apify.com/sndzcc/keyword-ideas-machine): hundreds of keyword ideas from 5 search engines
- [Tech Stack Detector API - Wappalyzer & BuiltWith Alternative](https://apify.com/sndzcc/tech-stack-detector): the technologies behind any website, in bulk
- [Polymarket & Kalshi API - Prediction Market Odds](https://apify.com/sndzcc/prediction-markets-scraper): live odds from Polymarket and Kalshi in one dataset
- [WHOIS & Domain Lookup API - DNS, SSL & Availability](https://apify.com/sndzcc/domain-intel): WHOIS, availability, DNS and SSL for any list of domains
- [Bluesky Scraper API - Posts, Profiles & Followers](https://apify.com/sndzcc/bluesky-scraper): posts, profiles and followers from Bluesky, no login
- [SEO Audit API - Broken Links, Meta Tags & Site Crawler](https://apify.com/sndzcc/seo-audit): SEO audit and broken link checker for any website
- [OCR API - Image & PDF to Text Extractor, 100+ Languages](https://apify.com/sndzcc/image-pdf-to-text): text from images and scanned PDFs, 100+ languages
- [Podcast Transcription API - Whisper Speech to Text & SRT](https://apify.com/sndzcc/speech-to-text): audio, video and podcasts to text and subtitles with Whisper AI
- [Website Screenshot API - Full Page, Mobile & PDF Capture](https://apify.com/sndzcc/website-screenshot): full-page, mobile and PDF screenshots of any website
- [Remote Jobs Scraper API - 6 Job Boards in One](https://apify.com/sndzcc/remote-jobs-scraper): remote jobs from 6 job boards in one dataset
- [Y Combinator Companies Scraper API - Startups & Founders](https://apify.com/sndzcc/yc-companies-scraper): every YC startup with its founders and LinkedIn links
- [Phone Number Validator API - Format, Country & Mobile Check](https://apify.com/sndzcc/phone-number-validator): validate, format and classify phone numbers in bulk

### Support

Need comments, subscriber counts or another field? Open an issue on the **Issues** tab.

If this Actor saves you time, a quick ⭐ review helps a lot and keeps it maintained. Thank you!

# Actor input Schema

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

Newsletter links (name.substack.com or custom domains), post links or just the name. One per line.

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

Newest first.

## `postedSince` (type: `string`):

Optional date (YYYY-MM-DD).

## `keywords` (type: `array`):

Keep posts whose title, subtitle, preview or tags contain any of these words.

## `audience` (type: `string`):

Which posts to keep.

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

Adds the complete text of free posts (slower). Paid posts only include the public preview.

## Actor input object example

```json
{
  "publications": [
    "https://www.lennysnewsletter.com"
  ],
  "maxPostsPerPublication": 20,
  "audience": "all",
  "includeFullText": false
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per post with date, authors, engagement and link.

## `allData` (type: `string`):

Every field, including tags, preview and full text.

# 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": [
        "https://www.lennysnewsletter.com"
    ],
    "maxPostsPerPublication": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("sndzcc/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": ["https://www.lennysnewsletter.com"],
    "maxPostsPerPublication": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("sndzcc/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": [
    "https://www.lennysnewsletter.com"
  ],
  "maxPostsPerPublication": 20
}' |
apify call sndzcc/substack-scraper --silent --output-dataset

```

## MCP server setup

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