# Export Substack posts with paid/free status, word count, likes

**Use case:** 

The latest 100 posts of Lenny's Newsletter (a Substack on a custom domain): title, subtitle, date, author, excerpt, full text of free posts, the public preview of paid posts, paid or free audience, word count, likes and restacks. Posts older than the feed come from the newsletter's public archive list. Replace it with any Substack.

## Input

```json
{
  "sources": [
    "https://www.lennysnewsletter.com"
  ],
  "maxPostsPerSource": 100,
  "maxPosts": 1000,
  "includeText": true,
  "includeHtml": false,
  "substackArchive": true,
  "fetchFullText": false,
  "onlyNewPosts": false,
  "httpVia": "auto",
  "maxConcurrency": 5,
  "requestIntervalMs": 500,
  "sourceTimeoutSecs": 600
}
```

## Output

```json
{
  "imageUrl": {
    "label": "Image",
    "format": "image"
  },
  "title": {
    "label": "Title"
  },
  "source": {
    "label": "Newsletter / blog"
  },
  "author": {
    "label": "Author"
  },
  "publishedAt": {
    "label": "Published",
    "format": "date"
  },
  "url": {
    "label": "Link",
    "format": "link"
  },
  "excerpt": {
    "label": "Excerpt"
  },
  "wordCount": {
    "label": "Words",
    "format": "number"
  },
  "textComplete": {
    "label": "Full text?"
  },
  "paywalled": {
    "label": "Paywalled"
  },
  "tags": {
    "label": "Tags"
  },
  "platform": {
    "label": "Platform"
  },
  "likes": {
    "label": "Likes (Substack)",
    "format": "number"
  },
  "audience": {
    "label": "Audience (Substack)"
  },
  "changeType": {
    "label": "Change"
  },
  "input": {
    "label": "Input"
  },
  "errorType": {
    "label": "Error type"
  },
  "error": {
    "label": "Error"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Substack Scraper & Medium Scraper - Newsletter & Blog Posts Actor is ready to run with the inputs already set for "Export Substack posts with paid/free status, word count, likes". [Sign up or log in](https://console.apify.com/create-task-from-example/3bdRvb1xE7K9sKQiX) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Export Substack posts with paid/free status, word count, likes" task

The Substack Scraper & Medium Scraper - Newsletter & Blog Posts Actor will start running based on the input automatically. You can also change all the input fields, like newsletters, blogs or feeds, max posts per source, and more, to match your specific use case.

### 3. Receive the "Export Substack posts with paid/free status, word count, likes" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as image, title, newsletter / blog, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Export Substack posts with paid/free status, word count, likes" task via API](https://apify.com/tidytools/substack-medium-posts-scraper.md).

## About this Actor

This example demonstrates how to use [Substack Scraper & Medium Scraper - Newsletter & Blog Posts](https://apify.com/tidytools/substack-medium-posts-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/tidytools/substack-medium-posts-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/tidytools/substack-medium-posts-scraper.md

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`).
