Scraper API
Substacksubstack.postsAvailable
Substack posts of a publication
Its posts, newest first: title, subtitle, byline, date, kind, audience, likes, comments and restacks.
Give it a Substack publication's name or address, and optionally how many posts and where to continue.
1 unit a record, for runs that return data. Runs that fail cost nothing. How units work
- Counted
- 1 unit a record
- Inputs
- 3, 1 required
- Record
- 23 fields
- A run takes
- up to 5 minutes
- Records kept
- 7 days
- Measured
- its success, on the status page
POST/v1/scrapers/substack.posts/runs
sent, and answered
a record of the run23 fields
ok1 unit a record
A record this scraper returned for this input. The first 9 of its 23 fields are set down here; the whole record is below.

What it is used for
- Follow a newsletter
- A Substack publication's posts, newest first, with title, subtitle, byline and date: run it on a schedule and pass on the posts whose
idyou have not seen. - See what readers respond to
- Sort a publication's posts by
reaction_count,comment_countandrestack_countto see which ones its readers took up. - Know what is free
audienceandpaywalledsay which posts everyone may read and which only paying subscribers may.
What you send
A Substack publication's name or address, and optionally how many posts and where to continue. These are its 3 inputs, as its schema has them.
publicationstring Required- The publication: its name (astralcodexten), its address (astralcodexten.substack.com) or its own domain (www.astralcodexten.com).
max_postsinteger Optional- How many posts to return, newest first: 1 to 120.Default
12 cursorstring Optional- Continue an earlier run: the next_cursor it reported.
A request, ready to send
It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/substack.posts/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"publication":"www.astralcodexten.com","max_posts":3}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("substack.posts", {
"publication": "www.astralcodexten.com",
"max_posts": 3,
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("substack.posts", {
publication: "www.astralcodexten.com",
max_posts: 3,
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "substack.posts", map[string]any{"publication": "www.astralcodexten.com", "max_posts": 3})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("substack.posts", Map.of("publication", "www.astralcodexten.com", "max_posts", 3));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run substack.posts --input publication=www.astralcodexten.com --input max_posts=3Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
What comes back
Its posts, newest first: title, subtitle, byline, date, kind, audience, likes, comments and restacks. A record has 23 fields. One we could not read is null, never an empty string or a zero.
{
"id": 225455324,
"slug": "varieties-of-discourseposting",
"publication": "www.astralcodexten.com",
"url": "https://www.astralcodexten.com/p/varieties-of-discourseposting",
"title": "Varieties Of Discourseposting",
"subtitle": null,
"type": "newsletter",
"audience": "everyone",
"paywalled": false,
"published_at": "2026-11-18T07:47:03.648000Z",
"updated_at": null,
"authors": [
"Scott Alexander"
],
"author_handles": [
"astralcodexten"
],
"section": null,
"tags": [],
"cover_image_url": "https://substack-post-media.s3.amazonaws.com/public/images/0eef351a-e346-422c-9b0b-9dbb2d6b3e4d_672x384.jpeg",
"word_count": 1552,
"reaction_count": 228,
"comment_count": 174,
"restack_count": 15,
"podcast_duration_s": null,
"text": null,
"fetched_at": "2026-11-19T18:07:41.358191Z"
}The scraper returned this record for the input above, reading a saved copy of the page, not the live site.
The fields of a record
idinteger- The post's id on Substack.
slugstring- The last part of the post's address.
publicationstring- The publication's address, e.g. www.astralcodexten.com or name.substack.com.
urlstring- The post's address.
titlestring or null- The title.
subtitlestring or null- The subtitle, or the description the post gives in its place.
typestring or null- newsletter, podcast, thread or video, as Substack names the kind of post.
audiencestring or null- Who may read all of it: everyone, only_paid or founding.
paywalledboolean- True when only paying subscribers may read all of it; the text is then only the opening the page shows to everyone.
published_atdatetime or null- When it was published, in UTC.
updated_atdatetime or null- When it was last changed, in UTC.
authorslist of strings- The names in the post's byline.
author_handleslist of strings- Their Substack handles.
sectionstring or null- The publication's section the post is in, when it has sections; substack.posts only, null in substack.post (its answer names no section).
tagslist of strings- The tags the publication gave the post.
cover_image_urlstring or null- The post's cover image.
word_countinteger or null- Number of words of the whole post, as Substack counts them.
reaction_countinteger or null- Number of likes.
comment_countinteger or null- Number of comments.
restack_countinteger or null- Number of restacks (shares on Substack).
podcast_duration_snumber or null- Length of the episode in seconds, for a podcast post.
textstring or null- substack.post only: the text as the page shows it to everyone, links written out. Null in substack.posts.
fetched_atdatetime- When the answer was read, in UTC.
Units and limits
- Counted per record
- Billed per record: a run that returns data costs 1 unit for each record it returns.
- A miss costs nothing
- A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
- What bounds a run
- A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.
What it does not do
- Up to 120 posts a run; the run reports where to continue.
- The list carries no text: a post's text comes from substack.post.
- Comments and subscribers are not read.
The bounds its schema sets
max_posts- 1 to 120; 12 unless you say otherwise
Questions
What does Substack posts of a publication return?
Its posts, newest first: title, subtitle, byline, date, kind, audience, likes, comments and restacks. A record has 23 fields, among them id, slug, publication, url, title and subtitle. A value that could not be read is null, never an empty string or a zero.
What do I send?
A Substack publication's name or address, and optionally how many posts and where to continue. The input publication is required. Optional: max_posts and cursor.
How is it counted?
Billed per record: a run that returns data costs 1 unit for each record it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.
How much does one run return?
Its schema sets these bounds: max_posts 1 to 120 (12 unless you say otherwise). A run may take up to 5 minutes.
What does it not do?
Up to 120 posts a run; the run reports where to continue. The list carries no text: a post's text comes from substack.post. Comments and subscribers are not read.
How long are the records kept, and in what format do they come?
Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.
Can an AI assistant call it?
Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id substack.posts and the same input. It costs what the same API call costs.
Substack
Substack publications' posts, on substack.com or their own domains, as a reader who is not subscribed sees them.
Substack post
substack.postA Substack post's address. The post: title, byline, date, audience, likes, comments, restacks and its text as everyone is shown it.
- Industry
- News, music and books
- Where
- Worldwide
Run it on an input of your own.
Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.