PeumeAPI

Social media data · Threads

Substack Posts

Pull posts from any Substack publication by its URL, or pass a single post URL (…/p/slug) to fetch just that one article. Returns title, subtitle, publish date, paywall status, word count, engagement (reactions, comments, restacks), author profile, publication details, the full article body as text, HTML and Markdown, and optional comment threads.

$0.0043 per call

Call it

curl https://api.peume.com/v1/call/threads-substack-posts \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "includeComments": false,
    "url": "your url",
    "includeContent": true,
    "contentType": "all",
    "onlyFree": false
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: threads-substack-posts.

Parameters

minWordCountinteger

Only return posts with at least this many words, which filters out short notes and announcements (e.g. 1000).

maxCommentsinteger

Maximum comments collected per post when 'includeComments' is true (0-500, default 20). Costs nothing extra (e.g. 50).

endDatestring

Only return posts published on or before this date, format YYYY-MM-DD (e.g. 2024-12-31). Applied within the most recent 'limit' posts scanned.

includeCommentsboolean

Include public comment threads and their direct replies on each post (e.g. true).

Example: false

urlRequiredstring

Either a Substack publication URL / custom domain to fetch its recent posts (e.g.), OR a single post URL to fetch just that one article with full content (e.g.).

routestring

Upstream source to run on; omit for "octopus". octopus ($0.00042 + $0.00288 per result, at most $0.289, 99.8% uptime).

octopus

includeContentboolean

Include the full article body as text, HTML and Markdown. Set false for metadata only, which is faster (e.g. false).

Example: true

limitinteger

Maximum number of recent posts to return when given a publication URL (1-100, default 25); ignored for a single post URL, which always returns that one post. You are billed per post returned, so a lower limit costs less.

minReactionsinteger

Only return posts with at least this many reactions (e.g. 100).

contentTypestring

Restrict to a single post type, or 'all' (e.g. newsletter).

all · newsletter · podcast · thread

Example: all

onlyFreeboolean

Return only free (non-paywalled) posts (e.g. true).

Example: false

startDatestring

Only return posts published on or after this date, format YYYY-MM-DD (e.g. 2024-01-01). Applied within the most recent 'limit' posts scanned, so raise 'limit' to reach older date ranges.

minCommentsinteger

Only return posts with at least this many comments (e.g. 10).

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.