Get Post Comments
reddit.get_post_comments
ActionChat & messagingconnection required
Calls the Reddit API with the connection's credentials.
Read a post together with its comment tree.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Secret shape
- {"client_id": "…", "client_secret": "…", "refresh_token": "…"}
- Config it needs
- user_agent, subreddit
- Resolved by
- config.connection_id, else node.connection_id
Configuration
4 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
post_id Id of the post, with or without its 't3_' prefix. | string | Yes | — | — | abc123 |
sort How the comment tree is ordered. | string | No | — | one of "confidence", "top", "new", "controversial", "old", "random", "qa", "live" | — |
limit How many items to return in one page. Reddit caps a page at 100. | number | No | 25 | 1–100 | — |
depth How many levels of replies to include below each top-level comment. | number | No | — | ≥ 1 | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"limit": 25,
"post_id": "abc123"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
post The post itself, unwrapped from its Listing. | object | — |
comments Top-level comments, each keeping its own replies. | array | — |
count How many top-level comments were returned. | number | — |
more_children Ids Reddit truncated from the tree rather than returning, so a shortened thread is visibly shortened. | array | — |
{
"comments": [],
"count": 0,
"more_children": [],
"post": {}
}See Get Post Comments run in a workflow.
In a technical demo we add the Reddit connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.