Substack Scraper & Research Archive — Markdown, JSON, CSV avatar

Substack Scraper & Research Archive — Markdown, JSON, CSV

Pricing

from $3.00 / 1,000 full article delivereds

Go to Apify Store
Substack Scraper & Research Archive — Markdown, JSON, CSV

Substack Scraper & Research Archive — Markdown, JSON, CSV

Collect publicly accessible Substack articles into source-linked Markdown, JSON, CSV and ZIP research packs. Full/preview labels, coverage reports and incremental collection. Full articles from $3/1,000 by tier, plus $0.005/GB startup (minimum one event). No article fee for previews. By TubeText.

Pricing

from $3.00 / 1,000 full article delivereds

Rating

0.0

(0)

Developer

TubeText Labs

TubeText Labs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

16 days ago

Last modified

Categories

Features

Full permissions

Share

Substack Scraper & Research Archive

Turn publicly accessible Substack articles into source-linked research files. Collect from publication archives or individual article URLs, then download Markdown, JSON, CSV and a ZIP bundle with access labels and a coverage report.

Built by TubeText for newsletter research, source collection and downstream document workflows. Each article retains its source link, author information when available, publication date and retrieval time. The Actor collects source material; it does not generate AI summaries.

Pricing: $4 per 1,000 new full articles on FREE, down to $3 on eligible paid tiers, plus startup from $0.005 at 512 MB. Full articles are charged after delivery to the Dataset; a later ZIP/export failure does not cancel that article fee. Previews and copied continuation records have no article fee. See the full price table and examples below.

Quick start

  1. Open the Actor in Apify Console and review its permissions and current pricing.
  2. Add publication homepages to publications, or individual /p/slug links to postUrls. You can use both in one run.
  3. Start with a small article and request budget. The default Apify timeout is 450 seconds for the default 300-second collection budget. Set a longer run timeout if you increase maxRunSeconds. Network requests stop at least 60 seconds before the platform deadline, reserving up to 30 seconds for charge confirmation and 30 seconds for export. Storage delays or a platform interruption can still prevent export completion.
  4. When the run finishes, open OUTPUT in its default key-value store. Check ready, complete and contentCounts, then download BUNDLE.zip or the listed files.

This small example uses two article URLs from a content validation on October 23, 2026. Sources can change; the example does not guarantee that either article will remain accessible or retain the same access label.

{
"postUrls": [
"https://simonw.substack.com/p/battle-drones-a-vibe-coded-rts-with",
"https://www.lennysnewsletter.com/p/how-to-tell-if-a-startup-has-a-moat"
],
"maxArticles": 4,
"maxArticlesPerPublication": 2,
"maxRequests": 12,
"maxArchivePages": 2,
"maxRunSeconds": 60,
"maxDownloadMb": 5,
"maxOutputMb": 3,
"maxPackBytes": 200000,
"groupBy": "publication-month",
"onlyNew": false
}

For a publication archive, use a homepage, a Substack handle or a custom domain serving a Substack publication:

{
"publications": ["simonw"],
"maxArticles": 10,
"maxArticlesPerPublication": 10,
"maxRequests": 30,
"maxRunSeconds": 60,
"groupBy": "publication-month",
"onlyNew": false
}

The Actor does not accept Substack passwords, cookies or subscriber credentials. It retrieves what the source makes publicly accessible, including public previews of restricted articles.

What you get

OutputUse it for
Default DatasetArticle rows for API processing and Apify exports
BUNDLE.zipMarkdown packs plus index.csv, articles.json, coverage.json and a short README.txt
INDEX.csvAn article index with title, authors, date, publication, access label, source URL and content hash
ARTICLESJSON array containing the consolidated article records and their source links
COVERAGEOverall and per-source progress, failed URLs, pending items, filters, resource usage and stop reasons
PACK-0001.md, …Research files grouped by publication or by publication and month; exact keys are listed in OUTPUT.files.markdown
OUTPUTDelivery status, article counts and the exact files for this export

Markdown packs repeat the article title, author, publication/retrieval dates, access label and source URL. Large articles may span several files to respect maxPackBytes. Splitting can interrupt Markdown formatting; the complete collected article body remains in ARTICLES and articles.json.

