Get Subreddit

reddit.get_subreddit
ActionChat & messagingconnection required

Calls the Reddit API with the connection's credentials.

Read a subreddit's own record: title, description and counts.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Reddit
Secret shape
{"client_id": "…", "client_secret": "…", "refresh_token": "…"}
Config it needs
user_agent, subreddit
Resolved by
config.connection_id, else node.connection_id

Configuration

1 field, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
subreddit
Subreddit to act on, with or without the 'r/' prefix. Falls back to the connection's default subreddit when left blank.
stringNo——python

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "subreddit": "python"
}

Output

One shape.

result

FieldTypeExample
id
Subreddit id, without its 't5_' prefix.
string—
name
Fullname of the subreddit, such as 't5_2qh0u'.
string—
display_name
Subreddit name as written in a URL.
string—
title
Subreddit title.
string—
public_description
The short public description.
string—
subscribers
How many accounts subscribe to it.
number—
over18
Whether the subreddit is marked NSFW.
boolean—
created_utc
Creation time, as a UTC epoch second.
number—
{
  "created_utc": 0,
  "display_name": "",
  "id": "",
  "name": "",
  "over18": false,
  "public_description": "",
  "subscribers": 0,
  "title": ""
}

See Get Subreddit 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.