# Get full text of Substack posts for AI and RAG

**Use case:** 

Downloads the latest free posts of a Substack newsletter with the full article as clean plain text, ready for summaries, embeddings and RAG. Each post also has the title, subtitle, publish date, likes, comments, restacks, word count and URL. Works with substack.com subdomains and custom domains.

## Input

```json
{
  "newsletters": [
    "https://garymarcus.substack.com"
  ],
  "postUrls": [
    "https://garymarcus.substack.com/p/a-knockout-blow-for-llms"
  ],
  "searchQueries": [
    "climate tech",
    "personal finance"
  ],
  "categories": [
    "technology",
    "finance"
  ],
  "categoryRanking": "all",
  "maxNewslettersPerSearch": 20,
  "scrapePostsOfDiscovered": false,
  "includePosts": true,
  "maxPostsPerNewsletter": 5,
  "postSort": "new",
  "postSearch": "AI",
  "postType": "all",
  "audience": "free",
  "postedAfter": "90 days",
  "postedBefore": "2026-06-30",
  "minLikes": 0,
  "includeFullText": true,
  "includeHtml": false,
  "includeComments": false,
  "maxCommentsPerPost": 50,
  "commentSort": "best_first",
  "includeNewsletterProfile": false,
  "includeAuthorProfile": false,
  "maxItems": 0,
  "includeErrorItems": true,
  "maxConcurrency": 3,
  "maxRequestsPerSecond": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "newsletterName": {
    "label": "Newsletter",
    "format": "string"
  },
  "title": {
    "label": "Post",
    "format": "string"
  },
  "subtitle": {
    "label": "Subtitle",
    "format": "string"
  },
  "postType": {
    "label": "Kind",
    "format": "string"
  },
  "publishedAt": {
    "label": "Published",
    "format": "string"
  },
  "likes": {
    "label": "Likes",
    "format": "integer"
  },
  "commentCount": {
    "label": "Comments",
    "format": "integer"
  },
  "restacks": {
    "label": "Restacks",
    "format": "integer"
  },
  "wordCount": {
    "label": "Words",
    "format": "integer"
  },
  "isPaywalled": {
    "label": "Paywalled",
    "format": "boolean"
  },
  "textStatus": {
    "label": "Text",
    "format": "string"
  },
  "bodyText": {
    "label": "Full text",
    "format": "string"
  },
  "url": {
    "label": "Link",
    "format": "string"
  }
}
```

## How it works

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

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

### 2. Start the "Get full text of Substack posts for AI and RAG" task

The Substack Scraper: Newsletters, Posts, Full Text, Comments Actor will start running based on the input automatically. You can also change all the input fields, like newsletters, post urls, and more, to match your specific use case.

### 3. Receive the "Get full text of Substack posts for AI and RAG" 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 newsletter, post, subtitle, 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 "Get full text of Substack posts for AI and RAG" task via API](https://apify.com/zhtech/substack-scraper.md).

## FAQ

### What does the Substack posts full text task return?

The Substack posts full text task returns one row per post with newsletter name, title, subtitle, post type, publish date, likes, comments, restacks, word count, paywall flag, the full plain text and the URL.

### Does the Substack posts full text task get paywalled posts?

The Substack posts full text task only reads public pages and never logs in. Free posts come with full text; paywalled posts give metadata only, so this task filters to free posts by default.

### Can I run the Substack posts full text task on a schedule or through the API?

Save the Substack posts full text task to your Apify account, then add it to an Apify Schedule (for example daily) or start it from the Apify API, webhooks, Zapier, Make, n8n or the Apify MCP server for AI agents.

### How much does the Substack posts full text task cost?

The Substack posts full text task is pay per event: a small start fee per run plus a fee per post saved. Rows explaining inputs without results are free. Prices are on the Pricing tab.

## About this Actor

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