# Substack Newsletter, Creator & Sponsor Lead Scraper (`angaba92/substack-newsletter-scraper`) Actor

Find and enrich Substack newsletters by keyword, category leaderboard, or URL. Extract subscriber counts, Bestseller tier, paid plan status, author LinkedIn/X/website links, public contact emails & engagement metrics.

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

## Pricing

$4.00 / 1,000 enriched substack newsletter & creator leads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

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

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

## How to integrate an Actor?

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

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

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

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

# README

## Substack Newsletter, Creator & Sponsor Lead Scraper

Discover and enrich active **Substack newsletters, writers, and sponsorship leads** by **keyword (`B2B SaaS`, `AI engineering`, `FinTech`), official category leaderboard (`technology`, `business`, `finance`, `crypto`, `health`), or direct publication URL**. Extracts **subscriber count floor (`49K+`, `1.9K+`), Bestseller badge tier, Stripe monetization status, author LinkedIn/X/YouTube/website links, public sponsor/contact emails, custom domains, and recent post engagement (`avgReactions`, `avgComments`, `avgWordCount`, `daysSinceLastPost`)**.

### Why Use This Substack Newsletter & Sponsor Lead Scraper?

| Capability | Post-Only Substack Scrapers | Manual Substack Search | **Substack Newsletter & Sponsor Lead Scraper** |
|---|---|---|---|
| **Keyword + Category Leaderboard Discovery** | Single URL only | Manual scrolling | **Multi-keyword + 30+ category leaderboards** |
| **Subscriber Count & Bestseller Tier** | Often missing | Hidden in UI badges | **`subscriberCountDisplay` (`49K+`), `subscriberCountFloor` & `bestsellerTier`** |
| **Creator LinkedIn, X/Twitter & Website** | No | Click per author | **Extracted via public creator profile (`linkedinUrl`, `twitterUrl`, `authorWebsite`)** |
| **Active Cadence & Engagement Filter** | Emits abandoned blogs | Manual check | **Filters `onlyActiveWithinDays` + computes `avgReactions`, `avgComments` & `avgWordCount`** |
| **Pricing** | $0.005 start fee + per-post charges | Hours of research | **$0.00 start fee + $0.004 / newsletter ($4.00 / 1,000)** |

### High-ROI B2B Sponsorship & PR Workflows

1. **B2B Newsletter Sponsorship Media List:** Search `keywords: ["AI engineering", "DevOps", "Cybersecurity"]` with `onlyActiveWithinDays: 30` and `onlyPaidEnabled: true` to find active, monetized technical newsletters with `1,000–100,000+` subscribers, LinkedIn profiles, and custom domains.
2. **Custom Domain Email & Tech Stack Enrichment:** Pass `customDomain` or `authorWebsite` directly into **[Website Email, Contact & Tech Stack Scraper](https://apify.com/angaba92/website-email-contact-tech-stack-scraper)** to append verified corporate `sponsors@` / `press@` emails and DNS MX providers, and pair with **[Podcast Directory, Email & Contact Scraper](https://apify.com/angaba92/podcast-contact-email-scraper)** for unified creator outreach.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `keywords` | `string[]` | `["B2B SaaS", "AI engineering"]` | Search keywords matched against Substack publications. |
| `categories` | `string[]` | `[]` | Category slugs: `technology`, `business`, `finance`, `crypto`, `health`, `design`, `science`, `climate`, `education`, `news`. |
| `publicationSubdomains` | `string[]` | `[]` | Specific Substack subdomains or URLs (`bytebytego`, `https://pragmaticengineer.substack.com`). |
| `onlyActiveWithinDays` | `integer` | `90` | Only emit newsletters with a post published within the last `N` days (`0` = disable). |
| `onlyPaidEnabled` | `boolean` | `false` | Require active paid subscriptions (`payments_state == "enabled"`). |
| `onlyWithContactOrSocial` | `boolean` | `false` | Require at least one public email, custom domain/website, or LinkedIn/X/YouTube link. |
| `recentPostsSample` | `integer` | `5` | Recent archive posts (`1` to `10`) sampled for engagement averages. |
| `maxResults` | `integer` | `15` | Maximum newsletters to emit (`1` to `1000`). |

### Pricing (Pay Per Event)

- **Actor start fee:** `$0.00`
- **Per enriched newsletter (`substack-newsletter`):** `$0.004` (`$4.00` per 1,000 newsletters)
- Searches returning `0` matching newsletters cost **$0.00**.

### Related B2B Media & Lead Generation Actors

- **[Podcast Directory, Email & Contact Scraper](https://apify.com/angaba92/podcast-contact-email-scraper):** Extract verified podcast host emails and active show RSS metadata across Apple Podcasts.
- **[Website Email, Contact & Tech Stack Scraper](https://apify.com/angaba92/website-email-contact-tech-stack-scraper):** Enrich newsletter custom domains and author websites with corporate emails, MX records, and tech stacks.
- **[SEC Form D Scraper - Startup Funding Rounds](https://apify.com/angaba92/sec-form-d-startup-funding-scraper):** Find newly funded U.S. startups looking to sponsor niche B2B newsletters and podcasts.

# Actor input Schema

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

Keywords to search across Substack publications, e.g. \['B2B SaaS', 'AI engineering', 'FinTech', 'Cybersecurity'].

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

Optional Substack category slugs to pull top ranked newsletters: 'technology', 'business', 'finance', 'crypto', 'health', 'design', 'science', 'climate', 'education', 'culture', 'news'.

## `publicationSubdomains` (type: `array`):

Specific Substack subdomains or URLs to enrich directly, e.g. \['bytebytego', 'https://pragmaticengineer.substack.com'].

## `onlyActiveWithinDays` (type: `integer`):

Only emit newsletters that published at least one post within the last N days (0 disables recency filtering).

## `onlyPaidEnabled` (type: `boolean`):

Only return newsletters with active Stripe paid subscriptions enabled.

## `onlyWithContactOrSocial` (type: `boolean`):

Only return newsletters that expose at least one public contact email, external custom domain/website, or verified author social profile (LinkedIn, X/Twitter, YouTube).

## `recentPostsSample` (type: `integer`):

Number of recent archive posts (1 to 10) fetched per newsletter to compute average reactions, comments, restacks, and word count.

## `concurrency` (type: `integer`):

Parallel HTTP requests when fetching archive engagement and creator profiles (1 to 8).

## `maxResults` (type: `integer`):

Maximum number of enriched Substack newsletters to emit. Each emitted newsletter counts as 1 substack-newsletter event.

## Actor input object example

```json
{
  "keywords": [
    "B2B SaaS",
    "AI engineering"
  ],
  "categories": [],
  "publicationSubdomains": [],
  "onlyActiveWithinDays": 90,
  "onlyPaidEnabled": false,
  "onlyWithContactOrSocial": false,
  "recentPostsSample": 5,
  "concurrency": 5,
  "maxResults": 10
}
```

# Actor output Schema

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

No description

# API

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

## JavaScript example

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

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

// Prepare Actor input
const input = {
    "keywords": [
        "B2B SaaS",
        "AI engineering"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("angaba92/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 = {
    "keywords": [
        "B2B SaaS",
        "AI engineering",
    ],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("angaba92/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 '{
  "keywords": [
    "B2B SaaS",
    "AI engineering"
  ],
  "maxResults": 10
}' |
apify call angaba92/substack-newsletter-scraper --silent --output-dataset

```

## MCP server setup

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