# Substack Scraper (Posts & Newsletters) (`neuro-scraper/substack-scraper`) Actor

Substack Scraper SD - Substack Scraper is a newsletter data tool that extracts Substack posts by newsletter URL, post URL or keyword: full text and HTML, date, reactions, comments with replies, author, subscriber count and Notes. No login.

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

## Pricing

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 & Newsletters)

The Substack Scraper (Posts & Newsletters) collects public Substack data and returns it as a clean dataset you can download as JSON, CSV or Excel, or read through the Apify API. No login, no cookies and no code: give the Substack Scraper (Posts & Newsletters) your input, start it and get structured Substack data for research, monitoring, analytics or lead generation. You pay only for the results you receive.

> ⭐ **Featured by Neuro Scraper: [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** - scrape Facebook Reels from any page, profile or reel link with exact views and plays, every reaction type (Like, Love, Care, Haha, Wow, Sad, Angry), comments, shares, captions, music and video links. No login and no cookies. [Try the Facebook Reels Scraper →](https://apify.com/neuro-scraper/facebook-reels-scraper)

### Substack Scraper

Substack Scraper exports posts from any Substack newsletter, any single post, keyword searches across all of Substack, and the Notes of any author. Substack Scraper gives you the title, subtitle, full text and HTML, publish date, reactions, restacks, comments with replies, word count, tags, podcast audio, author and newsletter details with the subscriber count - in clean JSON, CSV or Excel.

> **Also try:** the [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - export public Facebook Reels with views, likes, comments, captions and video links. It pairs well with Substack Scraper for social media research.

#### What does Substack Scraper do?

Substack Scraper collects public Substack content the way a visitor sees it, without any login. Give Substack Scraper newsletter links (simonw.substack.com or a custom domain such as lennysnewsletter.com), post links, author handles (@noahpinion) or keywords, and Substack Scraper collects:

- Every post of a newsletter, newest or most popular first, with an optional keyword filter inside the newsletter and a date window.
- Full post content as HTML and as clean text (paid posts give the free preview, marked with bodyIsPreview).
- Comments with nested replies, author names and like counts, up to the limit you set per post.
- Keyword search across all Substack posts, or a search for newsletters that then exports their posts.
- Notes (Substack's short-form posts) of any author handle, with images, links and quoted Notes.
- Newsletter details on every row: name, URL, logo, description, subscriber count and whether paid subscriptions are on.
- Filters for post type (newsletter, podcast, thread, video), audience (free or paid), date range, minimum reactions and comments.

Substack Scraper runs on the Apify platform, so every run of Substack Scraper gives you a dataset you can export as JSON, CSV, Excel, XML or HTML, read through the Apify API, or send to Google Sheets, Make, Zapier, n8n or a webhook. You can schedule Substack Scraper to run every hour, day or week and keep your data fresh without touching a line of code.

#### Why use Substack Scraper?

People use Substack Scraper for many jobs. The most common ones are:

- Content research: collect everything a newsletter published on a topic and analyse it with AI or in a spreadsheet.
- Competitor and market monitoring: track posting frequency, reactions and comments of newsletters in your niche.
- Creator lists: find newsletters by keyword and export their name, URL, subscriber band and author bio.
- Building datasets for LLMs and RAG: full post text with dates and authors, ready for embeddings.
- Audience research: study the comments under the most popular posts to learn what readers ask for.
- Archiving your own newsletter or Notes in a portable format.

Substack Scraper needs no account, no login and no browser extension. You only give Substack Scraper what you want to look up, press Start, and download the results. Because Substack Scraper saves clean, typed fields (numbers as numbers, dates in ISO format), the output of Substack Scraper drops straight into a spreadsheet, a CRM, a BI dashboard or a Python / Node.js script.

#### How to use Substack Scraper

1. **Open Substack Scraper** in Apify Console and click **Try for free** (or **Start** if you already use Substack Scraper).
2. **Fill in the input.** Give at least one target: newsletter or post links in `urls`, keywords in `keywords`, or author handles in `notesHandles`. Everything else is optional: limits (`maxPostsPerNewsletter`, `maxSearchResultsPerKeyword`, `maxNotesPerHandle`, `maxItems`), content options (`includeContent`, `contentFormat`, `includeComments`, `includePublicationInfo`) and filters (`contentType`, `audienceFilter`, `dateFrom`, `dateTo`, `minReactions`, `minComments`). The prefilled example works with one click.
3. **Press Start and watch the log.** Substack Scraper logs one line per page it collects: "https://simonw.substack.com: archive page 1, 12 new rows" for a newsletter, 'search "climate policy": page 2, 10 new rows' for a keyword and "@simonw: feed page 1, 20 new Notes" for Notes. It also says why it stopped ("maxPostsPerNewsletter reached", "end of the archive", "page 3 is older than dateFrom - stop"). Bad inputs get an ERROR line and are skipped.
4. **Download the results.** Open the **Output** tab and export the dataset as JSON, CSV, Excel, XML or HTML, or read it through the Apify API (see "API usage" below). `recordType` separates posts from Notes.
5. **Schedule and connect.** Save the input as a task and add a daily schedule with `dateFrom` to get each day's new posts; connect Google Sheets, Zapier, Make, n8n, Slack or a webhook that fires when Substack Scraper finishes.

#### Input of Substack Scraper

This table is the short overview of the input of Substack Scraper; every option is explained in detail in the next section.

| Input | Name | Default |
|---|---|---|
| Newsletter or post URLs | urls | \["https://simonw.substack.com"] |
| Search keywords | keywords | \[] |
| Keyword mode | keywordMode | posts |
| Max results per keyword | maxSearchResultsPerKeyword | 20 |
| Search inside the newsletters | searchKeyword | - |
| Archive order | sortBy | new |
| Max posts per newsletter | maxPostsPerNewsletter | 20 |
| Max results (whole run) | maxItems | 100 |
| Include full post content | includeContent | true |
| Content format | contentFormat | both |
| Include comments | includeComments | false |
| Max comments per post | maxCommentsPerPost | 20 |
| Include newsletter info | includePublicationInfo | true |
| Post type | contentType | all |
| Free / paid | audienceFilter | all |
| Published from | dateFrom | - |
| Published until | dateTo | - |
| Min reactions | minReactions | 0 |
| Min comments | minComments | 0 |
| Notes of these authors | notesHandles | \[] |
| Max Notes per author | maxNotesPerHandle | 50 |
| Proxy configuration | proxyConfiguration | RESIDENTIAL |

#### Features and how they work in Substack Scraper

##### Newsletter or post URLs (`urls`)

- **What it does:** the newsletters and single posts Substack Scraper exports, one per line.
- **How it works:** a newsletter home page (`https://simonw.substack.com`), a custom domain (`https://www.lennysnewsletter.com`) or an `/archive` link exports the posts of that newsletter; a post link (`https://simonw.substack.com/p/<slug>` or `https://open.substack.com/pub/<name>/p/<slug>`) exports that one post; an author profile (`https://substack.com/@simonw`) exports the author's main newsletter; a bare subdomain (`simonw`) works too. Anything else is skipped with an ERROR line.
- **Allowed values and default:** a list of links or subdomains. Prefill: `["https://simonw.substack.com"]`.
- **Example:** `"urls": ["https://simonw.substack.com", "https://www.lennysnewsletter.com", "noahpinion"]`.
- **Tip:** custom domains work exactly like substack.com subdomains - no need to find the original subdomain.
- **Combinations:** each newsletter gets up to `maxPostsPerNewsletter` posts; all inputs together are capped by `maxItems`; filters apply to every post.

##### Search keywords (`keywords`)

- **What it does:** searches all of Substack for each keyword, one per line.
- **How it works:** what is collected depends on `keywordMode`: matching posts from any newsletter, or matching newsletters whose posts are then exported. Each row found this way has the keyword in `keyword`.
- **Allowed values and default:** a list of keywords; empty by default.
- **Example:** `"keywords": ["climate policy", "artificial intelligence"]`.
- **Tip:** use specific phrases - a broad word like "news" returns thousands of posts.
- **Combinations:** the limit per keyword is `maxSearchResultsPerKeyword` - 20 per keyword x 2 keywords = up to 40 posts; filters (type, audience, dates, minimums) apply after the search.

##### Keyword mode (`keywordMode`)

- **What it does:** chooses what a keyword search returns.
- **How it works:** `posts` = the matching posts across all newsletters, one row per post; `newsletters` = the newsletters matching the keyword, then up to `maxPostsPerNewsletter` posts from each newsletter found.
- **Allowed values and default:** `posts`, `newsletters`; default `posts`.
- **Example:** `"keywordMode": "newsletters"`.
- **Tip:** `newsletters` is the way to build a creator list for a niche; `posts` is the way to research a topic.
- **Combinations:** in `newsletters` mode `maxSearchResultsPerKeyword` counts newsletters, not posts, so 5 newsletters x 20 posts = up to 100 rows per keyword.

##### Max results per keyword (`maxSearchResultsPerKeyword`)

- **What it does:** how many posts (mode posts) or newsletters (mode newsletters) to take per keyword.
- **How it works:** Substack Scraper follows the search results page after page until it has this many or the results end; after 3 pages in a row without a new post it stops.
- **Allowed values and default:** integer 1-5,000; default 20.
- **Example:** `"maxSearchResultsPerKeyword": 100`.
- **Tip:** the limit is per keyword, so 100 with 3 keywords = up to 300 rows.
- **Combinations:** `maxItems` still caps the whole run; raise it together with this value.

##### Search inside the newsletters (`searchKeyword`)

- **What it does:** keeps only the posts of the given newsletters that match a word or phrase.
- **How it works:** instead of the whole archive, Substack Scraper collects only the posts of each newsletter in `urls` that match the phrase, page by page, with the same limits.
- **Allowed values and default:** a text value; empty (default) = all posts.
- **Example:** `"searchKeyword": "sqlite"`.
- **Tip:** the fastest way to get everything one author wrote on one topic.
- **Combinations:** applies only to newsletters in `urls` (not to `keywords`); works with all filters and with `maxPostsPerNewsletter`.

##### Archive order (`sortBy`)

- **What it does:** the order in which a newsletter's posts are collected.
- **How it works:** `new` = newest first, `top` = most popular first. The order matters because `maxPostsPerNewsletter` takes the first posts in this order.
- **Allowed values and default:** `new`, `top`; default `new`.
- **Example:** `"sortBy": "top"`.
- **Tip:** `top` with `maxPostsPerNewsletter` 10 gives the 10 best-performing posts of each newsletter.
- **Combinations:** with `new` and `dateFrom`, paging stops at the first page that is older than the date, which saves time and cost.

##### Max posts per newsletter (`maxPostsPerNewsletter`)

- **What it does:** stops each newsletter after this many posts.
- **How it works:** Substack Scraper pages through the newsletter (12 posts per page) until this number or the first post ever published. Posts removed by filters do not count.
- **Allowed values and default:** integer 0-100,000; default 20. 0 = the whole archive.
- **Example:** `"maxPostsPerNewsletter": 0` exported a full archive in our tests.
- **Tip:** the limit is per newsletter: 20 with 3 newsletters = up to 60 posts.
- **Combinations:** also used for each newsletter found in `keywordMode` newsletters; `maxItems` caps the run total.

##### Max results (whole run) (`maxItems`)

- **What it does:** stops the run after this many rows in total.
- **How it works:** every saved row counts - posts and Notes from all inputs. When the limit is reached, Substack Scraper stops paging and the run ends.
- **Allowed values and default:** integer 0-1,000,000; default 100. 0 = no total limit.
- **Example:** `"maxItems": 500`.
- **Tip:** the safest way to cap the cost of a big run.
- **Combinations:** the per-input limits (`maxPostsPerNewsletter`, `maxSearchResultsPerKeyword`, `maxNotesPerHandle`) apply first, then this total.

##### Include full post content (`includeContent`)

- **What it does:** adds the full body of every post (HTML and / or text), the last-update date and the next / previous post.
- **How it works:** one extra request per post. Paid posts give only the free preview every visitor sees, and `bodyIsPreview` is true on those rows. With it off, the rows carry metadata only (title, subtitle, dates, engagement, short excerpt in `truncatedBodyText`).
- **Allowed values and default:** true or false; default true.
- **Example:** `"includeContent": false`.
- **Tip:** turn it off for engagement monitoring - runs are about twice as fast.
- **Combinations:** `contentFormat` chooses which body columns are filled.

##### Content format (`contentFormat`)

- **What it does:** chooses which body columns are filled when full content is on.
- **How it works:** `html` fills `bodyHtml` / `contentHtml`, `text` fills `bodyText` / `contentText` (clean text with line breaks), `both` fills all of them.
- **Allowed values and default:** `both`, `html`, `text`; default `both`.
- **Example:** `"contentFormat": "text"`.
- **Tip:** `text` is the right choice for LLMs and word analysis and keeps the dataset small.
- **Combinations:** only used with `includeContent` on.

##### Include comments (`includeComments`)

- **What it does:** adds each post's public comments with their nested replies in the `comments` column.
- **How it works:** one extra request per post that has comments; each comment has the author name, handle, date, text and reactions, and replies stay nested under their parent. `commentsScraped` says how many were saved.
- **Allowed values and default:** true or false; default false.
- **Example:** `"includeComments": true`.
- **Tip:** combine it with `sortBy` top to study the discussions under the most popular posts.
- **Combinations:** `maxCommentsPerPost` cuts the list; `minComments` keeps only posts with enough discussion.

##### Max comments per post (`maxCommentsPerPost`)

- **What it does:** how many comments per post are kept, replies included.
- **How it works:** the whole thread of a post comes at once, best comments first; Substack Scraper cuts the list at this number.
- **Allowed values and default:** integer 0-100,000; default 20. 0 = all.
- **Example:** `"maxCommentsPerPost": 100`.
- **Tip:** comments are inside the post row, so they do not add rows or cost - only row size.
- **Combinations:** only used with `includeComments` on.

##### Include newsletter info (`includePublicationInfo`)

- **What it does:** adds the newsletter's name, description, logo, subscriber count, paid-plan status and the author's bio to every row.
- **How it works:** one extra request per newsletter (not per post); keyword search results already carry this information.
- **Allowed values and default:** true or false; default true.
- **Example:** `"includePublicationInfo": true`.
- **Tip:** needed for `subscriberCount`, `subscriberCountText`, `paymentsEnabled` and `authorBio`.
- **Combinations:** works with every input type.

##### Post type (`contentType`)

- **What it does:** keeps only posts of one type.
- **How it works:** every post has a type; Substack Scraper drops posts of other types before saving (they do not count toward the limits).
- **Allowed values and default:** `all`, `newsletter`, `podcast`, `thread`, `video`; default `all`.
- **Example:** `"contentType": "podcast"`.
- **Tip:** `podcast` exports episodes with their audio links (`podcastUrl`, `audioUrl`).
- **Combinations:** a rare type with a small `maxPostsPerNewsletter` can need many pages; works with all other filters.

##### Free / paid (`audienceFilter`)

- **What it does:** keeps only free posts or only paid posts.
- **How it works:** `free` keeps posts for everyone, `paid` keeps posts for paying subscribers (their body is the free preview), based on each post's `audience`.
- **Allowed values and default:** `all`, `free`, `paid`; default `all`.
- **Example:** `"audienceFilter": "free"`.
- **Tip:** use `free` when you need complete post text for every row.
- **Combinations:** works with all other filters and inputs.

##### Published from (`dateFrom`)

- **What it does:** keeps only posts published on or after this date.
- **How it works:** posts before the date are dropped; with `sortBy` new, paging stops at the first page that is completely older than the date.
- **Allowed values and default:** a date `YYYY-MM-DD`, or a number of days back such as `30` or `"30 days"` (the JSON key `within_days` works too); empty by default.
- **Example:** `"dateFrom": "2026-01-01"`.
- **Tip:** on a daily schedule, set it to yesterday to get only new posts.
- **Combinations:** with `dateTo` it gives a date window; with `sortBy` top every page is checked, so it is slower.

##### Published until (`dateTo`)

- **What it does:** keeps only posts published on or before this date.
- **How it works:** posts after the date are dropped while paging continues to older posts.
- **Allowed values and default:** a date `YYYY-MM-DD`; empty by default.
- **Example:** `"dateTo": "2026-06-30"`.
- **Tip:** combine with `dateFrom` and `maxPostsPerNewsletter` 0 to export one exact period of an archive.
- **Combinations:** works for newsletters, posts and keyword searches.

##### Min reactions (`minReactions`)

- **What it does:** keeps only posts with at least this many reactions (likes).
- **How it works:** posts with fewer reactions are dropped before saving and do not count toward the limits.
- **Allowed values and default:** integer from 0; default 0 = off.
- **Example:** `"minReactions": 50`.
- **Tip:** a quick way to keep only the posts that resonated.
- **Combinations:** a high value with a small newsletter can return 0 rows; works with `minComments`.

##### Min comments (`minComments`)

- **What it does:** keeps only posts with at least this many comments.
- **How it works:** posts with fewer comments are dropped before saving.
- **Allowed values and default:** integer from 0; default 0 = off.
- **Example:** `"minComments": 10`.
- **Tip:** pair it with `includeComments` to collect only real discussions.
- **Combinations:** both minimums must be met when both are set.

##### Notes of these authors (`notesHandles`)

- **What it does:** collects the public Notes (short-form posts) of these authors.
- **How it works:** give handles or profile links (`simonw`, `@simonw`, `https://substack.com/@simonw`); Substack Scraper collects each author's own Notes one page after another, one row per Note (`recordType` note) with text, date, reactions, restacks, replies count and attachments (images, links, posts, quoted Notes). Notes of other authors that they restacked are skipped.
- **Allowed values and default:** a list of handles or links; empty by default.
- **Example:** `"notesHandles": ["@noahpinion"]`.
- **Tip:** give the handle exactly as in the profile link. An author who only shares posts and writes no Notes of their own gives 0 Note rows (measured: @simonw, 10 pages without an own Note).
- **Combinations:** the number of Notes per author is `maxNotesPerHandle`; `maxItems` caps the total.

##### Max Notes per author (`maxNotesPerHandle`)

- **What it does:** how many Notes per handle are collected.
- **How it works:** Substack Scraper keeps paging through the author's Notes until this number or the end of the author's Notes.
- **Allowed values and default:** integer 1-100,000; default 50.
- **Example:** `"maxNotesPerHandle": 200`.
- **Tip:** the limit is per author: 50 with 4 handles = up to 200 Notes.
- **Combinations:** only used with `notesHandles`.

##### Min restacks (`minRestacks`)

- **What it does:** keeps only posts that readers shared (restacked) at least this many times.
- **How it works:** Substack Scraper compares each post's `restacks` count before saving; posts below it are dropped and do not count toward the limits.
- **Allowed values and default:** integer from 0; default 0 = off.
- **Example:** `"minRestacks": 5`.
- **Tip:** restacks are a strong signal of posts that spread beyond the newsletter's own readers.
- **Combinations:** all minimums (reactions, comments, restacks, words) must be met together.

##### Min word count (`minWordCount`)

- **What it does:** keeps only long-form posts.
- **How it works:** each post's `wordcount` (as Substack counts it) must be at least this number; short updates and link posts are dropped.
- **Allowed values and default:** integer from 0; default 0 = off.
- **Example:** `"minWordCount": 1500`.
- **Tip:** 1,000+ words leaves essays and deep dives.
- **Combinations:** works with every source (newsletters, posts, keyword search).

##### Podcast episodes (`hasPodcast`)

- **What it does:** keeps only posts with, or only posts without, an audio / podcast episode.
- **How it works:** a post counts as a podcast post when Substack gives it an episode file (`podcastUrl`); `yes` keeps those, `no` keeps the others.
- **Allowed values and default:** `any`, `yes`, `no`; default `any`.
- **Example:** `"hasPodcast": "yes"`.
- **Tip:** `contentType` podcast does almost the same by post type; `hasPodcast` also catches written posts with an attached episode.
- **Combinations:** works with every other filter.

##### Post language (`language`)

- **What it does:** keeps posts in one language.
- **How it works:** Substack marks every post with a language code (`language` column); posts with another code are dropped, posts without a code are kept.
- **Allowed values and default:** a two-letter code (en, de, fr, es, pt ...); empty = all.
- **Example:** `"language": "de"`.
- **Tip:** most useful with keyword search across all of Substack.
- **Combinations:** works with every source.

##### Min newsletter subscribers (`minSubscribers`)

- **What it does:** keeps only posts of newsletters above a size.
- **How it works:** the newsletter's public subscriber count (`subscriberCount`, from the newsletter info) must be at least this number; for very large newsletters Substack shows a lower bound such as "75K+", which is used as the number. Newsletter info is read automatically when this is set.
- **Allowed values and default:** integer from 0; default 0 = off.
- **Example:** `"minSubscribers": 10000`.
- **Tip:** with keyword search this finds the established voices on a topic.
- **Combinations:** with `paymentsEnabledOnly` for big paid newsletters.

##### Only paid newsletters (`paymentsEnabledOnly`)

- **What it does:** keeps only posts of newsletters that sell paid subscriptions.
- **How it works:** the newsletter info's `paymentsEnabled` flag must be true; other newsletters are left out (the final status counts them).
- **Allowed values and default:** `true` / `false`; default `false`.
- **Example:** `"paymentsEnabledOnly": true`.
- **Tip:** combine with `audienceFilter` paid to study paywalled content.
- **Combinations:** newsletter info is read automatically when this is on.

##### Who liked / restacked (`includeFacepile`)

- **What it does:** adds the people who liked and restacked each post.
- **How it works:** for every post Substack Scraper reads the post's public facepile and adds a `facepile` column: `reactors` and `restackers`, each with id, name, handle, photo and their own newsletter (name and link). No contact data is collected. One extra request per post.
- **Allowed values and default:** `true` / `false`; default `false`.
- **Example:** `"includeFacepile": true`.
- **Tip:** find writers who engage with a topic - their newsletters are in the list.
- **Combinations:** Substack shows a sample of the people (the most recent / prominent), not always every single like.

##### Save posts as Markdown files (`outputMarkdownFiles`)

- **What it does:** saves every post as a Markdown file.
- **How it works:** each post becomes a `.md` file in the run's key-value store (title, subtitle, date, link and the post text); the row gets `markdownFileKey` with the file's key, so you can download all posts as files for an archive or an AI knowledge base.
- **Allowed values and default:** `true` / `false`; default `false`.
- **Example:** `"outputMarkdownFiles": true`.
- **Tip:** keep `includeContent` on, otherwise the file holds only the description.
- **Combinations:** works with every source; Notes are not saved as files.

##### Keep a history of post counters (`enableHistory`)

- **What it does:** builds a time series of post performance.
- **How it works:** every saved post also adds a small snapshot (id, link, title, newsletter, likes, comments, restacks, word count, time) to a NAMED dataset (`historyDatasetName`) that stays in your account after the run; scheduled runs keep appending, so you can chart how a post's likes grew.
- **Allowed values and default:** `true` / `false`; default `false`.
- **Example:** `"enableHistory": true`.
- **Tip:** schedule a daily run of the same newsletters.
- **Combinations:** the normal dataset of each run is not changed.

##### History dataset name (`historyDatasetName`)

- **What it does:** names the dataset that collects the history snapshots.
- **How it works:** letters, digits and dashes (other characters become dashes); the dataset is created on the first run and appended to afterwards.
- **Allowed values and default:** text; default `substack-history`.
- **Example:** `"historyDatasetName": "my-newsletters-history"`.
- **Tip:** use one name per project so series do not mix.
- **Combinations:** only used with `enableHistory`.

##### Newsletters in parallel (`maxConcurrency`)

- **What it does:** sets how many newsletter and post links Substack Scraper reads at the same time.
- **How it works:** the links of `urls` go into one queue; this many workers, each with its own session, take the next link and page through its archive; rows are saved as they come. Keyword searches and Notes follow afterwards.
- **Allowed values and default:** 1-10; default 3.
- **Example:** `"maxConcurrency": 5`.
- **Tip:** big lists of newsletters finish several times faster.
- **Combinations:** `minDelayMs` paces each worker.

##### Pause between requests (`minDelayMs`)

- **What it does:** sets the minimum pause between two requests of one session.
- **How it works:** every session waits at least this many milliseconds (plus a small random jitter) before its next request.
- **Allowed values and default:** 0-10,000 ms; default 800.
- **Example:** `"minDelayMs": 400`.
- **Tip:** 400-800 is fast and steady; raise it if the log shows retries.
- **Combinations:** with `maxConcurrency` the total pace is workers x pace.

##### Proxy configuration (`proxyConfiguration`)

- **What it does:** chooses the proxy Substack Scraper uses.
- **How it works:** by default every request goes through the Apify residential proxy, which gave steady runs in all tests; you can choose another group or a country in the proxy editor.
- **Allowed values and default:** an Apify proxy object; default `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`.
- **Example:** `"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US"}`.
- **Tip:** keep the default unless you have a reason to change it.
- **Combinations:** posts that are blocked in some countries (`isGeoblocked`) depend on the proxy country.

#### Ready-to-copy input examples for Substack Scraper

**1. A whole newsletter archive as text** - returns every post of the newsletter with clean text, newest first:

```json
{
  "urls": ["https://simonw.substack.com"],
  "maxPostsPerNewsletter": 0,
  "maxItems": 0,
  "contentFormat": "text"
}
```

**Long-form posts of big paid newsletters, with who liked them, saved as Markdown:**

```json
{
  "keywords": ["artificial intelligence"],
  "minWordCount": 1500,
  "minSubscribers": 10000,
  "paymentsEnabledOnly": true,
  "language": "en",
  "includeFacepile": true,
  "outputMarkdownFiles": true
}
```

**2. Topic research across Substack** - returns up to 50 free posts per keyword from 2026, with comments:

```json
{
  "keywords": ["climate policy", "artificial intelligence"],
  "keywordMode": "posts",
  "maxSearchResultsPerKeyword": 50,
  "audienceFilter": "free",
  "dateFrom": "2026-01-01",
  "includeComments": true,
  "maxCommentsPerPost": 30,
  "maxItems": 100
}
```

**3. Creator list for a niche** - returns the 10 most popular posts of each of up to 20 newsletters about a topic, with subscriber counts:

```json
{
  "keywords": ["personal finance"],
  "keywordMode": "newsletters",
  "maxSearchResultsPerKeyword": 20,
  "sortBy": "top",
  "maxPostsPerNewsletter": 10,
  "includeContent": false,
  "includePublicationInfo": true,
  "maxItems": 200
}
```

**4. Notes of an author plus the best posts** - returns 100 Notes of the author and the newsletter posts with 50+ reactions:

```json
{
  "urls": ["https://www.noahpinion.blog"],
  "minReactions": 50,
  "notesHandles": ["noahpinion"],
  "maxNotesPerHandle": 100,
  "maxItems": 300
}
```

#### Output fields of Substack Scraper

Substack Scraper saves one row per post (`recordType` post) or Note (`recordType` note). Every row has the same columns. Several fields carry the same value under a second name, so a buyer switching from another Substack tool finds the column name they know.

**Post and Note fields**

| Field | Type | Meaning | When it can be empty |
|---|---|---|---|
| `recordType` | string | post or note. | never |
| `id` | integer | Post or Note id. | never |
| `postId` | integer | Same as `id` (second name). | never |
| `title` | string | Post title. | empty on Notes |
| `subtitle` | string | Post subtitle. | when the author wrote none; empty on Notes |
| `description` | string | Short description (usually the subtitle). | same as `subtitle` |
| `slug` | string | Post slug (last part of the link). | empty on Notes |
| `url` | string | Post or Note link. | never |
| `canonicalUrl` | string | Canonical link of the post. | empty on Notes |
| `type` | string | newsletter, podcast, thread, video (posts) or comment / note (Notes). | never |
| `postType` | string | Same as `type` (second name). | never |
| `audience` | string | everyone (free) or only_paid (paid). | empty on Notes |
| `audienceType` | string | Same as `audience` (second name). | empty on Notes |
| `isPaywalled` | boolean | true for paid posts. | empty on Notes |
| `isPaid` | boolean | Same as `isPaywalled` (second name). | empty on Notes |
| `publishedAt` | string | Publish date (UTC, ISO 8601). | never |
| `post_date` | string | Same as `publishedAt` (second name). | empty on Notes |
| `updatedAt` | string | Last edit date. | when never edited, or with `includeContent` off |
| `truncatedBodyText` | string | Short excerpt of the body. | empty on Notes |
| `bodyHtml` | string | Full post HTML. | with `includeContent` off or `contentFormat` text |
| `contentHtml` | string | Same as `bodyHtml` (second name). | same |
| `bodyText` | string | Clean post text (the Note text on Notes). | with `includeContent` off or `contentFormat` html |
| `contentText` | string | Same as `bodyText` (second name). | same |
| `bodyIsPreview` | boolean | true when only the free preview of a paid post is public. | empty on Notes |
| `contentFetched` | boolean | true when the full body was collected. | empty on Notes |
| `wordcount` | integer | Number of words. | empty on Notes |
| `readingTimeMinutes` | integer | Reading time (words / 238). | empty on Notes |
| `reactionCount` | integer | Total reactions (likes). | never |
| `reactions` | object | Reactions per emoji. | when there are none |
| `commentCount` | integer | Number of comments (replies on Notes). | never |
| `childCommentCount` | integer | Comments including replies. | empty on Notes |
| `childrenCount` | integer | Same comment count (second name). | never |
| `restacks` | integer | Number of restacks. | never |
| `restackCount` | integer | Same as `restacks` (second name). | never |
| `coverImage` | string | Cover image link. | when the post has no cover |
| `coverImageUrl` | string | Same as `coverImage` (second name). | same |
| `image_url` | string | Same as `coverImage` (third name). | same |
| `cover_image_is_square` | boolean | true when the cover image is square. | empty on Notes |
| `coverImagePalette` | object | Dominant colours of the cover image. | when there is no cover |
| `podcastUrl` | string | Podcast audio link. | empty for non-podcast posts |
| `podcastDuration` | number | Podcast length in seconds. | empty for non-podcast posts |
| `hasVoiceover` | boolean | true when the author recorded a voice-over. | empty on Notes |
| `audioItems` | array | Audio versions (voice-over or text-to-speech) with link and voice. | empty when the post has no audio |
| `hasAudio` | boolean | true when the post has any audio. | never |
| `audioUrl` | string | Podcast link, else the first audio version link. | when the post has no audio |
| `attachments` | array | Note attachments: image, link, post or quoted Note entries. | empty on posts and on Notes without attachments |
| `tags` | array | Tag names. | when the post has no tags |
| `postTags` | array | Tags with id, slug and newsletter id. | same |
| `sectionName` | string | Newsletter section of the post. | when the newsletter has no sections |
| `section_id` | integer | Section id. | same |
| `section_slug` | string | Section slug. | same |
| `is_section_pinned` | boolean | true when the post is pinned in its section. | empty on Notes |
| `language` | string | Language code. | rarely |
| `searchEngineTitle` | string | Custom title for search engines. | when the author set none (often) |
| `searchEngineDescription` | string | Custom description for search engines. | when the author set none (often) |
| `socialTitle` | string | Custom title for social media. | when the author set none |
| `freeUnlockRequired` | boolean | true when a free sign-up unlocks the post. | empty on Notes |
| `teaserPostEligible` | boolean | true when the post can be shown as a teaser. | empty on Notes |
| `should_send_free_preview` | boolean | true when free subscribers get a preview e-mail. | empty on Notes |
| `isGeoblocked` | boolean | true when the post is blocked in some countries. | empty on Notes |
| `postCountryBlocks` | array | Countries where the post is blocked. | when it is blocked nowhere |
| `hasCashtag` | boolean | true when the post mentions a stock cashtag. | empty on Notes |
| `writeCommentPermissions` | string | Who may comment (everyone, paid ...). | empty on Notes |
| `default_comment_sort` | string | Default comment order of the post. | when the author kept the default |
| `editor_v2` | boolean | true when written in the newer editor. | empty on Notes |
| `pins` | array | Pin positions of the post. | when not pinned |
| `top_exclusions` | array | Places where the post is excluded from top lists. | usually empty |
| `nextPostSlug` | string | Slug of the next post. | for the newest post, or with `includeContent` off |
| `previousPostSlug` | string | Slug of the previous post. | for the first post, or with `includeContent` off |
| `podcastFields` | object | Podcast settings of the post. | empty for non-podcast posts |
| `podcastUpload` | object | Podcast file details. | empty for non-podcast posts |
| `podcastPreviewUpload` | object | Podcast preview file details. | empty without a preview |
| `podcast_upload_id` | string | Podcast file id. | empty for non-podcast posts |
| `podcast_preview_upload_id` | string | Podcast preview file id. | empty without a preview |
| `podcast_episode_image_info` | object | Episode image details. | empty for non-podcast posts |
| `podcast_episode_image_url` | string | Episode image link. | empty for non-podcast posts |
| `videoUpload` | object | Video file details. | empty for non-video posts |
| `video_upload_id` | string | Video file id. | empty for non-video posts |
| `voiceoverUpload` | object | Voice-over file details. | empty without a voice-over |
| `voiceover_upload_id` | string | Voice-over file id. | empty without a voice-over |
| `restacked_post_id` | integer | Id of the post this post restacks. | empty for original posts |
| `restacked_post_slug` | string | Slug of that post. | same |
| `restacked_pub_logo_url` | string | Logo of that post's newsletter. | same |
| `restacked_pub_name` | string | Name of that post's newsletter. | same |
| `position` | integer | Position of the row within its input (1 = first). | never |
| `context` | object | Feed context of a Note (how it appears in the author's feed). | empty on posts |
| `post` | object | The post attached to a Note. | empty on posts and Notes without a post |
| `main_post_id` | integer | Id of that attached post. | same as `post` |
| `main_post_title` | string | Title of that attached post. | same as `post` |
| `main_post_url` | string | Link of that attached post. | same as `post` |
| `main_post_published_at` | string | Publish date of that attached post. | same as `post` |
| `comments` | array | Comments with nested replies (author, handle, date, text, reactions). | with `includeComments` off or no comments |
| `commentsScraped` | integer | Comments saved in `comments`. | with `includeComments` off |
| `keyword` | string | The keyword that found the row. | empty for links and handles |
| `inputUrl` | string | The input that produced the row. | never |
| `scrapedAt` | string | When the row was saved (UTC). | never |

**Author and newsletter fields**

| Field | Type | Meaning | When it can be empty |
|---|---|---|---|
| `authorId` | integer | Author id. | rarely |
| `authorName` | string | Author name. | rarely |
| `author` | string | Same as `authorName` (second name). | same |
| `name` | string | Same as `authorName` (third name). | same |
| `authorHandle` | string | Author handle. | rarely |
| `handle` | string | Same as `authorHandle` (second name). | same |
| `authorBio` | string | Author bio. | when the author wrote none, or with `includePublicationInfo` off |
| `authorPhotoUrl` | string | Author photo link. | when the author has none |
| `authorImageUrl` | string | Same as `authorPhotoUrl` (second name). | same |
| `publishedBylines` | array | All authors of the post with id, name, handle and bio. | empty on Notes |
| `bylines` | array | Same as `publishedBylines` (second name). | same |
| `bestsellerTier` | integer | Bestseller badge tier of the first author (e.g. 100, 1000). | when the author has no badge |
| `publicationId` | integer | Newsletter id. | rarely |
| `publicationName` | string | Newsletter name. | rarely |
| `newsletter` | string | Same as `publicationName` (second name). | same |
| `publicationUrl` | string | Newsletter link. | rarely |
| `publicationHandle` | string | Newsletter subdomain. | for custom domains without a known subdomain |
| `publication` | object | Newsletter id, name, link and logo in one object. | rarely |
| `publicationLogo` | string | Newsletter logo link. | when there is no logo |
| `publicationDescription` | string | Newsletter description. | with `includePublicationInfo` off |
| `subscriberCount` | integer | Subscriber count as a number (a lower bound when the newsletter shows a rounded value). | when the newsletter hides it |
| `subscriberCountText` | string | Subscriber count exactly as shown (for example 75K+). | same |
| `paymentsEnabled` | boolean | true when paid subscriptions are on. | with `includePublicationInfo` off |

Here is a shortened real row from a Substack Scraper test run:

```json
{
  "recordType": "post",
  "id": 224270395,
  "title": "Locating the source of a mysterious beep with Claude",
  "url": "https://simonw.substack.com/p/locating-the-source-of-a-mysterious",
  "type": "newsletter",
  "audience": "everyone",
  "publishedAt": "2026-11-10T07:41:51.409Z",
  "wordcount": 5034,
  "readingTimeMinutes": 21,
  "reactionCount": 30,
  "commentCount": 11,
  "restacks": 2,
  "tags": ["alms", "ai"],
  "authorName": "Simon Willison",
  "authorHandle": "simonw",
  "publicationName": "Simon Willison's Newsletter",
  "publicationUrl": "https://simonw.substack.com",
  "subscriberCount": 75000,
  "subscriberCountText": "75K+",
  "scrapedAt": "2026-11-14T13:47:27+00:00"
}
```

#### Substack Scraper compared with similar tools

Before building Substack Scraper we compared the five most used tools of this kind. Substack Scraper offers every option that works without a login. This table shows the main features and how Substack Scraper handles them:

| Feature | Offered by (of 5) | Substack Scraper |
|---|---|---|
| newsletter / post URLs | 3 | yes - urls (+ @handle, bare subdomain, custom domain) |
| keyword search | 5 | yes - keywords (posts or newsletters), searchKeyword inside a newsletter |
| full content (HTML / text) | 2-3 | yes - includeContent + contentFormat |
| comments with replies | 3-4 | yes - includeComments, maxCommentsPerPost |
| date range | 2 | yes - dateFrom / dateTo |
| Notes of a handle | 3 | yes - notesHandles, maxNotesPerHandle |
| sort / type / audience filters | 1 each | yes - sortBy, contentType, audienceFilter |
| subscriber count and newsletter info | 2 | yes |
| every output field of the 5 (122) | 1-5 | yes - all 122 |

#### Which columns can be empty

Measured in our latest test run (`q5v9sMartfTIET3Ap`, 2026-11-21, 25 rows). Every column below was checked against the original record of those rows: the value is not published there (or the column belongs to another row type or to an option that was off), so there is nothing to fill.

| Column | Empty rows | Why it is empty |
|---|---|---|
| `facepile` | Note rows | only post rows get the liker / restacker list (`includeFacepile`); Note rows (`recordType` note) have none; a post nobody liked yet has empty lists |
| `markdownFileKey` | Note rows | only posts are saved as Markdown files (`outputMarkdownFiles`) |
| `bestsellerTier` | 25 of 25 | when the author has no badge |
| `default_comment_sort` | 25 of 25 | when the author kept the default |
| `keyword` | 25 of 25 | empty for links and handles |
| `pins` | 25 of 25 | when not pinned |
| `podcastDuration` | 25 of 25 | empty for non-podcast posts |
| `podcastPreviewUpload` | 25 of 25 | empty without a preview |
| `podcastUpload` | 25 of 25 | empty for non-podcast posts |
| `podcastUrl` | 25 of 25 | empty for non-podcast posts |
| `podcast_episode_image_info` | 25 of 25 | empty for non-podcast posts |
| `podcast_episode_image_url` | 25 of 25 | empty for non-podcast posts |
| `podcast_preview_upload_id` | 25 of 25 | empty without a preview |
| `podcast_upload_id` | 25 of 25 | empty for non-podcast posts |
| `postCountryBlocks` | 25 of 25 | when it is blocked nowhere |
| `restacked_post_id` | 25 of 25 | empty for original posts |
| `restacked_post_slug` | 25 of 25 | same |
| `restacked_pub_logo_url` | 25 of 25 | same |
| `restacked_pub_name` | 25 of 25 | same |
| `sectionName` | 25 of 25 | when the newsletter has no sections |
| `section_id` | 25 of 25 | same |
| `section_slug` | 25 of 25 | same |
| `top_exclusions` | 25 of 25 | usually empty |
| `videoUpload` | 25 of 25 | empty for non-video posts |
| `video_upload_id` | 25 of 25 | empty for non-video posts |
| `voiceoverUpload` | 25 of 25 | empty without a voice-over |
| `voiceover_upload_id` | 25 of 25 | empty without a voice-over |
| `podcastFields` | 23 of 25 | empty for non-podcast posts |
| `socialTitle` | 17 of 25 | when the author set none |
| `main_post_id` | 16 of 25 | same as `post` |
| `main_post_published_at` | 16 of 25 | same as `post` |
| `main_post_title` | 16 of 25 | same as `post` |
| `main_post_url` | 16 of 25 | same as `post` |
| `post` | 16 of 25 | empty on posts and Notes without a post |
| `attachments` | 15 of 25 | empty on posts and on Notes without attachments |
| `context` | 15 of 25 | empty on posts |
| `nextPostSlug` | 11 of 25 | for the newest post, or with `includeContent` off |
| `audience` | 10 of 25 | empty on Notes |
| `audienceType` | 10 of 25 | empty on Notes |
| `audioItems` | 10 of 25 | empty when the post has no audio |
| `audioUrl` | 10 of 25 | when the post has no audio |
| `bodyHtml` | 10 of 25 | with `includeContent` off or `contentFormat` text |
| `bodyIsPreview` | 10 of 25 | empty on Notes |
| `bylines` | 10 of 25 | same |
| `canonicalUrl` | 10 of 25 | empty on Notes |
| `childCommentCount` | 10 of 25 | empty on Notes |
| `comments` | 10 of 25 | with `includeComments` off or no comments |
| `commentsScraped` | 10 of 25 | with `includeComments` off |
| `contentFetched` | 10 of 25 | empty on Notes |
| `contentHtml` | 10 of 25 | same |
| `coverImage` | 10 of 25 | when the post has no cover |
| `coverImagePalette` | 10 of 25 | when there is no cover |
| `coverImageUrl` | 10 of 25 | same |
| `cover_image_is_square` | 10 of 25 | empty on Notes |
| `description` | 10 of 25 | same as `subtitle` |
| `editor_v2` | 10 of 25 | empty on Notes |
| `freeUnlockRequired` | 10 of 25 | empty on Notes |
| `hasCashtag` | 10 of 25 | empty on Notes |
| `hasVoiceover` | 10 of 25 | empty on Notes |
| `image_url` | 10 of 25 | same |
| `isGeoblocked` | 10 of 25 | empty on Notes |
| `isPaid` | 10 of 25 | empty on Notes |
| `isPaywalled` | 10 of 25 | empty on Notes |
| `is_section_pinned` | 10 of 25 | empty on Notes |
| `postTags` | 10 of 25 | same |
| `post_date` | 10 of 25 | empty on Notes |
| `previousPostSlug` | 10 of 25 | for the first post, or with `includeContent` off |
| `publicationHandle` | 10 of 25 | for custom domains without a known subdomain |
| `publishedBylines` | 10 of 25 | empty on Notes |
| `readingTimeMinutes` | 10 of 25 | empty on Notes |
| `should_send_free_preview` | 10 of 25 | empty on Notes |
| `slug` | 10 of 25 | empty on Notes |
| `subtitle` | 10 of 25 | when the author wrote none; empty on Notes |
| `tags` | 10 of 25 | when the post has no tags |
| `teaserPostEligible` | 10 of 25 | empty on Notes |
| `title` | 10 of 25 | empty on Notes |
| `truncatedBodyText` | 10 of 25 | empty on Notes |
| `updatedAt` | 10 of 25 | when never edited, or with `includeContent` off |
| `wordcount` | 10 of 25 | empty on Notes |
| `writeCommentPermissions` | 10 of 25 | empty on Notes |
| `bodyText` | 9 of 25 | with `includeContent` off or `contentFormat` html |
| `contentText` | 9 of 25 | same |
| `language` | 9 of 25 | rarely |

#### How much does Substack Scraper cost?

Substack Scraper uses pay-per-result pricing: you pay for each row Substack Scraper saves, plus the Apify platform usage of the run.

| Apify plan | Price per 1,000 results |
|---|---|
| Free | $1.49 |
| Starter | $1.39 |
| Scale | $1.29 |
| Business | $1.19 |

**One result** = one saved post or Note. Comments are inside the post row and are not charged separately.

**Worked example:** a 400-post newsletter archive costs 400 / 1,000 x $1.49 = **$0.60** on the free plan, plus platform usage (our 10-post test run used less than one cent of platform usage). Notes of 4 authors with 50 Notes each are 200 rows = $0.30.

**How to cap the cost:** set `maxItems` (Substack Scraper never saves more rows), use the per-input limits, and set "Maximum cost per run" in the run options of Apify Console.

#### Tips for Substack Scraper

- Set `maxPostsPerNewsletter` to 0 to export a whole archive; Substack Scraper keeps paging until the first post.
- Turn off full content when you only need titles, dates and engagement - runs are faster and cheaper.
- Use `sortBy` top to get the most popular posts of a newsletter first.
- Combine `dateFrom` with `sortBy` new: Substack Scraper stops at the first page older than your date.
- For author Notes, give the handle as it appears in the profile link, for example @noahpinion.

#### Limits of Substack Scraper

Substack Scraper only collects public information that anyone can see without logging in. Known limits of Substack Scraper:

- Paid posts give only the free preview that every visitor sees; `bodyIsPreview` is true on those rows.
- For large newsletters Substack shows a rounded subscriber number (for example 75K+); `subscriberCount` is that lower bound and `subscriberCountText` keeps the text exactly as shown.
- Posts, Notes and newsletters that Substack flags as explicit are left out.
- `searchEngineTitle`, `searchEngineDescription`, `sectionName` and the podcast fields are filled only when the author set them (often empty).
- The newsletter order offers newest and most popular; oldest-first is reached with a date window.

#### API usage of Substack Scraper

You can start Substack Scraper from any language through the Apify API. All examples use input example 1 with a 50-post cap.

**Apify API (curl)** - runs Substack Scraper and returns the rows in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/neuro-scraper~substack-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://simonw.substack.com"], "maxPostsPerNewsletter": 50, "contentFormat": "text"}'
```

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("neuro-scraper/substack-scraper").call(run_input={
    "urls": ["https://simonw.substack.com"],
    "maxPostsPerNewsletter": 50,
    "contentFormat": "text",
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["publishedAt"], row["title"], row["reactionCount"])
```

**Node.js** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('neuro-scraper/substack-scraper').call({
    urls: ['https://simonw.substack.com'],
    maxPostsPerNewsletter: 50,
    contentFormat: 'text',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((r) => r.title));
```

Substack Scraper also works with every Apify integration: start Substack Scraper from Make, Zapier or n8n, get a webhook when Substack Scraper finishes, or use Substack Scraper as a tool for AI agents through the Apify MCP server.

#### FAQ about Substack Scraper

**Do I need an account on the website to use Substack Scraper?**

No. Substack Scraper works without any login, cookie or account. Substack Scraper only collects public data.

**Why did Substack Scraper return fewer results than my maximum?**

The limits are maximums. A newsletter can have fewer posts than `maxPostsPerNewsletter`, a keyword can match fewer posts, and filters (`contentType`, `audienceFilter`, dates, `minReactions`, `minComments`) drop posts. The log says for every input why it stopped.

**Why is a field empty in Substack Scraper?**

Many fields exist only for some posts: podcast fields only on podcast posts, `sectionName` only when the newsletter uses sections, `searchEngineTitle` only when the author set one. Post fields such as `title` are empty on Note rows. Body fields are empty with `includeContent` off, and `comments` with `includeComments` off.

**How do I get only new posts with Substack Scraper?**

Schedule Substack Scraper daily with `sortBy` new and `dateFrom` set to the previous day; paging stops at the first older page, so each run is small.

**Can I run many newsletters in one run of Substack Scraper?**

Yes. Put all of them into `urls`; each gets up to `maxPostsPerNewsletter` posts, and `maxItems` caps the whole run.

**How fast is Substack Scraper?**

About 12 posts per page; with full content on, each post takes one more request. A 100-post newsletter finishes in about a minute.

**Can Substack Scraper export a newsletter on a custom domain?**

Yes. Give Substack Scraper the custom domain (for example https://www.lennysnewsletter.com) exactly like a substack.com subdomain.

**Does Substack Scraper get paid posts?**

Only the public part. Substack Scraper never logs in, so a paid post gives the free preview, and the row says so in `bodyIsPreview`.

**Can Substack Scraper collect comments?**

Yes. Turn on `includeComments` and set `maxCommentsPerPost`; replies stay nested under their parent comment.

**Can I export the Substack Scraper results to Excel or Google Sheets?**

Yes. Every Substack Scraper dataset exports to CSV, Excel (XLSX), JSON, XML and HTML, and the Google Sheets integration can append the rows of Substack Scraper to a sheet after every run.

#### Is it legal to use Substack Scraper?

Substack Scraper collects only data that the website shows publicly to every visitor. Still, data you collect with Substack Scraper can include personal data, which is protected by laws such as the GDPR in Europe and the CCPA in California. Use Substack Scraper only for legitimate purposes, do not collect personal data without a legal basis, and check the terms of the website you work with. If you are unsure, ask a lawyer before you use Substack Scraper at scale.

#### Feedback on Substack Scraper

Found a bug in Substack Scraper or missing a field? Open an issue on the Substack Scraper page in Apify Console. We read every report and improve Substack Scraper quickly.

### Why use the Substack Scraper (Posts & Newsletters)

The Substack Scraper (Posts & Newsletters) is a Substack scraper and Substack data extractor for anyone who needs public Substack data as clean data. The Substack Scraper (Posts & Newsletters) handles web scraping, proxy rotation and retries for you, so you get a ready dataset instead of raw pages. Use the Substack Scraper (Posts & Newsletters) for market research, competitor analysis, lead generation, analytics or monitoring, and export the results to JSON, CSV, Excel or Google Sheets.

- No login and no code: the Substack Scraper (Posts & Newsletters) runs on Apify with one click or one API call.
- Pay per result: the Substack Scraper (Posts & Newsletters) charges only for rows delivered - no monthly Substack API fee.
- Complete fields: the Substack Scraper (Posts & Newsletters) returns every public field, with a stable schema for automation.
- Integrations: connect the Substack Scraper (Posts & Newsletters) to Zapier, Make, n8n, Google Sheets, a webhook or your CRM.

### Substack Scraper (Posts & Newsletters) use cases

- Market research: the Substack Scraper (Posts & Newsletters) collects Substack data at scale, so you can compare trends across weeks and niches.
- Competitor analysis: run the Substack Scraper (Posts & Newsletters) on a schedule and export the dataset to Google Sheets or Excel to watch what competitors publish.
- Lead generation and B2B prospecting: the Substack Scraper (Posts & Newsletters) gives a sales or agency team a clean list to load into a CRM.
- Content and social media monitoring: the Substack Scraper (Posts & Newsletters) keeps a fresh copy of Substack data through an Apify schedule and a webhook.
- Analytics and dashboards: send the Substack Scraper (Posts & Newsletters) output as JSON through the Apify API into Python, Node.js or a BI tool.
- Academic and data science projects: the Substack Scraper (Posts & Newsletters) returns a consistent schema, ready for pandas, R or a notebook.
- Price, product and brand tracking: the Substack Scraper (Posts & Newsletters) turns public Substack data into a dataset you can diff run by run.
- Automation workflows: connect the Substack Scraper (Posts & Newsletters) to Zapier, Make or n8n so every new row starts your next step.

### How to run it with the API, Python and Node.js

Start the Substack Scraper (Posts & Newsletters) from the Apify Console, or call it from code. The Substack Scraper (Posts & Newsletters) returns its dataset as JSON, CSV or Excel. With the Apify API you can run the Substack Scraper (Posts & Newsletters) from Python or Node.js, wait for it to finish and read the rows, which makes the Substack Scraper (Posts & Newsletters) easy to plug into an automation, a data pipeline or a scheduled export.

1. Open the Substack Scraper (Posts & Newsletters) on Apify and fill in the input (or send the same input as JSON to the API).
2. Start the Substack Scraper (Posts & Newsletters). Follow the run log while the Substack Scraper (Posts & Newsletters) collects public Substack data.
3. Download the dataset as CSV, JSON, Excel or XLSX, or let a webhook send it on.
4. Schedule the Substack Scraper (Posts & Newsletters) to keep your Substack data fresh for monitoring and analytics.

### Tips for better results

- Start small: run the Substack Scraper (Posts & Newsletters) with a low maximum first, check the fields, then scale up the same input.
- Split big jobs: several smaller Substack Scraper (Posts & Newsletters) runs (by keyword, URL list or date) finish faster and are easier to resume.
- Keep a history: name a dataset or use a schedule so each Substack Scraper (Posts & Newsletters) run adds to your Substack data over time.
- Filter early: use the input filters of the Substack Scraper (Posts & Newsletters) so you only pay for the Substack data you really need.
- Automate the hand-off: a webhook or the Zapier and Make integrations can move every Substack Scraper (Posts & Newsletters) result straight to Google Sheets, a CRM or a database.
- Watch the run log: the Substack Scraper (Posts & Newsletters) writes what it is doing and why an item was skipped, so a surprising result is easy to explain.

### Substack Scraper (Posts & Newsletters) FAQ

#### How is this different from other Substack scrapers?

The Substack Scraper (Posts & Newsletters) combines complete public fields, no login, pay-per-result pricing and a stable output schema, so the Substack Scraper (Posts & Newsletters) fits both quick one-off exports and long-running automation.

#### What happens if a run is interrupted?

The Substack Scraper (Posts & Newsletters) saves its progress, so a resurrected or restarted run continues where it stopped instead of paying for the same rows again.

#### Can I schedule it?

Yes. Apify schedules run the Substack Scraper (Posts & Newsletters) hourly, daily or weekly, and a webhook can notify your system when new Substack data is ready.

#### Can I export the results to Excel, CSV or Google Sheets?

Yes. Every Substack Scraper (Posts & Newsletters) run stores a dataset you can export as CSV, JSON, Excel (XLSX), XML or HTML, or send to Google Sheets with the Apify integration.

#### Does it work with proxies?

Yes. The Substack Scraper (Posts & Newsletters) uses Apify Proxy by default and you can pick the proxy group or country in the input.

#### Can I run it for many inputs at once?

Yes. Give the Substack Scraper (Posts & Newsletters) a list of inputs in one run; each row says which input it came from, so one Substack Scraper (Posts & Newsletters) run can cover a whole list.

#### How do I get more results?

Raise the maximum items, add more inputs (keywords, URLs or profiles), or run the Substack Scraper (Posts & Newsletters) several times on a schedule. Results are de-duplicated.

#### Can I use it through the API?

Yes. Start the Substack Scraper (Posts & Newsletters) and read its dataset through the Apify API from Python, Node.js or any HTTP client, or call it from Zapier, Make and n8n.

#### Can I send the data to my CRM?

Yes. Push Substack Scraper (Posts & Newsletters) rows to HubSpot, Salesforce, Pipedrive or any CRM through Zapier, Make or a webhook - a common setup for an agency or B2B sales team.

#### Why is a field empty in my results?

The Substack Scraper (Posts & Newsletters) fills every field Substack publishes for that item. When Substack does not show a value - for example a figure the owner hid - the field stays empty rather than being guessed.

#### Do I need a Substack account or login?

No. The Substack Scraper (Posts & Newsletters) works with no login and no cookies. It reads only public data, the same data any visitor can see.

#### How much does it cost?

The Substack Scraper (Posts & Newsletters) is pay per result: you pay only for the rows you receive, with lower prices on higher Apify plans. You can cap the cost of every run with the maximum cost setting.

#### Do you offer custom scrapers?

Yes. If you need a field or a filter the Substack Scraper (Posts & Newsletters) does not have yet, contact Neuro Scraper through the Apify Store page and we can extend the Substack Scraper (Posts & Newsletters) for you.

### Get started

Open the Substack Scraper (Posts & Newsletters), paste your input and press Start. In a few minutes the Substack Scraper (Posts & Newsletters) hands you clean Substack data as JSON, CSV or Excel, ready for analytics, monitoring, research or your CRM. Questions or a missing field? Write to us from the Substack Scraper (Posts & Newsletters) page on Apify - we answer fast and add features users ask for.

### More scrapers from Neuro Scraper

| Actor | What it extracts |
|---|---|
| ⭐ **[Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** | Facebook Reels with exact views, plays, every reaction type, comments and shares |
| [Snapchat Profile Scraper](https://apify.com/neuro-scraper/snapchat-profile-scraper) | Snapchat profile data with all public fields, exported to JSON, CSV or Excel |
| [Amazon Scraper](https://apify.com/neuro-scraper/amazon-keyword-scraper) | Amazon data with all public fields, exported to JSON, CSV or Excel |
| [Instagram Reels Scraper](https://apify.com/neuro-scraper/instagram-reels-scraper) | Instagram reels with all public fields, exported to JSON, CSV or Excel |
| [Facebook Video Details Scraper](https://apify.com/neuro-scraper/facebook-video-details-scraper) | Facebook video details with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Scraper Advanced](https://apify.com/neuro-scraper/facebook-reels-scraper-advanced) | Facebook reels  advanced data with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Downloader](https://apify.com/neuro-scraper/facebook-reels-downloader) | Facebook reels with all public fields, exported to JSON, CSV or Excel |
| [Instagram Search Scraper](https://apify.com/neuro-scraper/instagram-video-scraper-advanced) | Instagram search data with all public fields, exported to JSON, CSV or Excel |
| [TikTok Video Details Scraper](https://apify.com/neuro-scraper/tiktok-video-details-scraper) | TikTok video details with all public fields, exported to JSON, CSV or Excel |
| [Instagram Hashtag Scraper](https://apify.com/neuro-scraper/instagram-reeel-scraper) | Instagram hashtag data with all public fields, exported to JSON, CSV or Excel |
| [TikTok Profile Scraper](https://apify.com/neuro-scraper/tiktok-profile-scraper) | TikTok profile data with all public fields, exported to JSON, CSV or Excel |
| [Amazon Best Sellers Scraper](https://apify.com/neuro-scraper/amazon-per-result-scraper) | Amazon best sellers with all public fields, exported to JSON, CSV or Excel |
| [Facebook Photos Scraper](https://apify.com/neuro-scraper/facebook-photo-posts-scraper) | Facebook photos with all public fields, exported to JSON, CSV or Excel |

# Actor input Schema

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

Substack newsletters or posts, one per line: a newsletter home page (https://simonw.substack.com), a custom domain (https://www.lennysnewsletter.com), an /archive URL, a post URL (https://simonw.substack.com/p/<slug>, https://open.substack.com/pub/<name>/p/<slug>), an author profile (https://substack.com/@simonw = the author's main newsletter) or just the subdomain (simonw).

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

Topics to search across all of Substack, one per line, e.g. "climate policy", "artificial intelligence". What is collected depends on Keyword mode below.

## `keywordMode` (type: `string`):

posts = the posts Substack's own search returns for each keyword (across all newsletters); newsletters = Substack's newsletter search for each keyword, then up to 'Max posts per newsletter' from each newsletter found.

## `maxSearchResultsPerKeyword` (type: `integer`):

Posts (mode posts) or newsletters (mode newsletters) to take per keyword. The scraper follows Substack's search pages (cursor) until this number or the end of the results.

## `searchKeyword` (type: `string`):

Only posts of the given newsletters that match this word or phrase, e.g. "sqlite" - Substack's own archive search (applied by Substack on the server).

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

Order in which a newsletter's archive is read - Substack's own archive sort.

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

Stop each newsletter after this many posts. The scraper pages through the newsletter's archive (12 posts per page) until this number or the first post. 0 = the whole archive.

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

Stop the run after this many rows in total (posts + Notes from every input). 0 = no total limit.

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

Open every post for its full body (HTML and/or text), last-update date and next/previous post. One extra request per post. Paid posts give the free preview part only (Substack's paywall). Off = metadata only (faster).

## `contentFormat` (type: `string`):

Which body columns to fill when 'Include full post content' is on: bodyHtml, bodyText or both.

## `includeComments` (type: `boolean`):

Add each post's public comments with their nested replies (author name, handle, date, text, reactions) in the comments column. One extra request per post that has comments.

## `maxCommentsPerPost` (type: `integer`):

Comments per post including replies, best first (Substack sends the whole thread in one answer; the list is cut here). 0 = all.

## `includePublicationInfo` (type: `boolean`):

Add the newsletter's name, description, logo, subscriber count, paid-plan status and the author's bio (one extra request per newsletter; keyword search results already carry it).

## `contentType` (type: `string`):

Keep only this post type (the type field Substack gives each post; filtered by the scraper).

## `audienceFilter` (type: `string`):

Keep free posts (audience everyone) or paid posts only (filtered by the scraper on Substack's audience field).

## `dateFrom` (type: `string`):

Only posts published on or after this date (YYYY-MM-DD). With 'Newest first' the archive stops at the first page older than this date.

## `dateTo` (type: `string`):

Only posts published on or before this date (YYYY-MM-DD).

## `minReactions` (type: `integer`):

Only posts with at least this many reactions (likes). 0 = off.

## `minComments` (type: `integer`):

Only posts with at least this many comments. 0 = off.

## `notesHandles` (type: `array`):

Substack handles or profile URLs (simonw, @simonw, https://substack.com/@simonw) whose own public Notes to collect from their profile activity feed (one row per Note: text, date, reactions, restacks, replies count, attachments as image / link / post / quoted-Note entries). Other authors' Notes they restacked are skipped.

## `maxNotesPerHandle` (type: `integer`):

Notes per handle. The scraper follows the profile feed's cursor until this number or the end of the feed.

## `minRestacks` (type: `integer`):

Only posts restacked at least this many times. 0 = off.

## `minWordCount` (type: `integer`):

Only posts with at least this many words (long-form only). 0 = off.

## `hasPodcast` (type: `string`):

Keep only posts that carry an audio / podcast episode, or only those without.

## `language` (type: `string`):

Two-letter language code (en, de, fr, es ...). Keeps only posts Substack marks with that language. Empty = all.

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

Only posts of newsletters with at least this many subscribers (Substack's public subscriber count). 0 = off.

## `paymentsEnabledOnly` (type: `boolean`):

Only posts of newsletters that have paid subscriptions turned on.

## `includeFacepile` (type: `boolean`):

Adds a facepile column per post: the public profiles (name, handle, photo, their newsletter) of the people Substack shows as having liked and restacked the post. One extra request per post.

## `outputMarkdownFiles` (type: `boolean`):

Also saves every post as a .md file (title, subtitle, date, link, text) in the run's key-value store; the row gets markdownFileKey.

## `enableHistory` (type: `boolean`):

Appends a snapshot of each post's likes, comments, restacks and word count to a named dataset that stays after the run, so scheduled runs build a time series.

## `historyDatasetName` (type: `string`):

Name of the dataset that collects the history snapshots (letters, digits, dashes).

## `maxConcurrency` (type: `integer`):

How many newsletter / post links are read at the same time, each with its own session.

## `minDelayMs` (type: `integer`):

Minimum pause between two requests of one session, in milliseconds (a small random jitter is added).

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

Substack answered every logged-out request without a challenge in tests; residential proxies are the default for steady runs on the Apify platform.

## Actor input object example

```json
{
  "urls": [
    "https://simonw.substack.com"
  ],
  "keywords": [],
  "keywordMode": "posts",
  "maxSearchResultsPerKeyword": 20,
  "searchKeyword": "",
  "sortBy": "new",
  "maxPostsPerNewsletter": 20,
  "maxItems": 100,
  "includeContent": true,
  "contentFormat": "both",
  "includeComments": false,
  "maxCommentsPerPost": 20,
  "includePublicationInfo": true,
  "contentType": "all",
  "audienceFilter": "all",
  "dateFrom": "",
  "dateTo": "",
  "minReactions": 0,
  "minComments": 0,
  "notesHandles": [],
  "maxNotesPerHandle": 50,
  "minRestacks": 0,
  "minWordCount": 0,
  "hasPodcast": "any",
  "minSubscribers": 0,
  "paymentsEnabledOnly": false,
  "includeFacepile": false,
  "outputMarkdownFiles": false,
  "enableHistory": false,
  "historyDatasetName": "substack-history",
  "maxConcurrency": 3,
  "minDelayMs": 800,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One row per result, in the run's default dataset.

# 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://simonw.substack.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/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://simonw.substack.com"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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