The latest comments in a subreddit
Retrieve a subreddit’s latest comments, newest first, each with the post it was left on (title, URL and author). There is no sort parameter. The comment each one replies to is not included: parentFullname is always null, and contextUrl opens the reply chain. A community with no comments answers 200 with an empty items list and the note "This community has no comments to list." An unknown or banned community is a 404; a private, quarantined or premium one is a 403. Billed per page like the other listings: 1 credit per page of 25.
/community-comments Community https://api.fetchlayer.dev/reddit/community-comments Headers
Authorization string required Bearer token — your FetchLayer API key.
Parameters
subreddit string required Subreddit name, with or without r/ (Python or r/Python).
limit integer optional Maximum number of comments to return. (default: 25)
pages integer optional How many pages of results to return, at most. Each page holds 25 results. If omitted, results continue until `limit` is reached (or the 45s time budget ends, returning partial results with `incompleteReason: "scrape_timeout"`), billed as `ceil(items returned / 25)`. If passed, results are capped at that many pages and billed per page actually returned (see `pagesScraped` in the response).
after string optional Continue after this comment: pass nextCursor from a previous response (a comment fullname such as t1_abc123).
include string[] optional Extra fields per comment: ["bodyMarkdown"] adds each comment’s body as Markdown (links, lists, quotes and code), converted from bodyHtml. Off by default to keep responses small.
Response Fields
community-comments
The latest comments in a subreddit
requestedUrl string The Reddit URL the request was for.
finalUrl string Final URL after redirects.
listingType string Always community-comments for a successful response.
subreddit string | null Subreddit name without the r/ prefix.
subredditPrefixed string | null Subreddit name with the r/ prefix.
listingTitle string | null Display title of the listing.
nextCursor string | null Pass as after to continue where this response stopped; null at the end.
notes string[] Caveats about this result, for example "This community has no comments to list." for a community with none, or how many comments had a flair that could not be checked.
items[].id string | null Comment ID without the t1_ prefix.
items[].fullname string | null Reddit comment fullname.
items[].subreddit string | null Subreddit name without the r/ prefix.
items[].subredditPrefixed string | null Subreddit name with the r/ prefix.
items[].author string | null Comment author.
items[].parentPostTitle string | null Parent post title.
items[].parentPostAuthor string | null Parent post author.
items[].parentPostUrl string | null Parent post URL.
items[].permalink string | null Absolute comment permalink.
items[].contextUrl string | null Comment URL including Reddit context.
items[].fullCommentsUrl string | null URL of the full comments page.
items[].createdAt string | null ISO 8601 creation timestamp.
items[].score number | null The comment’s score, or null while Reddit is still hiding it (never 0).
items[].scoreText string | null Score text as displayed by Reddit.
items[].replyCount number | null Reply count when available.
items[].replyCountText string | null Reply count text as displayed by Reddit.
items[].bodyText string Plain-text comment body.
items[].bodyHtml string | null HTML comment body when available.
items[].authorFlair string | null The commenter’s flair in that community, as text (emoji as :code:). null means the commenter wears no flair; it means unknown only when the lookup failed, and notes then says so.
items[].authorFlairRichtext object[] | null The same flair as parts: text parts ({ type, text }) and emoji parts ({ type, code, imageUrl }). null when authorFlair is null.
items[].distinguished string | null Moderator/admin distinction, or null.
items[].stickied boolean Whether the comment is stickied.
items[].removed boolean | null Always null on this route: a community’s comment listing does not show whether a comment was removed.
items[].removedBy string | null Always null on this route, for the same reason as removed.
items[].authorId string | null The author’s account id (t2_…).
items[].subredditId string | null The subreddit’s id (t5_…).
items[].postFullname string | null The fullname of the post the comment is on (t3_…).
items[].parentFullname string | null Always null on this route: the listing names the post a comment is on (postFullname, parentPostTitle, parentPostUrl, parentPostAuthor), not the comment it replies to. Open contextUrl to see the reply chain.
items[].bodyMarkdown string | null Only with include ["bodyMarkdown"]: the comment’s body as Markdown, converted from bodyHtml.
listingTitle string | null Display title of the listing, or null when unavailable.
itemCount number Number of entries returned in items.
nextPageUrl string | null The next page’s address, or null at the end. On endpoints that take `after` it is an api.fetchlayer.dev address: POST it with your key to get the next page (a body is optional; fields you send override the address), or pass its `after` parameter as `after`.
prevPageUrl string | null The previous page’s address (its `before` parameter is the cursor), or null.
pagesRequested number Number of pages requested.
pagesScraped number Pages of results returned. This is what the request is billed at: 1 credit per page actually returned, never per page requested.
scrapedAt string ISO 8601 time the result was produced.
transport string The data source: always the platform id, "reddit".
notes string[] Caveats about this result, for example "This profile shows no public comments." when the profile has none.
Request
curl -X POST "https://api.fetchlayer.dev/reddit/community-comments" \
-H "Authorization: Bearer ss-your-key" \
-H "Content-Type: application/json" \
-d '{"subreddit":"python","limit":1}'Response
{
"listingType": "community-comments",
"subreddit": "python",
"subredditPrefixed": "r/python",
"listingTitle": "Python",
"items": [
{
"id": "abc123",
"fullname": "t1_abc123",
"subreddit": "Python",
"subredditPrefixed": "r/Python",
"author": "coder123",
"parentPostTitle": "What are you building this week?",
"parentPostAuthor": "AutoModerator",
"parentPostUrl": "https://www.reddit.com/r/Python/comments/xyz/what_are_you_building_this_week/",
"permalink": "https://www.reddit.com/r/Python/comments/xyz/what_are_you_building_this_week/abc123/",
"contextUrl": "https://www.reddit.com/r/Python/comments/xyz/what_are_you_building_this_week/abc123/?context=3",
"createdAt": "2026-11-13T09:00:00.000Z",
"score": null,
"bodyText": "A small CLI that renames photos by date.",
"authorFlair": null,
"removed": null,
"removedBy": null,
"postFullname": "t3_xyz",
"parentFullname": null
}
],
"itemCount": 1,
"nextCursor": "t1_abc123",
"pagesRequested": 1,
"pagesScraped": 1,
"notes": [],
"scrapedAt": "2026-11-13T09:00:05.000Z",
"transport": "reddit"
}