Substack Public Publication Posts Scraper avatar

Substack Public Publication Posts Scraper

Pricing

from $2.99 / 1,000 newsletter posts

Go to Apify Store
Substack Public Publication Posts Scraper

Substack Public Publication Posts Scraper

Collect public newsletter posts from supplied Substack publication roots.

Pricing

from $2.99 / 1,000 newsletter posts

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Collect public posts from one or more Substack publication roots. The Actor opens each HTTPS root in Playwright and reads the publication's same-origin public /api/v1/posts response, so records come from Substack's public publication API rather than page-layout selectors. Each row keeps the public post identity, title, excerpt, byline and publication metadata, engagement counts, body-availability state, and provenance.

What it does

For each supplied publication root, the Actor makes a browser-based, same-origin request to the public /api/v1/posts endpoint, follows its cursor for additional pages, and writes one dataset row per unique public post. No login, subscriber session, or paywall bypass is used. Optional public body HTML is converted to plain text only when includeBodyText is enabled; restricted posts keep metadata and an excerpt with an explicit body-availability state.

Get started

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Add one or more publication roots to publicationUrls, such as https://www.lennysnewsletter.com/. Each entry must be an origin with an optional trailing slash, not a post or archive URL.
  3. Set maxItems and maxPostsPerPublication. Enable includeBodyText only when you need public body text converted to plain text.
  4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open Run summary (OUTPUT) to check the outcome and body-availability counts.

Input

publicationUrls is required; the other fields are optional and use the defaults below. Unsupported field names and out-of-range values are rejected before requests start.

FieldTypeRequired?DefaultMeaning
publicationUrlsobject arrayRequiredNot suppliedOne to 50 HTTPS publication roots. Each item is { "url": "https://example.substack.com/" }; only an origin and optional trailing slash are accepted.
maxItemsintegerOptional50Global cap on unique posts saved across all publications, from 1 to 200.
maxPostsPerPublicationintegerOptional50Per-publication cap on posts read from the public posts response, from 1 to 200.
includeBodyTextbooleanOptionalfalseConvert public body_html to capped plain text when the public response exposes it.
proxyConfigurationobjectOptional{"useApifyProxy":false}Optional standard Apify Proxy configuration for the Playwright request.

Default input for the optional fields:

{
"maxItems": 50,
"maxPostsPerPublication": 50,
"includeBodyText": false,
"proxyConfiguration": {
"useApifyProxy": false
}
}

publicationUrls has no default; supply at least one root before running.

The Actor reads public data from Substack. Optional proxyConfiguration uses the standard Apify Proxy settings. Requests are made through a browser session so the same-origin /api/v1/posts response can be read; no login, cookie, or subscriber session is used.

Output

The dataset contains one row per unique public post. Optional information appears only when the public response publishes it; missing values are omitted rather than inferred. No diagnostic or placeholder rows are written.

FieldTypeAvailabilityMeaning
recordIdstringAlwaysDeterministic row ID built from the public post ID and a short hash.
recordTypestring enumAlwaysRow discriminator; always substackPost.
postIdstringAlwaysPublic Substack post ID.
titlestringAlwaysPublic post title.
subtitlestringWhen publishedPublic post subtitle.
descriptionstringWhen publishedPublic post description from the posts response.
excerptstringWhen publishedPublic excerpt or truncated body preview.
bodyTextstringWhen includeBodyText is enabled and the body is publicPlain text converted from public body_html, capped in length.
bodyRequestedbooleanAlwaysWhether the run requested public body extraction; true in normal runs.
bodyAvailabilitystring enumAlwaysBody state: extracted, not_requested, restricted, or unavailable.
contentCompletenessstring enumAlwaysContent level in the row: body_text, excerpt_only, or metadata_only.
bodyAccessReasonstring enumAlwaysBounded reason for the body state, such as public_body_extracted, subscriber_only_or_paywalled, or public_api_did_not_return_body.
slugstringWhen publishedPublic post slug.
canonicalUrlstringAlwaysCanonical public post URL. Rows without one are skipped.
publishedAtstringWhen publishedPublic post publication time in ISO UTC.
updatedAtstringWhen publishedPublic post update time in ISO UTC.
publicationIdstringWhen publishedPublic publication ID.
publicationNamestringWhen publishedPublic publication display name.
publicationSubdomainstringWhen publishedSubstack subdomain when the publication has one.
customDomainstringWhen publishedCustom publication domain when one is configured.
publicationUrlstringAlwaysPublic publication homepage URL derived from the custom domain, subdomain, or supplied root.
publicationResolvedUrlstringAlwaysHTTPS publication root reached by the browser.
publicationHeroTextstringWhen publishedPublic publication hero text.
publicationLogostringWhen publishedPublic publication logo URL.
publicationWideLogostringWhen publishedPublic wide-logo URL.
publicationLanguagestringWhen publishedPublication language when the public response exposes it.
authorIdstringWhen publishedPublic byline identifier.
authorNamestringWhen publishedPublic byline name.
authorHandlestringWhen publishedPublic byline handle.
authorPhotostringWhen publishedPublic author photo URL.
authorBiostringWhen publishedPublic author biography.
postTypestringWhen publishedPublic post type, such as newsletter.
audiencestringWhen publishedPublic audience classification, such as only_paid.
wordCountnumberWhen publishedPublic word-count metadata; it is not evidence that the body was extracted.
reactionCountnumberWhen publishedPublic reaction count.
commentCountnumberWhen publishedPublic comment count.
restacksnumberWhen publishedPublic restack count.
coverImagestringWhen publishedPublic cover image URL.
languagestringWhen publishedPublic post language.
tagsstring arrayWhen publishedPublic post tag names.
podcastUrlstringWhen publishedPublic podcast URL when the post has one.
podcastDurationnumberWhen publishedPublic podcast duration metadata.
audioItemsobject arrayWhen publishedPublic audio metadata such as type, status, audioUrl, and voiceId.
sourcestringAlwaysStable public source identifier; public_substack_posts_api.
provenancestringAlwaysExtraction lineage identifier for the public posts contract.
sourceUrlstringAlwaysPublication root used for the public posts request.
extractionMethodstringAlwaysBounded transport and parser label; substack_posts_api_v1 in normal runs.
positionintegerAlwaysOne-based output position across collected posts.
scrapedAtstringAlwaysTime the row was written, in ISO UTC.

