# Substack Scraper: Newsletters, Posts & Subscriber Counts (`moggedhq/substack-newsletter-scraper`) Actor

Find Substack newsletters by topic or category, from technology to finance. This newsletter finder returns subscriber counts, paid tiers, ranks, posting frequency and posts with likes and comments. $0.003 per newsletter, $0.0008 per post: 100 newsletters cost $0.30. No login.

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

## Pricing

from $2.40 / 1,000 publications

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Substack Scraper: Newsletters, Posts & Subscriber Counts

For sponsorship researchers, newsletter operators, agencies and analysts who need a repeatable view of public Substack publications and their posts.

Find newsletters about technology, finance, science or another topic. Read category leaderboards, inspect known publication URLs, and collect post engagement without an account. Each publication includes the subscriber label Substack shows, subscription plans and a measured posting window. Each post includes its publication identifier, date, audience, likes, comments, restacks and word count when available.

A publication costs **$0.003** and a post costs **$0.0008**, before plan discounts. A list of 100 newsletters costs about **$0.30**. Ten newsletters plus five posts from each costs about **$0.07**. A small platform start fee also applies. There is no extra comment-sample fee and no result fee for duplicates, empty searches or unavailable sources.

### What you get

| Record | Useful fields | What the fields mean |
| --- | --- | --- |
| Publication | `publicationId`, `name`, `subdomain`, `customDomain`, `url` | Stable publication identifier and public address, including custom domains |
| Audience size | `subscriberCountText`, `subscriberCountMin`, `subscriberCountDetail` | Public wording and its lower bound, rather than an invented exact audience |
| Subscription plans | `paidTiers` | Active standard and founding plans, billing interval, native currency, price and localized prices where provided |
| Category position | `leaderboardRank`, `category`, `leaderboardRankings` | Position in a selected Top Bestsellers or Rising chart, with the chart and source URL |
| Publication activity | `lastPostAt`, `postsPerMonth`, `frequencyWindowComplete` | Latest observed post and a complete 30-day posting count when the archive sample covers that window |
| Archive coverage | `postCount`, `archiveSampleSize`, `archiveCoverage` | A total only when the archive has actually ended; otherwise the total remains null |
| Public identity | `author`, `twitter`, `publicLinks`, `language` | Public publication attribution and links exposed in its JSON and About page |
| Post | `postId`, `publicationId`, `title`, `subtitle`, `publishedAt`, `audience` | Public metadata for a free or paid post |
| Engagement | `likes`, `comments`, `childComments`, `restacks`, `wordCount` | Source-provided counts, preserving zero separately from missing values |
| Optional discussion sample | `publicComments` | A capped set of public comments and nested replies, using display names only |
| Run summary | `SUMMARY` | Delivered counts, free failures, filters, duplicate discoveries and spending-limit status |

### Choose the right discovery route

**Topic search** accepts `searchTerms`. It follows Substack's public top-search results and identifies the publications associated with those results. It is useful for discovering related writers and publications, including publications whose names do not contain the topic. Results reflect Substack's relevance ranking. This is not an exhaustive search of every newsletter in a topic, and the results can include broad cultural or personal writing related to a query.

**Category discovery** accepts category names or slugs. It reads the public category leaderboard and records the visible position. `paid` selects Top Bestsellers; `trending` selects Rising. A category leaderboard is a chart of ranked publications, not a complete category directory. A chart position does not reveal the exact number of paying subscribers.

**Known URLs** accept publication homepages or `/p/post-slug` links. Both Substack subdomains and verified Substack custom domains work. A publication URL selects its archive. A post URL selects that post, together with its publication metadata if publication output is enabled. Reader profiles such as `substack.com/@handle`, app share links and sign-in pages are not publication URLs.

### Start in three steps

1. Enter one topic in `searchTerms`, or choose a category, or paste a publication URL into `startUrls`.
2. Select `publications`, `posts`, or both in `include`. Add `comments` only when you want a public discussion sample.
3. Set the limits, start the Actor, and inspect the dataset and `SUMMARY` record. Export JSON, CSV or Excel from Apify.

```json
{
  "searchTerms": ["technology"],
  "include": ["publications"],
  "maxPublications": 10
}
```

To inspect the finance chart and collect recent post engagement:

```json
{
  "categories": ["finance"],
  "leaderboard": "paid",
  "include": ["publications", "posts"],
  "maxPublications": 5,
  "maxPostsPerPublication": 10,
  "postedWithinDays": 30
}
```

```json
{
  "startUrls": ["https://aimaker.substack.com"],
  "include": ["publications", "posts"],
  "maxPublications": 1,
  "maxPostsPerPublication": 20,
  "postedWithinDays": 7
}
```

### Input reference

