Skip to content

About

Substack scraper, $0.50 per 1,000 posts: Substack posts from any Substack newsletter archive, custom domains included, with title, date, author, likes, comments, restacks, paid flag and Substack full text. Newsletter posts scraper; newest or top, no login.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Substack Scraper - Newsletter Posts & Full Text

This repository holds usage examples only. The scraper itself runs on Apify: https://apify.com/sumitr_mardy/substack-scraper (no install, no server, pay per result).

Examples here: Python · Node.js · cURL · input.json

Scrape every post of any Substack newsletter, custom domains included: title, date, author, likes, comments, restacks, word count, paid flag and, if you want, the full text as clean text and HTML. Newest first or most liked, with an optional date cut-off.

Built for newsletter writers studying competitors, marketers tracking a niche, researchers, and AI pipelines that need newsletter text.

$0.50 per 1,000 posts. Failed newsletters are free. No login, no Substack account.

Try it in one minute, no code

  1. Open the Substack Scraper on Apify Store and click Try for free. Apify's free plan gives you $5 of credit every month, no credit card needed.
  2. Paste a newsletter URL, such as https://astralcodexten.substack.com.
  3. Click Start, then download the results as Excel, CSV or JSON, or send them to Google Sheets.

Price: $0.50 per 1,000 posts. The free $5 covers about 10,000 posts a month.

Real output from a run of the default input:

Title Date Likes Comments Words
Varieties Of Discourseposting 2026-11-18 220 152 1552
Open Thread 460 2026-11-17 63 413 108
Vote In The 2026 Book Review Contest 2026-11-14 61 69 146

What you get

Field Example
newsletter, newsletterUrl Astral Codex Ten, https://astralcodexten.substack.com
postId, title, subtitle, url, slug 225455324, Varieties Of Discourseposting, https://www.astralcodexten.com/p/...
type, postDate newsletter, 2026-11-18T07:47:03.648Z
audience, isPaid everyone, false
author, authors Scott Alexander, ["Scott Alexander"]
wordCount, likes, comments, restacks 1552, 218, 152, 15
section, tags, coverImage, podcastUrl
contentText, contentHtml full body with Include full text
status ok, no_results, failed, not_found, invalid_input

Fixed shape: numbers 0 when unknown, lists always lists, text "" when missing.

How to use it

  • Newsletters: one per line, as a subdomain (astralcodexten), a URL (https://www.lennysnewsletter.com) or any post URL from the newsletter.
  • Max posts per newsletter: newest first, or most liked with Sort = Top.
  • Include full text: adds the body as text and HTML (one extra request per post, same price).
  • Published after: only posts on or after a date (with Newest first).

Pricing

Pay per event, $0.0005 per post ($0.50 per 1,000), cheaper on higher Apify plans. Full text costs nothing extra. Failed newsletters and invalid inputs are free; each post is billed once per run. Apify adds its standard tiny start event per run.

Honest limits

  • Paid posts: only the free preview Substack shows to non-subscribers. isPaid tells you which ones.
  • No subscriber counts per post or open rates: Substack does not publish them.
  • No comment text in this version, only the comment count.
  • Public data only. Use it in line with Substack's terms.

What can you do with Substack data?

  • Export a newsletter's full archive to CSV
  • Find the most liked posts of competing newsletters
  • Feed newsletter text to an LLM or a reading archive

How to scrape Substack

  1. Open the actor and click Try for free (an Apify account is free, no card needed).
  2. Fill in Newsletters (subdomain or custom domain).
  3. Click Start and wait for the run to finish.
  4. Download the results as JSON, CSV, Excel or HTML, or get them through the API, Zapier, Make, n8n or MCP.

How much does it cost to scrape Substack?

It costs $0.50 per 1,000 posts on the free plan, less on paid Apify plans, and failed inputs cost nothing. Apify's free plan includes $5 of monthly credit, which covers about 10,000 posts every month.

Is it legal to scrape Substack?

This actor only reads publicly available data and does not log in. Scraping public data is generally lawful, but results can include personal data protected by GDPR, CCPA and similar laws, and each website has its own terms. Use the data for legitimate purposes and ask a lawyer if you are unsure.

Related scrapers

Use it from AI agents (MCP)

Hosted, with OAuth sign-in:

{
    "mcpServers": {
        "substack": {
            "url": "https://mcp.apify.com/?tools=sumitr_mardy/substack-scraper"
        }
    }
}

With an API token instead of OAuth:

{
    "mcpServers": {
        "substack": {
            "url": "https://mcp.apify.com/?tools=sumitr_mardy/substack-scraper",
            "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
        }
    }
}

Local stdio:

{
    "mcpServers": {
        "substack": {
            "command": "npx",
            "args": ["-y", "@apify/actors-mcp-server", "--actors", "sumitr_mardy/substack-scraper"],
            "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
        }
    }
}

Run it from code

Python:

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("sumitr_mardy/substack-scraper").call(run_input={
    "newsletters": ["astralcodexten"],
    "maxPostsPerNewsletter": 20,
    "includeContent": True,
})
for p in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(p["postDate"][:10], p["title"], p["likes"], len(p["contentText"]))

cURL (waits for the run and returns the rows):

curl -X POST "https://api.apify.com/v2/acts/sumitr_mardy~substack-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"newsletters":["https://www.lennysnewsletter.com"],"maxPostsPerNewsletter":25,"sort":"top"}'

Node.js

import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("sumitr_mardy/substack-scraper").call({
  "newsletters": [
    "astralcodexten",
    "https://www.lennysnewsletter.com"
  ]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

FAQ

Do custom domains work? Yes. Paste the newsletter's own address, e.g. https://www.lennysnewsletter.com.

Which posts did best? Set Sort to Top: posts come back most liked first, with likes, comments and restacks.

Can I keep an archive up to date? Schedule the actor with Published after set to your last run's date.

About

Substack scraper, $0.50 per 1,000 posts: Substack posts from any Substack newsletter archive, custom domains included, with title, date, author, likes, comments, restacks, paid flag and Substack full text. Newsletter posts scraper; newest or top, no login.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors