AI research & newsletter RAG
Ingest independent tech, finance, and policy newsletters into LLM knowledge bases with clean plain text.
- title
- authorName
- bodyText
Substack API
Extract Substack newsletter posts, author metadata, engagement counts (likes, comments, restacks), paywall flags, and optional full post text from handles, custom domains, or direct post URLs.
Historical recordings · 1 recorded item in the saved sample
Astral Codex Ten · Substack post
Substack · recorded sample
Substack
Astral Codex Ten
Likes
127
Comments
54
Restacks
4
Paywalled
No
Congratulations to all finalists
Recorded from a verified Substack archive run. Fields match the published v1 Dataset contract.
SYS // Overview
Extract Substack newsletter posts, author metadata, engagement counts (likes, comments, restacks), paywall flags, and optional full post text from handles, custom domains, or direct post URLs.
Pass any Substack handle (like astralcodexten), custom domain (like lennysnewsletter.com or newsletter.pragmaticengineer.com), or direct post URL to extract structured newsletter archives over pure HTTP with zero browser overhead.
Filter by sort (new or top), search keywords, and since/until date bounds. Invalid publications, empty results, and duplicates on resume are never charged ($0.60/1K posts delivered, $0 start fee).
Input
Substack handles, custom domains, or post URLs
Output
Newsletter posts, engagement metrics & optional body text
Provide one or more Substack handles, custom domains, or direct /p/<slug> post URLs.
Select new or top sort, optional search and since/until bounds, and toggle includeBodyText for full plain text.
Receive flat JSON or CSV rows with title, author, publication URL, engagement counts, paywall flags, and body text.
SYS // Use cases
The record is designed to sit inside research and review workflows. The examples below are starting points, not packaged scores.
Ingest independent tech, finance, and policy newsletters into LLM knowledge bases with clean plain text.
Compare likes, comments, restacks, and publishing cadence across top newsletters in a niche.
Monitor industry analysts and custom-domain Substack publications on a schedule with date cutoffs.
SYS // Try it
Preview a verified Substack newsletter post with publication metadata, author info, engagement counts, and paywall status, then inspect the raw JSON.
Enter a Substack handle or custom domain (e.g. astralcodexten, https://www.lennysnewsletter.com).
https://api.apify.com/v2/acts/meka.im~substack-scraper/run-sync-get-dataset-itemsLikes
127
Comments
54
Restacks
4
Paywalled
No
Only returned fields are shown.
All returned fields
Recorded Dec 1, 2026 · Historical snapshot · Source: Substack
1[2{3"publication": "astralcodexten",4"publicationName": "Astral Codex Ten",5"publicationUrl": "https://www.astralcodexten.com",6"postId": "226572858",7"slug": "book-review-contest-2026-winners",8"title": "Book Review Contest 2026 Winners",9"subtitle": "Congratulations to all finalists",10"postUrl": "https://www.astralcodexten.com/p/book-review-contest-2026-winners",11"authorName": "Scott Alexander",12"authorHandle": "astralcodexten",13"publishedAt": "2026-11-27T20:32:19.335Z",14"isPaywalled": false,15"audience": "everyone",16"wordCount": 1327,17"likesCount": 127,18"commentsCount": 54,19"restacksCount": 4,20"coverImageUrl": "https://example.com/cover.jpeg",21"tags": [22"Books"23],24"excerpt": "Here are the winners of the 2026 Book Review Contest.",25"bodyText": null,26"scrapedAt": "2026-12-01T00:00:00.000Z"27}28]
SYS // Reference
POST to the Apify Actor endpoint with a bearer token. Request examples use $APIFY_TOKEN and the current product defaults; response examples come from a saved historical record.
Request fields accepted by the Actor. Preview input is sent only when you run a live request.
publicationsstring[]Substack handles (astralcodexten), Substack URLs, custom domains (https://www.lennysnewsletter.com), or direct post URLs (https://.../p/<slug>).
sortstringArchive sort order: new or top. Default: "new".
maxPostsPerPublicationintegerMaximum posts to deliver per publication (1–500; default 25).
includeBodyTextbooleanFetch full plain-text body for free posts (paywalled posts return preview text and isPaywalled: true). Default: false.
searchstringOptional search query filter passed to the Substack archive API.
sincestringOptional ISO date/timestamp lower bound (e.g. 2026-01-01).
untilstringOptional ISO date/timestamp upper bound (e.g. 2026-12-31).
Published v1 response fields are listed below, including engagement metrics, paywall flags, and optional full body text.
publicationstringRequiredNormalized publication handle or identifier.
Example: astralcodexten
publicationNamestring | nullDisplay name of the Substack newsletter.
Example: Astral Codex Ten
publicationUrlstring | nullCanonical publication homepage URL (supports custom domains).
Example: https://www.astralcodexten.com
postIdstringRequiredUnique Substack post identifier.
Example: 226572858
slugstringRequiredURL slug of the post.
Example: book-review-contest-2026-winners
titlestringRequiredPost headline.
Example: Book Review Contest 2026 Winners
subtitlestring | nullOptional post subtitle or deck.
Example: Congratulations to all finalists
postUrlstringRequiredCanonical public post URL.
Example: https://www.astralcodexten.com/p/book-review-contest-2026-winners
authorNamestring | nullPrimary author display name.
Example: Scott Alexander
publishedAtstring | nullISO-8601 UTC publication timestamp.
Example: 2026-11-27T20:32:19.335Z
isPaywalledbooleanWhether the post requires a paid subscription for full text.
Example: false
audiencestringAudience tier: everyone, only_paid, or founding.
Example: everyone
wordCountinteger | nullWord count reported by Substack.
Example: 1327
likesCountintegerPublic like/reaction count.
Example: 127
commentsCountintegerPublic comment count.
Example: 54
restacksCountintegerPublic restack count.
Example: 4
excerptstring | nullTruncated post preview or summary.
Example: Here are the winners of the 2026 Book Review Contest.
bodyTextstring | nullFull plain-text body when includeBodyText is true (null otherwise).
curl -X POST 'https://api.apify.com/v2/acts/meka.im~substack-scraper/run-sync-get-dataset-items' \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"publications": [
"astralcodexten"
],
"sort": "new",
"maxPostsPerPublication": 25,
"includeBodyText": false
}'Recorded sample
1 recorded item · historical sample
[
{
"publication": "astralcodexten",
"publicationName": "Astral Codex Ten",
"publicationUrl": "https://www.astralcodexten.com",
"postId": "226572858",
"slug": "book-review-contest-2026-winners",
"title": "Book Review Contest 2026 Winners",
"subtitle": "Congratulations to all finalists",
"postUrl": "https://www.astralcodexten.com/p/book-review-contest-2026-winners",
"authorName": "Scott Alexander",
"authorHandle": "astralcodexten",
"publishedAt": "2026-11-27T20:32:19.335Z",
"isPaywalled": false,
"audience": "everyone",
"wordCount": 1327,
"likesCount": 127,
"commentsCount": 54,
"restacksCount": 4,
"coverImageUrl": "https://example.com/cover.jpeg",
"tags": [
"Books"
],
"excerpt": "Here are the winners of the 2026 Book Review Contest.",
"bodyText": null,
"scrapedAt": "2026-12-01T00:00:00.000Z"
}
]Recorded Dec 1, 2026 · historical snapshot
SYS // Pricing & access
Published FREE-plan event rates from public Apify metadata. Plan-specific rates and usage terms remain on the Actor's pricing page.
Pricing
$0.60per 1,000 posts
Per unique Substack post delivered. Invalid publications, empty results, and duplicates on resume are free.
Access
https://api.apify.com/v2/acts/meka.im~substack-scraper/run-sync-get-dataset-items
SYS // FAQ
Authentication, response shape, recorded data and availability.
Yes. Pass either the Substack handle, the substack.com URL, the custom domain URL, or a direct /p/<slug> post URL.
Every post includes isPaywalled and audience (everyone, only_paid, founding). When includeBodyText is true, free posts return full plain text and paywalled posts return preview text cleanly without failing.
Pay-per-event with $0 start fee: $0.60 per 1,000 posts delivered ($0.0006/post) on FREE tier, down to $0.38/1K on GOLD+. Empty results and resume duplicates are free.
Send an Apify token as a Bearer token in the Authorization header, as shown in the request examples.
Not by default. Saved samples are historical recordings from the source; each keeps the fields and values from that record and does not verify current availability. Live data is requested directly from the published Apify Actor endpoint with your own token.
Current pricing and usage terms are published on the Apify Actor page.