# Substack Top Posts by Engagement

**Use case:** 

Rank a newsletter's all-time best posts by reactions, comments and restacks, with word count and publish date. Benchmark any Substack in minutes.

## Input

```json
{
  "scrapeMode": "overview",
  "publications": [
    "bigtechnology"
  ],
  "maxResults": 25,
  "endpoint": "archive",
  "sort": "top",
  "useProxy": false
}
```

## Output

```json
{
  "thumbnail": {
    "label": "🖼️ Thumbnail",
    "format": "string"
  },
  "id": {
    "label": "🆔 Post ID",
    "format": "integer"
  },
  "title": {
    "label": "📝 Title",
    "format": "string"
  },
  "subtitle": {
    "label": "🏷️ Subtitle",
    "format": "string"
  },
  "description": {
    "label": "📄 Description",
    "format": "string"
  },
  "url": {
    "label": "🔗 Post URL",
    "format": "string"
  },
  "slug": {
    "label": "🔡 Slug",
    "format": "string"
  },
  "type": {
    "label": "🗂️ Post Type",
    "format": "string"
  },
  "audience": {
    "label": "🔓 Audience",
    "format": "string"
  },
  "is_paywalled": {
    "label": "🔒 Paywalled",
    "format": "boolean"
  },
  "post_date": {
    "label": "📅 Post Date",
    "format": "string"
  },
  "language": {
    "label": "🌐 Language",
    "format": "string"
  },
  "reaction_count": {
    "label": "❤️ Reactions",
    "format": "integer"
  },
  "reactions": {
    "label": "😀 Reaction Breakdown",
    "format": "object"
  },
  "comment_count": {
    "label": "💬 Comments",
    "format": "integer"
  },
  "restacks": {
    "label": "🔁 Restacks",
    "format": "integer"
  },
  "engagement_total": {
    "label": "📊 Engagement Total",
    "format": "integer"
  },
  "wordcount": {
    "label": "🔢 Word Count",
    "format": "integer"
  },
  "bylines": {
    "label": "✍️ Authors",
    "format": "array"
  },
  "publication_host": {
    "label": "🏠 Publication Host",
    "format": "string"
  },
  "publication_id": {
    "label": "🆔 Publication ID",
    "format": "integer"
  },
  "cover_image": {
    "label": "🖼️ Cover Image",
    "format": "string"
  },
  "images": {
    "label": "📸 Images",
    "format": "array"
  },
  "image_count": {
    "label": "🔢 Image Count",
    "format": "integer"
  },
  "podcast_duration": {
    "label": "🎙️ Podcast Duration",
    "format": "number"
  },
  "podcast_url": {
    "label": "🎧 Podcast URL",
    "format": "string"
  },
  "truncated_body_text": {
    "label": "📃 Preview Text",
    "format": "string"
  },
  "body_html": {
    "label": "📰 Article HTML",
    "format": "string"
  },
  "source": {
    "label": "🧭 Source Mode",
    "format": "string"
  },
  "metadata": {
    "label": "🧾 Run Metadata",
    "format": "object"
  }
}
```

## About this Actor

This example demonstrates how to use [Substack API & Scraper — Posts, Authors & Newsletters](https://apify.com/sian.agency/substack-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/sian.agency/substack-scraper.md) to learn more, explore other use cases, and run it yourself.


## 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.
This Task's input is already configured above — use it as-is rather than inventing a new one.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/sian.agency/substack-scraper.md

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).