Images remain links. Embedded audio and video are represented as links when available and marked not transcribed. Media files are not downloaded. CSV cells that could be interpreted as spreadsheet formulas are prefixed to keep them as text.

Article fields

FieldMeaning
postId, slug, titleSource article identity and title; postId is a string
publicationCanonical publication origin, such as https://name.substack.com; not a display name
authorsNames supplied by the source; may be an empty array
publishedAt, retrievedAtUTC timestamps
urlCanonical article URL
sourceUrlsInputs that led to the article, including overlapping publication and direct-post inputs
contentStatus, audienceAccess label and the source's audience metadata, when supplied
markdown, textCollected article body as Markdown and plain text
contentHashSHA-256 of the collected Markdown; useful for comparing saved exports
mediaDetected embedded media references; transcriptStatus is not_processed

The Dataset is append-only. If another input later points to an already-added article, its Dataset row can have an older sourceUrls list. Use ARTICLES or the ZIP's articles.json for consolidated provenance.

Full text, previews and coverage

contentStatusInterpretation
fullNonempty returned body, source explicitly marked public, and no recognized restriction signal
previewNonempty returned body with a restriction, unlock or truncation signal; only the accessible portion is included
unknownNonempty body without enough access metadata to claim full text
emptyNo usable accessible body

These labels describe the observed source response. They are not a paywall bypass or an independent guarantee that a publisher returned its entire original article.

OUTPUT.ready=true means the listed export files were saved. It does not mean every requested source succeeded. Check OUTPUT.complete and COVERAGE separately, including when Apify reports the run as SUCCEEDED.

complete=true means the selected archive traversal or direct-post selection finished without pending work or unresolved source errors. It does not mean every article is full, or that the source endpoint exposes every historical post. In the two-URL validation above, the observed result was 2 articles: 1 full and 1 preview, with complete=true.

If complete=false, read COVERAGE.failed and COVERAGE.sources. Each source reports discovered, filtered, previously delivered, duplicate, pending and failed counts, plus its stop reason. A global stopReason of partial can have a more specific per-source reason such as page_limit, publication_limit, archive_error or repeated_page.

Input reference

Provide 1–100 unique sources in total. URLs must use public HTTPS addresses without embedded credentials or custom ports. Unknown input fields are rejected.

FieldDefaultSupported values / behavior
publicationsNoneArray of publication homepages, /archive URLs, Substack handles or custom publication domains
postUrlsNoneArray of individual https://publication/p/slug article URLs
publishedAfterNoneInclusive lower bound: YYYY-MM-DD or a UTC ISO timestamp
publishedBeforeNoneA date includes that full UTC day; a UTC ISO timestamp is exclusive
groupBypublication-monthpublication-month or publication
onlyNewfalseWith previousRunId, skip IDs previously delivered as full text; recheck previews
previousRunIdNoneSuccessful baseline run for incremental collection; requires onlyNew=true
resumeFromRunIdNoneFinished run whose saved archive and unfinished work should be continued
maxArticles1001–10,000 new article records per invocation, including preview/unknown/empty rows
maxArticlesPerPublication1001–10,000 new records per input publication host per invocation
maxRequests5001–20,000 HTTP requests, including redirects and retries
maxArchivePages1001–1,000 archive pages per source per invocation
maxRunSeconds3001–3,600 seconds for collection; checkpoint and export delivery can take additional time
maxDownloadMb501–500 MB of compressed HTTP response bodies; excludes headers, TLS and Apify storage traffic
maxOutputMb501–100 MB of serialized article data, including resumed records; derived exports and checkpoints add storage
maxPackBytes2000001,200–2,000,000 UTF-8 bytes per Markdown file

MB means 1,000,000 bytes here. Article limits count records, not paid results or guaranteed full-text articles. Without publishedBefore, collection uses the archive's initial snapshot time as its upper bound. Date filters do not guarantee fewer archive requests: the Actor still enumerates pages, including filtered and previously seen items.

Incremental collection and continuation

