# Export all posts from a Substack newsletter

**Use case:** 

Get every post from any Substack publication, including custom domains: title, subtitle, date, likes, comments, restacks, word count, authors, tags, paid or free, cover image and URL. Turn on full text to get post content (paid posts return the free preview). Use it for newsletter research, content analysis or competitor tracking. Export to CSV, JSON or Excel.

## Input

```json
{
  "publications": [
    "https://www.lennysnewsletter.com",
    "https://www.thefp.com"
  ],
  "maxPostsPerPublication": 100,
  "includeContent": false,
  "maxConcurrency": 5
}
```

## Output

```json
{
  "coverImage": {
    "label": "CoverImage",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "publishedAt": {
    "label": "PublishedAt",
    "format": "string"
  },
  "authors": {
    "label": "Authors",
    "format": "array"
  },
  "likes": {
    "label": "Likes",
    "format": "integer"
  },
  "comments": {
    "label": "Comments",
    "format": "integer"
  },
  "restacks": {
    "label": "Restacks",
    "format": "integer"
  },
  "wordCount": {
    "label": "WordCount",
    "format": "integer"
  },
  "isPaid": {
    "label": "IsPaid",
    "format": "boolean"
  },
  "url": {
    "label": "Url",
    "format": "string"
  }
}
```

## How it works

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

The Substack Scraper: Posts, Likes, Comments, Full Text Actor is ready to run with the inputs already set for "Export all posts from a Substack newsletter". [Sign up or log in](https://console.apify.com/create-task-from-example/mvcjxiTuHwDedeDux) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Export all posts from a Substack newsletter" task

The Substack Scraper: Posts, Likes, Comments, Full Text Actor will start running based on the input automatically. You can also change all the input fields, like publications, max posts per publication, and more, to match your specific use case.

### 3. Receive the "Export all posts from a Substack newsletter" 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 coverimage, title, publishedat, 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 all posts from a Substack newsletter" task via API](https://apify.com/rakish_bobby_gwr/substack-scraper.md).

## FAQ

### What data does this task return from a Substack newsletter?

The task returns post title, subtitle, publication date, authors, likes, comments, restacks, word count, paid/free flag, cover image, and URL.

### Can I get the content of posts using this task?

The task can return the full text of free posts when enabled; paid posts only provide their free preview.

### What does 'likes' mean in the output?

The 'likes' field represents the number of likes (hearts) a post has received on Substack.

### How can I schedule this task to run automatically?

This task can be scheduled to run automatically in the Apify Console.

### How many posts can I scrape at once?

This example stops at 100 posts per publication. Raise Max posts per publication to export a newsletter's full archive.

### What is the cost structure for using this task?

You pay $1.00 per 1,000 posts returned, plus a tiny per-run start fee. Errors and empty results are not charged.

## About this Actor

This example demonstrates how to use [Substack Scraper: Posts, Likes, Comments, Full Text](https://apify.com/rakish_bobby_gwr/substack-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/rakish_bobby_gwr/substack-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/rakish_bobby_gwr/substack-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`).