| Input | Default | Behavior |
| --- | --- | --- |
| `searchTerms` | Empty through API; technology in the editor prefill | Up to 50 topic queries |
| `categories` | Empty | Up to 40 current category names, slugs or identifiers |
| `startUrls` | Empty | Up to 100 publication or post URLs |
| `include` | publications | Any combination of publications, posts and comments; comments also enables posts |
| `maxPublications` | 10 | Global cap on distinct publications processed; maximum 1,000 |
| `maxPostsPerPublication` | 20 | Maximum delivered posts per publication; maximum 1,000; zero disables post output |
| `postedWithinDays` | 0 | Recency filter for delivered posts; zero means unrestricted |
| `maxCommentsPerPost` | 20 | Maximum embedded public comments including replies; maximum 100 |
| `leaderboard` | paid | `paid` for Top Bestsellers or `trending` for Rising |
| `includePublicLinks` | true | Read publication pages for extra public links; disable for faster discovery |
| `proxyConfiguration` | Direct HTTP | Optional Apify datacenter or custom proxy configuration |

At least one topic, category or URL is needed. Invalid input produces a free note and a summary, with no publication or post charge. Site refusals, unavailable posts and unsupported URLs also produce notes. Read the summary to distinguish a complete run, partial coverage and an input correction.

### Interpret the data correctly

A label such as `23K+` becomes `subscriberCountText: "23K+"` and `subscriberCountMin: 23000`. The number is a lower bound, not an exact subscriber total. `subscriberCountIsExact` is false. The more detailed public wording is retained separately when the source supplies it. Total subscriber labels and paid-subscriber labels remain separate, so a paying audience is never inferred from the total audience.

`paidTiers` records the web subscription plans supplied with the publication. Prices use each plan's native currency and billing interval. Localized prices are additional currency options, not exchange-rate conversions made by this Actor. Taxes, coupons, temporary offers and mobile-app pricing can change the amount seen at checkout. Founding plans may be minimum contribution levels.

`postsPerMonth` means posts observed in the fixed thirty days before the run began. It is not an extrapolated monthly estimate. If the archive sample does not cover the entire window, this field is null and `postsInLast30DaysObserved` supplies the observed lower bound. `frequencyAsOf`, `frequencyWindowDays`, `archiveSampleSize` and `frequencyWindowComplete` make the calculation auditable.

`postCount` is deliberately null unless pagination reaches the end of the archive. A sampled archive is not a verified lifetime total. The Actor samples recent archive pages for publication statistics, up to about 150 entries unless a larger post limit is requested.

Paid posts can expose metadata and engagement while keeping the article body restricted. This Actor returns the public metadata. It does not log in, accept account cookies, unlock paid articles or export article bodies. Missing counts remain null. A zero remains zero.

### Monitor newsletters every day

Save a task containing the topics, categories or known URLs you monitor. In Apify, create a daily or weekly schedule for that task and attach a dataset export or webhook to your reporting pipeline. The Actor does not create schedules automatically.

For a reliable history, retain `scrapedAt`, `publicationId`, subscriber labels, plan prices and chart positions in your database. Compare each new run with the previous snapshot. Deduplication applies within one run and across recovery of that same run. Separate scheduled runs intentionally return fresh snapshots and charge for their delivered records. Deduplicate downstream posts with `postId` when maintaining a content archive, while retaining multiple snapshots if you monitor engagement changes.

### Pricing examples

| Job | Publication and post charges before plan discounts |
| --- | --- |
| Ten newsletter profiles | $0.03 |
| One hundred newsletter profiles | $0.30 |
| One newsletter plus twenty posts | $0.019 |
| Ten newsletters plus five posts each | $0.07 |
| Fifty newsletters plus twenty posts each | $0.95 |

The small platform start charge is $0.00005 for the default memory setting. Bronze receives 5% off publication and post prices, Silver 10%, and Gold 20%. Publication and post fees are charged only after the row is saved. The Actor checks the buyer's maximum total charge before delivering another paid row, and stops cleanly when the remaining allowance is too small. The platform start charge can still apply to a run with no matching results.

### Use with AI agents (MCP)

