Substack

Substack Post Comments

Get the full comment thread of a Substack post, nested. Returns every comment with text, author, date, likes, replies and restacks, replies nested under their parent to any depth, sorted by relevance, newest first or oldest first.

Price: $0.003 per request. Free tier: 50 requests/month.

get/v1/substack/post/comments

Request

  • Base URL: https://apidirect.io
  • URL: https://apidirect.io/v1/substack/post/comments
  • Auth: API key in header X-API-Key

Query parameters

urlstring

Post URL, e.g. https://www.lennysnewsletter.com/p/all-of-the-lenny-and-friends-summit (max 500 characters). Provide url, post_id, or publication and slug.

post_idstring

Numeric post ID, as returned in post_id. Provide url, post_id, or publication and slug.

publicationstring

Publication subdomain, host or URL, used together with slug.

slugstring

Post URL slug, e.g. all-of-the-lenny-and-friends-summit, used together with publication.

sort_by'relevance' | 'most_recent' | 'oldest'

Sort order for the thread

get_sentimentboolean

Set to true to add AI emotion analysis (Plutchik's Wheel) to each result. Adds +$0.001 per request to the cost. Returns emotion scores, dominant emotion, intensity, and polarity.

Response

Successful response

post_idstring nullable
post_urlstring nullable
sort_bystring nullable
totalnumber nullable
countnumber nullable
truncatedboolean nullable

Changes

No recorded changes to this operation across all 1 revision of this API.