The example below is a complete saved row from the 2026-09-09 run. The post was paid-only, so the row contains an excerpt but no bodyText; the run requested body text with includeBodyText: true.

{
"recordId": "substack_newsletter_post_212023427_182d4283a6cc",
"recordType": "substackPost",
"postId": "212023427",
"title": "How to figure out your next career move",
"subtitle": "Six essential questions to help you navigate change",
"description": "Six essential questions to help you navigate change",
"excerpt": "👋 Hey there, I’m Lenny. Each week, I share deeply researched product, growth, and career advice. For more: Lenny’s Jobs | Lenny’s Podcast | Lennybot | How I AI | Become an AI-Native Builder and my other favorite AI/PM courses",
"bodyRequested": true,
"bodyAvailability": "restricted",
"contentCompleteness": "excerpt_only",
"bodyAccessReason": "subscriber_only_or_paywalled",
"slug": "how-to-figure-out-your-next-career",
"canonicalUrl": "https://www.lennysnewsletter.com/p/how-to-figure-out-your-next-career",
"publishedAt": "2026-08-25T13:04:15.691Z",
"updatedAt": "2026-08-25T13:13:54.310Z",
"publicationId": "10845",
"publicationUrl": "https://www.lennysnewsletter.com/",
"publicationResolvedUrl": "https://www.lennysnewsletter.com/",
"authorId": "409162791",
"authorName": "Cliff Maxwell",
"authorHandle": "cliffmaxwell1",
"authorPhoto": "https://substack-post-media.s3.amazonaws.com/public/images/6427c4c5-c7ec-406f-b15f-b287cb631355_1904x1904.jpeg",
"authorBio": "CEO of Vocation, an AI-powered career coach built on a decade of research at Harvard. Former Chief of Staff to Clay Christensen.",
"postType": "newsletter",
"audience": "only_paid",
"wordCount": 4860,
"reactionCount": 457,
"commentCount": 1,
"restacks": 24,
"coverImage": "https://substack-post-media.s3.amazonaws.com/public/images/1a88a225-3e0f-4c00-b34f-3bdcabd91bb3_1456x970.png",
"language": "en",
"tags": [
"Career"
],
"audioItems": [
{
"type": "tts",
"status": "paywalled",
"voiceId": "en-US-AlloyTurboMultilingualNeural"
}
],
"source": "public_substack_posts_api",
"provenance": "public_publication_api_v2_posts_body_contract",
"sourceUrl": "https://www.lennysnewsletter.com/",
"extractionMethod": "substack_posts_api_v1",
"position": 2,
"scrapedAt": "2026-09-09T06:11:17.159Z"
}

Run summary

Run summary is stored separately from the dataset in the run's key-value store under OUTPUT. It records the counts and body-state distributions; diagnostic details stay in the Actor log.