GoalInputResult
Start an archiveOmit both history IDsCollect selected accessible articles; onlyNew defaults to false
Collect additions and recheck previewsonlyNew=true plus previousRunIdSkip previously delivered full article IDs; output newly collected records, including rechecked previews
Finish an incomplete archiveresumeFromRunIdCopy saved articles and unfinished work, then continue in a new run; the bundle includes saved and newly collected articles

For an incremental run, start with the same sources, date filters and grouping as the baseline, then set:

{
"publications": ["simonw"],
"maxArticles": 10,
"maxArticlesPerPublication": 10,
"maxRequests": 30,
"maxRunSeconds": 60,
"groupBy": "publication-month",
"onlyNew": true,
"previousRunId": "REPLACEWITHBASELINERUNID"
}

Replace the example run ID with your own baseline from this Actor. It must have status SUCCEEDED and OUTPUT.ready=true, with its checkpoint and storage still available. An initial incremental run can omit previousRunId. History is explicit: the Actor does not automatically look up your most recent run or import another user's history. Full article IDs remain in the cumulative history, but old full articles are not revisited for edits.

For continuation, copy the interrupted or limited run's original input, remove previousRunId if present, and add resumeFromRunId with that run's ID. Keep sources, date filters, groupBy and onlyNew unchanged. The referenced run must be terminal (SUCCEEDED, FAILED, ABORTED or TIMED-OUT) and have a usable checkpoint and saved records. A running or failed-before-checkpoint run cannot serve as a continuation baseline.

Interrupted-export recovery: Use the default maxPackBytes: 200000 for the recommended workflow. Very small packs combined with a low charge limit can leave insufficient resources to recover after export has already started; recovery may stop with history_budget_exceeded and OUTPUT.ready=false. Existing Dataset rows remain accessible, but they do not mean the ZIP bundle was completed. Fees for full articles already delivered to the Dataset are not reversed, and carried articles are not charged again. Larger packs reduce export writes but do not guarantee recovery.

Do not combine the two history IDs. Per-invocation article, request, page and collection-time allowances renew on continuation; output capacity still includes saved records. A resumed bundle can therefore contain more rows than the new run's maxArticles. Increase maxOutputMb when needed. Continuation processes saved pending articles and re-enumerates unfinished sources, deduplicating saved article IDs. This also supports checkpoints from the previous offset-based archive API. Current archive responses use cursor pagination with an explicit end marker. Invalid responses and repeated pages or cursors leave coverage incomplete.

Continuation is also subject to a resource preflight. Before copying saved articles, the Actor checks checkpoint size, actual article bytes and the planned Markdown files against the current run's output allowance and a conservative copy/export budget. A large archive or very small maxPackBytes can be rejected with history_output_limit or history_budget_exceeded, with OUTPUT.ready=false. The original run remains available. Increasing maxPackBytes reduces split files; more allocated memory increases the startup price and available recovery budget. These changes do not guarantee that any archive size will be accepted. previousRunId avoids copying old bodies, but it does not finish pending work from an incomplete run.

Incremental collection does not copy unfinished work from the baseline. Continue an incomplete archive first if you need that selected range finished before starting a new-only cycle. Checking known IDs, duplicate sources, filtered dates and failed requests still consumes checkpoint and request resources. A run can therefore stop with partial coverage and cost_guard even when no new article fee is charged.

Why FULL permissions are required

Cross-run history checks the previous run's owner, Actor, terminal status and selection before reading its checkpoint. That run-metadata check requires Apify FULL_PERMISSIONS in this implementation. Full permissions grant broad access to your Apify account; they are not limited to this one archive. The implementation uses them to read the explicitly referenced, validated run and its storage, then writes to the current run's storage.

Approve the Actor's requested permissions in Apify Console before using it through the API. A full-permission Actor also needs this approval for a fresh run, even though fresh collection itself does not read cross-run history. See Apify's permission documentation.

The history must belong to the same Apify user and the same Actor. Having full permissions does not enable cross-account history import. Do not put an Apify account token in INPUT or custom Actor environment variables. If history permission checks fail, OUTPUT.ready is false and OUTPUT.error.code is history_permissions_required.

