# Top newsletters and their latest posts

**Use case:** 

Find the top newsletters in a category and collect each one's recent posts with engagement in the same run, without supplying a single URL.

## Input

```json
{
  "urls": [],
  "categories": [
    "Technology"
  ],
  "leaderboardRanking": "all",
  "searchQueries": [],
  "maxPublicationsPerSource": 10,
  "discoveryOnly": false,
  "maxPostsPerNewsletter": 10,
  "sortOrder": "new",
  "contentType": "all",
  "onlyFree": false,
  "includeKeywords": [],
  "excludeKeywords": [],
  "includeContent": true,
  "contentFormat": "html_and_text",
  "includeComments": false,
  "commentOutput": "nested",
  "includePublicationInfo": true,
  "publicationOutput": "embedded",
  "onlyNew": false
}
```

## Output

```json
{
  "itemType": {
    "label": "Type",
    "format": "string"
  },
  "title": {
    "label": "Post",
    "format": "string"
  },
  "body": {
    "label": "Comment",
    "format": "string"
  },
  "publicationName": {
    "label": "Publication",
    "format": "string"
  },
  "authorName": {
    "label": "Author",
    "format": "string"
  },
  "publishedAt": {
    "label": "Post date",
    "format": "string"
  },
  "date": {
    "label": "Comment date",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  },
  "postUrl": {
    "label": "Parent post",
    "format": "string"
  },
  "errorMessage": {
    "label": "Error",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped",
    "format": "string"
  },
  "leaderboardRank": {
    "label": "Leaderboard rank",
    "format": "integer"
  },
  "leaderboardCategory": {
    "label": "Leaderboard category",
    "format": "string"
  }
}
```

## About this Actor

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