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.
curl "https://apidirect.io/v1/substack/post/comments?url=https%3A%2F%2Fwww.lennysnewsletter.com%2Fp%2Fhow-duolingo-reignited-user-growth" -H "X-API-Key: YOUR_API_KEY"
{
"comments": [
{
"author": "fullstackresearcher",
"author_id": "8067246",
"author_name": "Daniel Kyne",
"author_pic_url": "https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/69f08c0f-8d66-4b63-8d88-97af005d6bab_2126x2126.png",
"author_url": "https://substack.com/@fullstackresearcher",
"body": "Nothing beats real life examples (especially including failures) in deep detail like this! 🙏",
"children": [
{
"author": "jorgemazal1",
"author_id": "25411757",
"author_name": "Jorge Mazal",
"author_url": "https://substack.com/@jorgemazal1",
"body": "Thank you Daniel!",
"children": [],
"comment_id": "13190378",
"date": "2023-02-28 21:45:14",
"is_author": true,
"is_pinned": false,
"likes": 5,
"replies": 0,
"restacks": 0,
"url": "https://www.lennysnewsletter.com/p/how-duolingo-reignited-user-growth/comment/13190378"
}
],
"comment_id": "13180393",
"date": "2023-02-28 16:40:12",
"is_author": false,
"is_pinned": false,
"liked_by": [
"Lenny Rachitsky"
],
"likes": 49,
"reactions": {
"❤": 49
},
"replies": 1,
"restacks": 0,
"status": "published",
"url": "https://www.lennysnewsletter.com/p/how-duolingo-reignited-user-growth/comment/13180393"
}
],
"count": 79,
"post_id": "104096876",
"post_url": "https://www.lennysnewsletter.com/p/how-duolingo-reignited-user-growth",
"sort_by": "relevance",
"total": 78,
"truncated": false
}
No. One request returns the whole thread Substack serves, so there is no pages parameter.
Comments on posts restricted to paying subscribers are hidden from non-subscribers. total still reports the count.
get_sentiment analyses the top-level comments. Nested replies under children are returned without sentiment.
Threads of a few thousand comments can exceed the 4MB response limit. In that case the response keeps as many whole top-level comments as fit and sets truncated to true.
You only pay for successful requests. The Substack Post Comments API costs $0.003 per request. There are no monthly fees or commitments. You get 50 free requests per endpoint every month.
No. You can sign up and use the free tier (50 requests/endpoint/month) without adding a payment method. You only need to add a card when you want to exceed the free tier.
Yes, there's a concurrency limit of 10 simultaneous requests per endpoint per user. If you need more, just get in touch.
Get your API key and start making requests in minutes. 50 requests/month free every month.
Get API Key