Use the API

Save one of the complete input examples as input.json. These shell examples require curl and jq, and an APIFY_TOKEN supplied securely in your environment. The launch target is tubetext/substack-research-archive.

Start the run asynchronously using Apify's Run Actor API:

curl --fail --silent --show-error --request POST \
'https://api.apify.com/v2/actors/tubetext~substack-research-archive/runs?timeout=180&memory=512' \
--header "Authorization: Bearer $APIFY_TOKEN" \
--header 'Content-Type: application/json' \
--data-binary @input.json --output run.json
SUBSTACK_RUN_ID=$(jq -r '.data.id' run.json)

The 180-second timeout leaves export time after the examples' 60-second collection budget. Choose a longer Apify timeout if you raise maxRunSeconds. Keep the returned run ID; do not start another run just to check progress.

Read the run status with Get Actor run, which can wait up to 60 seconds for completion:

curl --fail --silent --show-error \
"https://api.apify.com/v2/actor-runs/$SUBSTACK_RUN_ID?waitForFinish=60" \
--header "Authorization: Bearer $APIFY_TOKEN" --output status.json
jq '.data | {id, status, defaultDatasetId, defaultKeyValueStoreId}' status.json

If the status is still transitional, repeat the status GET later. After the run ends, inspect its output manifest:

SUBSTACK_STORE_ID=$(jq -r '.data.defaultKeyValueStoreId' status.json)
curl --fail --silent --show-error \
"https://api.apify.com/v2/key-value-stores/$SUBSTACK_STORE_ID/records/OUTPUT" \
--header "Authorization: Bearer $APIFY_TOKEN" --output output.json
jq '{ready, complete, articles, contentCounts, stopReason, error, files}' output.json

Only use the current export when ready is true. Check complete and coverage to decide whether it meets your requested scope. If OUTPUT is missing or not ready, inspect the run error instead of assuming any older stored files form a finished bundle.

Download the ZIP and consolidated JSON through the key-value store record API:

curl --fail --silent --show-error \
"https://api.apify.com/v2/key-value-stores/$SUBSTACK_STORE_ID/records/BUNDLE.zip" \
--header "Authorization: Bearer $APIFY_TOKEN" --output research.zip
curl --fail --silent --show-error \
"https://api.apify.com/v2/key-value-stores/$SUBSTACK_STORE_ID/records/ARTICLES" \
--header "Authorization: Bearer $APIFY_TOKEN" --output articles.json

Use the same record endpoint for INDEX.csv, COVERAGE and the Markdown keys in OUTPUT.files.markdown. The run's default Dataset is also available for integrations; the ZIP and ARTICLES preserve the consolidated article projection.

Pricing

You pay for newly delivered full articles and the Actor's startup event. Platform usage is included in these event prices. No AI or proxy service is used.

Apify tierPer full articlePer 1,000 full articles
FREE$0.0040$4.00
BRONZE$0.0038$3.80
SILVER$0.0034$3.40
GOLD, PLATINUM, DIAMOND$0.0030$3.00

Actor Start: $0.005 per allocated GB, rounded up, with a minimum of one event. The default 512 MB run therefore has a $0.005 startup charge; a 2 GB run has a $0.010 startup charge. Apify charges this automatically when a run starts, including runs with invalid inputs, source failures or no new full articles.

The full-article event applies after a new full article's body, Markdown and source links have been saved and made accessible in the Dataset. A later interruption or export failure does not undo an already-delivered article's charge. Check OUTPUT.ready before treating the ZIP/CSV/Markdown package as finished; use the saved article rows or continue from the checkpoint if final exports are incomplete.

There is no article result fee for previews, unknown-access or empty rows, failed fetches, duplicate input results, full IDs skipped by incremental collection, or records copied through resumeFromRunId. A rechecked preview that remains a preview is free of article fees; if it now delivers full text, the full-article event applies. A fresh collection that omits history starts a new archive and can charge again for full articles collected earlier in a different run. Each new run still has its startup charge.

Cost examples

These examples use the FREE tier and default 512 MB memory. They describe event charges, not a promise that a source will return a particular number of full articles.

