# Newsletter Intelligence: Substack + beehiiv Scraper (`balladic_calibrachoa/newsletter-intelligence`) Actor

Scrape public Substack and beehiiv newsletters: posts, publication metadata, prices, subscriber signals and Substack leaderboards. Fast HTTP-only, no login, no emails.

- **URL**: https://apify.com/balladic_calibrachoa/newsletter-intelligence.md
- **Developed by:** [Aditya Bilawar](https://apify.com/balladic_calibrachoa) (community)
- **Categories:** Lead generation, News, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## Newsletter Intelligence: Substack + beehiiv Scraper

**One Actor, two newsletter platforms, one clean schema.** Pull posts, publication metadata, subscription prices, public subscriber signals and **Substack leaderboards** (all categories, Bestseller + Rising) from Substack and beehiiv, including custom domains, which are detected automatically.

- ⚡ **Fast and cheap:** plain HTTP only, no browser. Hundreds of items in seconds.
- 🔀 **Substack + beehiiv in one run:** paste any newsletter URL and the platform is detected for you.
- 🏆 **Substack leaderboards:** rank, paid-subscriber tier, total subscribers (approx.), prices, for 32 categories.
- 🔒 **Paid-post flags:** `audience` / `isPaid` on every post. Paywalled content is **never** extracted.
- 🧠 **LLM-ready:** optional full content as Markdown, HTML or plain text.
- 🛡️ **Privacy-first:** public data only. No logins, no subscriber lists, no emails (email addresses are stripped from text).

### Use cases

Sponsorship and ad sales prospecting · creator-economy research · competitor newsletter monitoring · building RAG datasets of public posts · tracking leaderboard movers daily.

### Modes

| Mode | What you get | Charged event |
|---|---|---|
| `posts` | Posts per publication (title, URL, date, authors, audience/paid flag, word count, likes, comments, restacks on Substack; optional content) | `post` or `post-with-content` |
| `publication` | Name, description, author, logo, monthly/annual price, paid and total subscriber signals, RSS URL | `publication` |
| `leaderboard` | Substack Bestseller/Rising leaderboards per category with rank | `leaderboard-row` |

### Pricing (pay per event)

| Event | Price |
|---|---|
| Run start | $0.005 |
| Publication record | $0.003 |
| Leaderboard row | $0.002 |
| Post (metadata) | $0.002 |
| Post with full content | $0.004 |

Example: a full technology Bestseller leaderboard (up to 100 rows, depending on Substack's API) ≈ $0.205. 1,000 post metadata records ≈ $2.005. The Actor respects your "max total charge" limit and stops cleanly once it's reached.

### Example inputs

1. **Latest 20 posts from mixed newsletters**

```json
{"mode":"posts","urls":["https://www.lennysnewsletter.com","https://www.therundown.ai","https://simonw.substack.com"],"maxPostsPerPublication":20}
```

2. **Full Markdown of public posts for a RAG pipeline**

```json
{"mode":"posts","urls":["https://simonw.substack.com"],"maxPostsPerPublication":200,"includeContent":true,"contentFormat":"markdown"}
```

3. **Only posts since a date (monitoring)**

```json
{"mode":"posts","urls":["https://www.noahpinion.blog"],"dateFrom":"2026-10-20","maxPostsPerPublication":100}
```

4. **Publication metadata and subscriber signals for a prospect list**

```json
{"mode":"publication","urls":["https://www.lennysnewsletter.com","https://www.astralcodexten.com","https://www.therundown.ai","https://www.superhuman.ai"]}
```

5. **Technology + Finance leaderboards, Bestseller and Rising**

```json
{"mode":"leaderboard","categories":["technology","finance"],"boardType":"both"}
```

6. **Every Rising board, scheduled daily to track movers**

```json
{"mode":"leaderboard","categories":["culture","technology","business","us-politics","finance","food","sports","art","world-politics","health-politics","news","fashionandbeauty","music","faith","climate","science","literature","fiction","health","design","travel","parenting","philosophy","comics","international","crypto","history","humor","education","film-and-tv","home-garden","games"],"boardType":"rising"}
```

7. **beehiiv newsletter on a custom domain, with Apify Proxy**

```json
{"mode":"posts","urls":["https://www.superhuman.ai"],"platform":"beehiiv","maxPostsPerPublication":50,"proxyConfiguration":{"useApifyProxy":true}}
```

8. **Plain-text content for sentiment or NLP**

```json
{"mode":"posts","urls":["https://www.astralcodexten.com"],"includeContent":true,"contentFormat":"text","maxPostsPerPublication":30}
```

### Sample output (real items from test runs, 2026-11-03)

**Substack post**

```json
{
  "type": "post",
  "platform": "substack",
  "publicationUrl": "https://www.astralcodexten.com",
  "title": "Open Thread 458",
  "subtitle": "...",
  "url": "https://www.astralcodexten.com/p/open-thread-458",
  "publishedAt": "2026-11-02T05:04:37.420Z",
  "postType": "newsletter",
  "audience": "everyone",
  "isPaid": false,
  "authors": [
    "Scott Alexander"
  ],
  "wordCount": 195,
  "reactionCount": 56,
  "commentCount": 339,
  "restacks": 2,
  "coverImage": "https://substack-post-media.s3.amazonaws.com/public/images/9d8ea239-2d80-4635-9f2b-5eca37328062_1536x1024.png",
  "excerpt": "...",
  "scrapedAt": "2026-11-03T21:33:36.798Z"
}
```

**Leaderboard row**

```json
{
  "type": "leaderboard-row",
  "platform": "substack",
  "name": "SemiAnalysis",
  "url": "https://newsletter.semianalysis.com",
  "substackUrl": "https://semianalysis.substack.com",
  "description": "Bridging the gap between the world's most important industry, semiconductors, and business.",
  "authorName": "Dylan Patel",
  "authorHandle": "semianalysis",
  "logoUrl": "https://substackcdn.com/image/fetch/$s_!y_cf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1af867ac-65cc-46ad-aa7b-13323ae19142_444x415.png",
  "language": "en",
  "monthlyPrice": 50,
  "annualPrice": 500,
  "currency": "USD",
  "paidSubscribersSignal": "Tens of thousands of paid subscribers",
  "totalSubscribersSignal": "Over 326,000 subscribers",
  "paidSubscribersOrderOfMagnitude": 10000,
  "totalSubscribersApprox": 326000,
  "rssUrl": "https://newsletter.semianalysis.com/feed",
  "scrapedAt": "2026-11-03T21:33:36.976Z",
  "rank": 1,
  "category": "technology",
  "boardType": "paid"
}
```

**beehiiv post (custom domain, discovered via archive)**

```json
{
  "type": "post",
  "platform": "beehiiv",
  "publicationUrl": "https://www.superhuman.ai",
  "title": "DeepSeek's customization skills ramp up pressure on US labs",
  "subtitle": null,
  "url": "https://www.superhuman.ai/p/deepseek-s-customization-skills-ramp-up-pressure-on-us-labs",
  "publishedAt": "2026-11-03T12:02:57.000Z",
  "audience": "everyone",
  "isPaid": false,
  "authors": [
    "Zain Kahn"
  ],
  "coverImage": "https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,quality=80,width=1200,onerror=redirect/uploads/asset/file/122a8a98-58ee-4f24-b132-a6840f982e56/Superhuman_Lead_Story__9_.jpg?t=1793664374",
  "excerpt": "ALSO: How to create a daily brand pulse from X with Grok Bot",
  "discoveredVia": "archive",
  "scrapedAt": "2026-11-03T21:33:37.094Z"
}
```

**beehiiv publication**

```json
{
  "type": "publication",
  "platform": "beehiiv",
  "name": "Superhuman AI",
  "url": "https://www.superhuman.ai",
  "description": "Get the latest AI news and tools, and learn how to use them at work. Join 2 Million+ pros at the world's top companies that read Superhuman AI daily.",
  "logoUrl": "https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/site/file/dfab58b5-fa1f-4725-95a7-5743596f8147/landscape_Superhuman_Ad_9_7.png",
  "authorName": null,
  "totalSubscribersSignal": null,
  "rssUrl": "https://www.superhuman.ai/feed",
  "inputUrl": "https://www.superhuman.ai",
  "scrapedAt": "2026-11-03T21:33:36.939Z"
}
```

### How it works

- **Substack:** public JSON endpoints (`/api/v1/archive`, `/api/v1/posts/<slug>`), the page's preloaded publication data, and `substack.com/api/v1/category/public/<id>/<paid|rising>` for leaderboards.
- **beehiiv:** RSS feed → `/archive?page=N` → `/sitemap.xml`, in that order, plus each post page's meta tags and JSON-LD.
- Failed requests (403/429/5xx/network) are retried. Any URL that still fails produces a `{"type":"error"}` item so you can see what went wrong.

### Limitations

- Subscriber numbers are **only what the platform shows publicly** (Substack leaderboard/ranking tiers, beehiiv "join N readers" text). Many publications show none, and the field is `null` then.
- beehiiv posts found via RSS have `audience: "unknown"` because RSS doesn't mark premium posts.
- Paid posts never include content, only metadata and a public excerpt.
- Substack Notes and comments are not included in this version.

### Legal

Public data only. You're responsible for using it in line with the platforms' terms and applicable law (GDPR/CCPA). This Actor doesn't collect emails or other personal contact data.

# Actor input Schema

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

What to scrape.

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

Substack or beehiiv publication homepages (custom domains OK). Platform is auto-detected.

## `platform` (type: `string`):

Override auto-detection.

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

Substack categories (leaderboard mode).

## `boardType` (type: `string`):

Top bestsellers (paid), rising, or both.

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

Upper bound per publication.

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

ISO date (YYYY-MM-DD). Optional.

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

Fetch full body of public posts (billed as post-with-content). Paid posts never include content.

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

Format of the content field.

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

Parallel publications.

## `maxRequestRetries` (type: `integer`):

Retries on 403/429/5xx/network errors.

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

Optional. Use Apify Proxy if you hit rate limits.

## Actor input object example

```json
{
  "mode": "posts",
  "urls": [
    "https://www.lennysnewsletter.com",
    "https://www.therundown.ai"
  ],
  "platform": "auto",
  "categories": [
    "technology"
  ],
  "boardType": "paid",
  "maxPostsPerPublication": 20,
  "includeContent": false,
  "contentFormat": "markdown",
  "maxConcurrency": 5,
  "maxRequestRetries": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `runStats` (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 = {
    "urls": [
        "https://www.lennysnewsletter.com",
        "https://www.therundown.ai"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("balladic_calibrachoa/newsletter-intelligence").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://www.lennysnewsletter.com",
        "https://www.therundown.ai",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("balladic_calibrachoa/newsletter-intelligence").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://www.lennysnewsletter.com",
    "https://www.therundown.ai"
  ]
}' |
apify call balladic_calibrachoa/newsletter-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,balladic_calibrachoa/newsletter-intelligence"
        }
    }
}
```

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/O7nMwfMMfIOSHp4ox/builds/oNbVPkVIgSfTGeVNr/openapi.json
