MEKA
MEKA // API MODULE · substackSYS.ONLINE · JSON V1
Substack

Substack API

Substack newsletter posts
with full text & engagement

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.

  • Works with Substack handles, substack.com URLs, custom domains, and direct /p/ post URLs
  • Returns likes, comments, restacks, word count, audience tier, and paywall status
  • Optional full plain-text extraction for free posts with automatic cursor pagination

Historical recordings · 1 recorded item in the saved sample

POST/acts/meka.im~substack-scraper/run-sync-get-dataset-items

Astral Codex Ten · Substack post

Substack · recorded sample

1 recorded item

Substack

Book Review Contest 2026 Winners

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.

Recorded Dec 1, 2026Historical sample

SYS // Overview

What this API returns

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

01

Pass publications or post URLs

Provide one or more Substack handles, custom domains, or direct /p/<slug> post URLs.

02

Choose sort, dates, and body text

Select new or top sort, optional search and since/until bounds, and toggle includeBodyText for full plain text.

03

Export structured v1 post rows

Receive flat JSON or CSV rows with title, author, publication URL, engagement counts, paywall flags, and body text.

SYS // Use cases

Where these records fit

The record is designed to sit inside research and review workflows. The examples below are starting points, not packaged scores.

AI research & newsletter RAG

Ingest independent tech, finance, and policy newsletters into LLM knowledge bases with clean plain text.

  • title
  • authorName
  • bodyText

Creator & topic benchmarking

Compare likes, comments, restacks, and publishing cadence across top newsletters in a niche.

  • likesCount
  • commentsCount
  • restacksCount

Market & competitive intelligence

Monitor industry analysts and custom-domain Substack publications on a schedule with date cutoffs.

  • publicationName
  • publishedAt
  • isPaywalled

SYS // Try it

Inspect a recorded Substack post

Preview a verified Substack newsletter post with publication metadata, author info, engagement counts, and paywall status, then inspect the raw JSON.

Checking live preview

Checking live preview availability… Saved samples remain available.

Enter a Substack handle or custom domain (e.g. astralcodexten, https://www.lennysnewsletter.com).

POSThttps://api.apify.com/v2/acts/meka.im~substack-scraper/run-sync-get-dataset-items
Recorded sample
Copyable cURL uses the current preview input and the Actor endpoint.

Rendered

Recorded
Substack
1 record

Substack

Book Review Contest 2026 Winners

Astral Codex Ten

Likes

127

Comments

54

Restacks

4

Paywalled

No

Post

5
Title
Book Review Contest 2026 Winners
Subtitle
Congratulations to all finalists
Excerpt
Here are the winners of the 2026 Book Review Contest.
Published at
Nov 27, 2026, 20:32:19 UTC

Publication & audience

4
Publication
Astral Codex Ten
Author
Scott Alexander
Audience
everyone
Word count
1,327
Response details (22 fields)22

Post

Title
Book Review Contest 2026 Winners
Subtitle
Congratulations to all finalists
Excerpt
Here are the winners of the 2026 Book Review Contest.
Published at
Nov 27, 2026, 20:32:19 UTC

Publication & audience

Publication
Astral Codex Ten
Author
Scott Alexander
Audience
everyone
Word count
1,327

Only returned fields are shown.

All returned fields

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 · Source: Substack

JSON

Recordedapplication/json
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

Request and response contract

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.

Parameters

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>).

sortstring

Archive sort order: new or top. Default: "new".

maxPostsPerPublicationinteger

Maximum posts to deliver per publication (1–500; default 25).

includeBodyTextboolean

Fetch full plain-text body for free posts (paywalled posts return preview text and isPaywalled: true). Default: false.

searchstring

Optional search query filter passed to the Substack archive API.

sincestring

Optional ISO date/timestamp lower bound (e.g. 2026-01-01).

untilstring

Optional ISO date/timestamp upper bound (e.g. 2026-12-31).

Response

Published v1 response fields are listed below, including engagement metrics, paywall flags, and optional full body text.

publicationstringRequired

Normalized publication handle or identifier.

Example: astralcodexten

publicationNamestring | null

Display name of the Substack newsletter.

Example: Astral Codex Ten

publicationUrlstring | null

Canonical publication homepage URL (supports custom domains).

Example: https://www.astralcodexten.com

postIdstringRequired

Unique Substack post identifier.

Example: 226572858

slugstringRequired

URL slug of the post.

Example: book-review-contest-2026-winners

titlestringRequired

Post headline.

Example: Book Review Contest 2026 Winners

subtitlestring | null

Optional post subtitle or deck.

Example: Congratulations to all finalists

postUrlstringRequired

Canonical public post URL.

Example: https://www.astralcodexten.com/p/book-review-contest-2026-winners

authorNamestring | null

Primary author display name.

Example: Scott Alexander

publishedAtstring | null

ISO-8601 UTC publication timestamp.

Example: 2026-11-27T20:32:19.335Z

isPaywalledboolean

Whether the post requires a paid subscription for full text.

Example: false

audiencestring

Audience tier: everyone, only_paid, or founding.

Example: everyone

wordCountinteger | null

Word count reported by Substack.

Example: 1327

likesCountinteger

Public like/reaction count.

Example: 127

commentsCountinteger

Public comment count.

Example: 54

restacksCountinteger

Public restack count.

Example: 4

excerptstring | null

Truncated post preview or summary.

Example: Here are the winners of the 2026 Book Review Contest.

bodyTextstring | null

Full 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

Usage is billed through the Actor

Published FREE-plan event rates from public Apify metadata. Plan-specific rates and usage terms remain on the Actor's pricing page.

Pricing

Pay per delivered event

Apify FREE-plan rate

$0.60per 1,000 posts

Per unique Substack post delivered. Invalid publications, empty results, and duplicates on resume are free.

Checked 1 Dec 2026Apify pricing

Access

One POST endpoint

  • Authenticate with an Apify Bearer token.
  • Send a JSON body to the posted Actor endpoint.
  • Read the Dataset items array returned by the run.

https://api.apify.com/v2/acts/meka.im~substack-scraper/run-sync-get-dataset-items

SYS // FAQ

Questions about the contract

Authentication, response shape, recorded data and availability.

Does it support custom domains like lennysnewsletter.com?

Yes. Pass either the Substack handle, the substack.com URL, the custom domain URL, or a direct /p/<slug> post URL.

How are paywalled posts handled?

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.

How is pricing calculated?

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.

How do I authenticate requests?

Send an Apify token as a Bearer token in the Authorization header, as shown in the request examples.

Are the results on this page live?

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.

Where can I find current pricing?

Current pricing and usage terms are published on the Apify Actor page.