Substack Publication Posts
substack_publication_postsGet a publication's posts, newest first, top or most discussed, or search them by keyword. Returns post title, author, publication date, engagement, paywall status, word count and tags. Billed $0.003 per page.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"publication": "<publication>"
},
"name": "substack_publication_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Number of pages to fetch, 1-100 (default: 1). Each page returns up to 20 posts; you are billed per page returned. | |
| query | No | Keyword to search the publication's posts for (max 500 characters) | |
| sort_by | No | Sort order: "most_recent" (newest first), "top" (all-time most popular first) or "discussions" (posts with comment activity) | most_recent |
| publication | Yes | Publication subdomain (lenny), host (lenny.substack.com, www.lennysnewsletter.com) or any URL on it (max 500 characters) | |
| get_sentiment | No | Add AI sentiment analysis (Plutchik emotions, dominant_emotion, intensity, and positive/negative/neutral polarity) to each result. Adds a small surcharge per page, or per request on single-request endpoints. | |
| podcasts_only | No | Set to true to return only podcast episodes |