Connect your assistant to [Apify MCP](https://mcp.apify.com), then ask it to find this Actor, inspect the input schema and run a small example. A useful request is: "Find ten Substack technology publications with public subscriber labels, paid plans and posting frequency, then return their publication IDs and URLs."

### API and integrations

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('moggedhq/substack-newsletter-scraper').call({
  searchTerms: ['science'],
  include: ['publications', 'posts'],
  maxPublications: 5,
  maxPostsPerPublication: 5,
  postedWithinDays: 30
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const rows = items.filter(row => row.type === 'publication' || row.type === 'post');
console.log(rows);
```

### Tested behavior

On 29 October 2026, 34 varied cloud inputs passed: topic queries, eight categories, Rising charts, custom domains, public comments, date filters, duplicate inputs and archive pagination. The full-depth prefill returned ten publications in 29 seconds. A 100-post archive took 14 seconds. Ten rows matched live page checks. A real reboot between saving and charging a post recovered one publication and three posts without duplicate rows or charges.

### Limits and common questions

**Does this return exact subscriber counts?**
Only the public labels and what those labels imply. A rounded label is not an exact audience count. Hidden counts remain unknown. Subscriber names, lists and emails are not collected.

**Why is a category rank missing?**
Ranks are recorded for category discoveries. A topic search or direct publication URL does not establish the publication's category position. Select a category explicitly when you need chart data.

**Why is posting frequency null?**
The observed archive did not cover the full thirty-day window, or the archive was unavailable. Check the observed count and coverage fields. A null frequency does not mean the publication is inactive.

**Are comments complete?**
No. Optional comments are a bounded public sample, including nested replies where returned. Restricted comments may be unavailable even when a post has a visible comment count. Commenter output contains display names and discussion text, without email or profile identifiers. Email-shaped strings in comment text are removed.

**Can I download paid articles?**
No. Public metadata for paid posts is supported. Paywalled bodies and account access are outside the Actor's scope.

**Will a reboot repeat charges?**
Saved dataset rows form the recovery ledger. Delivery is serial and uses stable per-row charge keys plus settled charge counts. On restart, saved rows are recovered before new work starts. A saved final row with an unconfirmed charge is reconciled rather than delivered twice. Ambiguous billing state stops further charging.

**Can it return fewer rows than the maximum?**
Yes. A maximum is a cap, not a promise. Search relevance, available posts, the recency filter, unsupported inputs, source refusals and your spending limit can all reduce the result count. Empty searches have no result fee.

Large jobs stop before saving a paid row that would take the dataset past 64 MiB. Completed archive caches are cleared. Split large watchlists or reduce comment limits for larger exports. The summary identifies this stop separately from a spending limit.

**Does it need residential proxy or a browser?**
The default uses ordinary direct HTTPS requests. Apify datacenter proxy was also tested and is available as an option, with slower response times. No browser, login, account cookies or challenge solving is used. Public endpoints can change, so failures are surfaced in free notes and the summary.

This Substack newsletter finder is designed for repeated public publication research, category monitoring and post engagement analysis with clear counts, bounded costs and explicit coverage.

# Actor input Schema

## `searchTerms` (type: `array`):

Find publications associated with public Substack top-search matches for these topics. For example technology, finance or science. Results follow Substack relevance and are not a complete newsletter directory.

## `categories` (type: `array`):

Current category names or slugs, for example technology, finance, science, business or food-and-drink. Returns ranked publications from the public category leaderboard.

## `startUrls` (type: `array`):

Optional https publication homepages or /p/post-slug links, including custom domains. Paste an array of URL strings. Substack reader profile URLs are not supported.

## `include` (type: `array`):

publications, posts or comments. Comments adds a capped public comment sample to each selected post and also enables posts. Comments have no additional result fee.

## `maxPublications` (type: `integer`):

Distinct publications across all inputs, including publications processed for posts-only output. Maximum 1,000. The default is 10.

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

Maximum posts delivered per selected publication. Used only when include contains posts or comments. Direct post URLs select those posts only. Archive statistics also inspect recent pages for a complete 30-day posting window.

## `postedWithinDays` (type: `integer`):

Limit delivered post rows to this many days before the run began. Zero means no recency filter. This does not filter publication rows or change the fixed 30-day posting-frequency window.

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

Maximum public comments including nested replies to embed in a post. Returns a top-comments sample, not a complete thread. Names are display names only; no reader emails or profile identifiers.

## `leaderboard` (type: `string`):

paid is the Top Bestsellers chart. trending is the Rising chart. The recorded rank is the position in this chart, not total subscribers or search rank.

## `includePublicLinks` (type: `boolean`):

Fetch the publication About page for additional public links and social fields. Enabled by default. Disable for faster topic or category discovery. URL inputs already read the publication page.

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

Direct HTTP by default. Apify datacenter proxy is optional and was tested. No residential proxy is required. Custom proxy URLs are optional. No account cookies are used.

## Actor input object example

```json
{
  "searchTerms": [
    "technology"
  ],
  "include": [
    "publications"
  ],
  "maxPublications": 10,
  "maxPostsPerPublication": 20,
  "postedWithinDays": 0,
  "maxCommentsPerPost": 20,
  "leaderboard": "paid",
  "includePublicLinks": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `data` (type: `string`):

No description

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

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

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

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [
        "technology"
    ],
    "include": [
        "publications"
    ],
    "maxPublications": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("moggedhq/substack-newsletter-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 = {
    "searchTerms": ["technology"],
    "include": ["publications"],
    "maxPublications": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("moggedhq/substack-newsletter-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 '{
  "searchTerms": [
    "technology"
  ],
  "include": [
    "publications"
  ],
  "maxPublications": 10
}' |
apify call moggedhq/substack-newsletter-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moggedhq/substack-newsletter-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/8ESu0Ie40yW9L2UfR/builds/8JlLfROc0gthZuZxL/openapi.json