WorkloadCalculationTotal
20 new full articles plus 5 previews$0.005 startup + 20 × $0.004$0.085
Incremental run with no new full articles$0.005 startup + no article events$0.005
Resume 20 saved articles and deliver 10 new full articles$0.005 startup + 10 × $0.004; saved articles are not billed again$0.045
Invalid input, failed sources or previews onlyStartup applies; no full-article events$0.005

Set Apify's Maximum cost per run separately from the resource fields. The minimum configured maximum is $0.005; at 512 MB this covers startup only and leaves no budget for a full article. Use at least $0.009 on FREE or $0.0088 on BRONZE to allow startup plus one full article. Higher memory requires a correspondingly larger maximum.

Collection stops when the remaining charge allowance cannot cover another full article, even if later sources might yield free previews. The remaining budget includes startup and already billed articles. A charge_limit stop leaves partial coverage; it does not mean the rest of the sources were processed.

The Actor can also stop early with cost_guard based on conservative collection, storage and export reservations, or platform_timeout_margin to leave time for charge confirmation and exports. Export resources are checked before saving each new article, including free previews. Same-run recovery consumes additional reservations for replay and export; repeated recovery can be refused. If a guard stops finalization, OUTPUT.ready stays false, while previously delivered Dataset articles remain accessible and chargeable. These guards and input limits do not guarantee a precise platform-cost estimate or a complete archive. Check coverage before continuing; a continuation is a new run with its own startup charge.

If a charge response is lost, the Actor stops and retains a billing intent. Same-run recovery checks recorded event counts before retrying. An old intent that remains unconfirmed outside the safe retry window is not automatically charged again; contact support with the run ID.

Common errors and limits

SymptomWhat to check
Unknown input field or invalid source/dateUse only supported fields, public HTTPS URLs and valid UTC dates. Publication URLs must be a homepage or /archive; direct articles must use /p/slug.
history_permissions_requiredApprove FULL permissions in Console and confirm the referenced run and storage remain accessible. Start a new run after correcting permissions.
Previous-run ownership or terminal-state errorUse your own terminal run of this same Actor. An incremental baseline must be SUCCEEDED; a run from another Actor is rejected.
Checkpoint or previous-run configuration mismatchRestore the same sources, dates and grouping. For continuation, preserve onlyNew too; start a fresh archive when changing the selection.
charge_limit, cost_guard, platform_timeout_margin, article_limit, publication_limit, page_limit, request_limit, time_limit, download_limit or output_limitReview COVERAGE, then continue with the original selection and suitable limits if saved state is available.
history_output_limit or history_budget_exceededKeep the original run. Check maxOutputMb, reduce Markdown splitting with a larger maxPackBytes, or use a smaller archive. More memory increases startup pricing; old articles are never billed again to fund recovery.
archive_error, HTTP error or non-JSON responseCheck the failed source URL in COVERAGE; it may be unavailable, blocked or not a compatible Substack publication. Partial delivery does not mean that source succeeded.
repeated_pageThe source repeated an archive page. Coverage remains incomplete; retry later without treating the previous result as a complete archive.
history_limitOne checkpoint supports up to 10,000 collected records and 100,000 remembered full article IDs. Start a new archive/history; it will not automatically inherit deduplication across that boundary.
Article metadata exceeds maxPackBytesIncrease the Markdown file-size limit.
No usable output after a timeout or abortCheck for a valid saved checkpoint before continuing. Export finalization needs time after collection.

A single response is limited to 5 MB in both compressed and decompressed form. The Actor does not use proxies. It validates public addresses and redirects; networks that substitute private or fake IPs can be rejected. No input option disables those checks.

This release does not collect comments or Notes, browse user profiles, discover publications globally, or crawl section/tag pages as inputs. It does not log in to Substack, unlock subscriber-only full text, transcribe audio/video, OCR images, generate AI summaries, or automatically upload files into NotebookLM. You can use the exported source files in compatible tools yourself.

For help, open an issue with the run ID, input fields and relevant coverage error. Keep credentials out of the report. More TubeText tools.