GET
/v1/reddit/post/commentsPost comments API
Fetches both the original post and the recursive comment tree for any Reddit post URL. Each comment carries its own `replies: { items, more }` structure — `more.next_cursor` is a comma-separated list of comment ids you can pass back via `cursor` to expand deeper threads.
Authentication
Include
x-api-key: <your_key> in your request headersRequests without a valid key get a
401 Unauthorized. Revoked keys return 403 Forbidden.Parameters
Name
Type
Description
urlRequiredstring
Full Reddit post URL (or relative /r/sub/comments/id/...).
cursorOptionalstring
Comma-separated comment ids (from a prior response's `more.next_cursor`) to expand more children.
trimOptionalboolean
Set to "true" to drop selftext_html from the post object.
Example request
curl "https://mesmer.tools/api/v1/reddit/post/comments?url=https%3A%2F%2Fwww.reddit.com%2Fr%2FPython%2Fcomments%2F1t8r5sf%2F" \
-H "x-api-key: <YOUR_API_KEY>"Try it now
Hits the live endpoint with your API key.
Saved locally in your browser. Mint a key in /admin/api-keys.
Response schema
Trimmed example — see Field reference for descriptions.
{
"success": true,
"credits_remaining": -1,
"post": {
"id": "1t8r5sf",
"title": "Sunday Daily Thread: What's everyone working on this week?",
"subreddit": "Python",
"author": "AutoModerator",
"ups": 6,
"num_comments": 8,
"selftext": "# Weekly Thread..."
},
"comments": [
{
"id": "n1xa7r2",
"author": "some_user",
"body": "Been finishing a CLI for log analysis. Used Typer + Rich.",
"score": 12,
"depth": 0,
"permalink": "/r/Python/comments/1t8r5sf/.../n1xa7r2/",
"created_at_iso": "2026-04-21T11:02:45.000Z",
"replies": {
"items": [
{
"id": "n1xb2p4",
"author": "another_user",
"body": "Mind sharing the repo?",
"score": 3,
"depth": 1,
"replies": {
"items": [],
"more": {
"has_more": false,
"next_cursor": null
}
}
}
],
"more": {
"has_more": false,
"next_cursor": null
}
}
},
"...7 more top-level comments"
],
"more": {
"has_more": false,
"next_cursor": null
}
}Field reference
Top-level response fields you'll most likely use.
Field
Type
Description
postobject
The original post — same raw t3_* shape as /v1/reddit/subreddit posts.
comments[].idstring
Comment short-id (base36).
comments[].authorstring
Commenter's username.
comments[].bodystring
Comment Markdown source.
comments[].scorenumber
Net upvotes.
comments[].created_at_isostring
ISO-8601 creation time.
comments[].depthnumber
Tree depth — 0 is top-level.
comments[].permalinkstring
Reddit-relative path to this exact comment.
comments[].repliesobject
{ items: NormalizedComment[], more: { has_more, next_cursor } }.
more.next_cursorstring
Top-level continuation token for the next batch of root comments.