FieldMeaning
recordTypeSummary artifact discriminator; substack_newsletter_run_summary.
statusRun outcome. The archived example records success; current builds write SUCCEEDED or FAILED in the same field.
dataAvailableWhether at least one normal post row was written.
sourceUrlFirst supplied publication root.
requestUrlPublication root requested for the public posts response.
requestedPublicationCountNumber of validated publication roots in the run.
requestedMaxItemsGlobal post limit requested.
requestedMaxPostsPerPublicationPer-publication post limit requested.
includeBodyTextWhether public body-text conversion was requested.
itemsEmittedNumber of normal post rows written.
itemCountCompatibility count equal to itemsEmitted.
diagnosticCountNumber of operational issues logged for the run.
duplicateCountDuplicate public post IDs skipped across publication roots.
failureCountPublication or summary-write failures recorded.
failedPublicationUrlsPublication roots that failed, when any.
bodyAvailabilityCountsCounts for each bodyAvailability value.
contentCompletenessCountsCounts for each contentCompleteness value.
bodyAccessReasonCountsCounts for each bounded bodyAccessReason value.
filtersValidated publication roots, limits, body setting, and whether proxy was used.
sourcePublic source identifier.
provenanceExtraction lineage identifier.
completedAtTime the summary was written, in ISO UTC.
StatusMeaning
SUCCEEDEDCurrent builds: the run completed and at least one post row was written, or the source completed cleanly with no results. The archived example records the older lowercase success.
FAILEDA fatal error occurred before any usable post row was written.

Current builds also write runStatus, dataStatus, and outputWriteFailureCount; the archived example below predates those fields.

Example OUTPUT from the saved run:

{
"recordType": "substack_newsletter_run_summary",
"status": "success",
"dataAvailable": true,
"sourceUrl": "https://www.lennysnewsletter.com/",
"requestUrl": "https://www.lennysnewsletter.com/",
"requestedPublicationCount": 1,
"requestedMaxItems": 2,
"requestedMaxPostsPerPublication": 2,
"includeBodyText": true,
"itemsEmitted": 2,
"itemCount": 2,
"diagnosticCount": 0,
"duplicateCount": 0,
"failureCount": 0,
"failedPublicationUrls": [],
"bodyAvailabilityCounts": {
"extracted": 0,
"not_requested": 0,
"restricted": 2,
"unavailable": 0
},
"contentCompletenessCounts": {
"body_text": 0,
"excerpt_only": 2,
"metadata_only": 0
},
"bodyAccessReasonCounts": {
"public_body_extracted": 0,
"body_extraction_not_requested": 0,
"geoblocked": 0,
"free_unlock_required": 0,
"subscriber_only_or_paywalled": 2,
"unpublished": 0,
"public_api_did_not_return_body": 0
},
"filters": {
"publicationUrls": [
"https://www.lennysnewsletter.com/"
],
"maxItems": 2,
"maxPostsPerPublication": 2,
"includeBodyText": true,
"proxyUsed": false
},
"source": "public_substack_posts_api",
"provenance": "public_publication_api_v2_posts_body_contract",
"completedAt": "2026-09-09T06:11:17.325Z"
}

Storage

Dataset rows are public post records only; no diagnostic or placeholder rows are written. The Run summary (OUTPUT) and SOURCE_METADATA are stored as separate records in the run's default key-value store. OUTPUT holds counts, limits, filters, and status, while SOURCE_METADATA discloses the public endpoints, transport, and access-boundary flags. Failure details stay in the Actor log.

Coverage and limitations

The Actor reads public data from Substack. It does not log in, bypass paywalls, or guarantee a post body. Paid-only, geoblocked, unpublished, or otherwise restricted posts can produce metadata or an excerpt with bodyAvailability: "restricted" and no bodyText. A public body_html value is converted only when includeBodyText is enabled; a word count in the public response is not proof that body text was extracted.

Only publication roots are accepted, and each root must resolve to the same-origin public posts response. Posts without a title or canonical URL are skipped. maxPostsPerPublication limits what is read per root and maxItems caps the combined output. Optional fields are omitted when Substack does not publish them; values are not inferred. Source availability can change, and blocked, empty, or partial responses are counted in OUTPUT rather than written as data rows.

Usage and support

Use the Actor Issues page to report a problem. Include the run ID, the input used, and the OUTPUT summary; do not include tokens, cookies, or private data. This Actor is not affiliated with Substack. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public posts can contain personal information; do not use the output for unauthorized profiling or contact.

Runtime and cost

Cost depends on Apify compute, one browser-based request per supplied publication root, and the number of posts processed. Start with one root and small limits, inspect the dataset and OUTPUT, then scale. See the Actor's Pricing tab for current account rates.

FAQ

Why does a row have no bodyText? Public body HTML is converted only when includeBodyText is enabled and the public response exposes it. Paid-only, geoblocked, unpublished, or otherwise restricted posts can produce metadata or an excerpt with bodyAvailability: "restricted" and no body text. A word count in the public response is not proof that a body was extracted.

What URLs are accepted? Only HTTPS publication roots (origin and optional trailing slash), not individual post or archive URLs. Roots that fail to resolve to the public posts response are counted in OUTPUT rather than written as data rows.

Local validation

Run npm test for contract checks, npm run lint for syntax checks, npm run validate for dataset/schema validation after a local run, and npx apify validate-schema for Actor schema validation. Use small limits and a dedicated local storage directory so validation runs stay isolated.

Disclaimer

This Actor is not affiliated with Substack. It reads only public data, does not log in, bypass paywalls, or solve access challenges. Use it in accordance with the source's terms, robots guidance, and applicable law. Do not use output for unauthorized profiling or contact.