# Substack Newsletter & Author Scraper (`turqay-ai/substack-scraper`) Actor

Scrape Substack newsletters, leaderboards, categories, subscriber metrics, pricing plans, author bios, Twitter handles, and latest articles. Export to CSV, JSON, or Excel.

- **URL**: https://apify.com/turqay-ai/substack-scraper.md
- **Developed by:** [Turqay AI](https://apify.com/turqay-ai) (community)
- **Categories:** Marketing, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 substack newsletter post/authors

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 & Author Scraper

Extract rich data from **Substack newsletters, leaderboards, authors, pricing plans, and latest articles** in seconds. Built for marketing agencies, newsletter sponsors, B2B lead generation specialists, and content researchers.

***

### 🌟 Why Use Substack Newsletter Scraper?

Substack is home to over 35+ categories of top independent writers, industry leaders, and creators. Finding the right newsletters to sponsor, partner with, or analyze has never been easier.

- 🎯 **Leaderboard & Category Exploration:** Scrape top newsletters across 35+ categories (Technology, Business, Finance, Culture, Crypto, Science, Design, etc.).
- 💰 **Monetization & Pricing Insights:** Extract monthly and annual subscription pricing, currencies, and paid tiers.
- 👤 **Author & Lead Profiling:** Scrape author names, bios, avatars, and direct **Twitter / X handles** for direct outreach.
- 📰 **Recent Content & Engagement Metrics:** Fetch the latest articles along with publication dates, like counts, and comments count.
- ⚡ **Lightning Fast & Cost-Effective:** Pure HTTP extraction designed to run in seconds with minimal Apify compute unit usage.
- 📊 **Export Anywhere:** Download your data in **CSV, JSON, Excel, XML, or HTML**, or sync directly to **Google Sheets, Airtable, Webhooks, Make, or Zapier**.

***

### 📥 Input Options

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `"categories"` | `"categories"` (explore by category leaderboards) or `"customUrls"` (scrape specific URLs). |
| `categories` | Array | `["technology", "business", "finance"]` | List of categories to scrape (e.g., `technology`, `business`, `finance`, `crypto`, `culture`, `science`). |
| `maxPublicationsPerCategory` | Integer | `25` | Maximum number of newsletters to extract per category. |
| `publicationUrls` | Array | `[]` | Specific Substack URLs (e.g. `["https://bytebytego.substack.com"]`). |
| `scrapeLatestPosts` | Boolean | `true` | Whether to extract the latest 3-5 articles with like and comment metrics. |
| `proxyConfiguration` | Object | `null` | Optional Apify proxy settings. |

***

### 📤 Sample Output (JSON)

```json
{
  "id": 817132,
  "name": "ByteByteGo Newsletter",
  "subdomain": "bytebytego",
  "customDomain": "blog.bytebytego.com",
  "url": "https://blog.bytebytego.com",
  "category": "Technology",
  "description": "Explain complex systems with simple terms, from the authors of the best-selling system design book series. Join over 1,000,000 friendly readers.",
  "logoUrl": "https://substackcdn.com/image/fetch/...",
  "coverPhotoUrl": "https://substack-post-media.s3.amazonaws.com/...",
  "authorName": "Alex Xu",
  "authorHandle": "bytebytego",
  "authorBio": "Author of 3 Bestselling Books | Co-Founder of ByteByteGo",
  "authorPhotoUrl": "https://substackcdn.com/image/fetch/...",
  "twitterHandle": "alexxubyte",
  "twitterUrl": "https://twitter.com/alexxubyte",
  "language": "en",
  "createdAt": "2022-03-27T03:36:45.845Z",
  "firstPostDate": "2021-11-25T17:31:00.000Z",
  "hasPaidPlans": true,
  "monthlyPrice": "15.00 USD/month",
  "annualPrice": "150.00 USD/year",
  "currency": "USD",
  "subscribers": "Thousands+",
  "latestPostsCount": 5,
  "latestPosts": [
    {
      "title": "How Instacart Uses LLMs to Make People Buy More",
      "url": "https://blog.bytebytego.com/p/how-instacart-uses-llms-to-make-people",
      "postDate": "2026-11-16T16:30:56.763Z",
      "audience": "everyone",
      "isPaidOnly": false,
      "likesCount": 237,
      "commentsCount": 5
    }
  ],
  "scrapedAt": "2026-11-17T10:47:40.000Z"
}
```

***

### 💼 High-Value Use Cases

1. **Newsletter Sponsorship Outreach:** Find newsletters with high engagement in your niche and reach out to authors via Twitter or email for sponsorship deals.
2. **Competitive Intelligence:** Monitor what topics rival publications are writing about, their audience tier, and how they price their subscriptions.
3. **B2B Lead Generation:** Build curated lists of influential thought leaders, tech writers, and domain experts.
4. **Content Strategy & Ideation:** Analyze the most liked articles in any category to discover trending topics and headlines.

***

### 🛠 Support & Feedback

If you have feature requests, custom scraping requirements, or need help integrating with your CRM or database, please submit an issue on the Actor's **Issues** tab or contact us through Apify.

# Actor input Schema

## `mode` (type: `string`):

Choose whether to scrape top newsletters by category or provide specific publication URLs.

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

Select one or more categories to scrape from the leaderboards.

## `maxPublicationsPerCategory` (type: `integer`):

Maximum number of newsletters to extract per selected category (e.g., 25, 50, 100).

## `publicationUrls` (type: `array`):

Substack publication URLs to scrape (used when Mode is set to 'Scrape Specific Newsletter URLs').

## `scrapeLatestPosts` (type: `boolean`):

Extract latest articles with titles, publication dates, like counts, and comment metrics for each newsletter.

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

Number of recent articles to extract per newsletter (between 1 and 20).

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

Optional proxy settings. By default, standard Apify proxies or direct connections are used.

## Actor input object example

```json
{
  "mode": "categories",
  "categories": [
    "technology",
    "business",
    "finance"
  ],
  "maxPublicationsPerCategory": 25,
  "publicationUrls": [
    "https://bytebytego.substack.com",
    "https://pragmaticengineer.com"
  ],
  "scrapeLatestPosts": true,
  "maxPostsPerPublication": 5
}
```

# Actor output Schema

## `overview` (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 = {
    "categories": [
        "technology",
        "business",
        "finance"
    ],
    "publicationUrls": [
        "https://bytebytego.substack.com",
        "https://pragmaticengineer.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("turqay-ai/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 = {
    "categories": [
        "technology",
        "business",
        "finance",
    ],
    "publicationUrls": [
        "https://bytebytego.substack.com",
        "https://pragmaticengineer.com",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("turqay-ai/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 '{
  "categories": [
    "technology",
    "business",
    "finance"
  ],
  "publicationUrls": [
    "https://bytebytego.substack.com",
    "https://pragmaticengineer.com"
  ]
}' |
apify call turqay-ai/substack-scraper --silent --output-dataset

```

## MCP server setup

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