Get Subreddit Posts
Fetch posts from a subreddit by sort order (hot, new, top, rising, controversial, best). Returns each post's title, author, score, comment count, URLs, flags, and timestamps, plus a cursor for pagination. Ideal for: monitoring subreddits for new posts, tracking trending discussions, sentiment feeds, and content curation.
Catalog action Social
Fetch posts from a subreddit by sort order (hot, new, top, rising, controversial, best). Returns each post's title, author, score, comment count, URLs, flags, and timestamps, plus a cursor for pagination. Ideal for: monitoring subreddits for new posts, tracking trending discussions, sentiment feeds, and content curation.
At a Glance
| Field | Value |
|---|---|
| Action ID | reddit-get-subreddit-posts |
| Category | Social |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | social, reddit, posts, subreddit, monitor, read |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
subreddit | string | Yes | Subreddit name without the r/ prefix (e.g. 'technology', 'CryptoCurrency') |
sort | string | No | Sort order for the listing. Default: 'hot' |
time | string | No | Timeframe filter — only applies to 'top' and 'controversial' sorts. Default: 'day' |
limit | number | No | Maximum number of posts to return. Range: 1-100. Default: 25 |
after | string | No | Pagination cursor (the 'after' value from a previous response) to fetch the next page |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
posts | array | Yes | List of posts |
after | string | null | No | Pagination cursor for the next page, or null when there are no more results |
Examples
json{ "type": "reddit-get-subreddit-posts", "payload": { "subreddit": "example-subreddit" }, "children": []}
bashcurl -X POST "https://api.b3os.org/v1/actions/reddit-get-subreddit-posts/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "subreddit": "example-subreddit" }}'
Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.
