Skip to main content

Reddit

Reddit is a social media and community discussion platform that enables users to participate in forums called subreddits, share content, post links and text, comment on discussions, and engage with communities around specific topics and interests. This data integration platform provides access to Reddit user account data, content management information, moderation capabilities, and community participation metrics.

CategoryOther
DirectionQuery source
Sign-inReddit OAuth2 (Script App)
Query languagesSQLite
Tables16
Query templates32
Websitereddit.com

Before you start​

Huntbase signs in to Reddit with Reddit OAuth2 (Script App). Create the credential in Reddit first, then keep it to hand for the Connect step.

  1. Sign in to Reddit, go to your app preferences at https://www.reddit.com/prefs/apps, and click Create app (or Create another app).
  2. Enter a name and choose the script option as the app type.
  3. For the redirect URI, enter a placeholder such as http://www.example.com/unused/redirect/uri. It isn't used.
  4. Submit the form and note the app's client ID and client secret.

For the vendor's own instructions, see Reddit OAuth2 quick start.

tip

Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.

Connect Reddit​

  1. Go to Connections and click New connection, or click New connection on the Reddit product page.
  2. On Product, pick Reddit and choose the Owner.
  3. On Details, give the connection a Name and, optionally, a Description.
  4. On Connect, fill in the settings and credentials described below.
  5. On Verify, review the summary and click Create & check.

For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.

Credentials​

The only Method is Reddit OAuth2 (Script App). Enter a Credential label (for example Production), then fill in:

FieldRequiredNotes
Client IDYesSecret — not shown again after you save it.
Client SecretYesSecret — not shown again after you save it.
UsernameYesYour Reddit username. Secret — not shown again after you save it.
PasswordYesYour Reddit password. Secret — not shown again after you save it.

Query it​

Once connected, Reddit can serve these languages in a query tab, and Scout can use it when you ask in Auto:

LanguageUse it for
SQLiteSQL over the 16 tables listed below, alongside every other connected source.

Example: SQLite​

Get current Reddit account info — Retrieve information about the currently authenticated Reddit account.

select
*
from
reddit_my_info;

Reddit ships with 32 query templates. Find them in Library › Queries — see Query templates.

Tables​

Reddit adds 16 tables. Browse their columns from Schema in the query bar's ⋯ menu.

All 16 tables
TableContains
reddit_my_blockedUsers blocked by the user account making the call.
reddit_my_commentYour comments.
reddit_my_friendFriends of the user account making the call.
reddit_my_infoInformation about the user making the query.
reddit_my_moderated_subredditSubreddits you are a moderator of.
reddit_my_postYour posts.
reddit_my_saved_commentYour saved comments.
reddit_my_saved_postYour saved posts.
reddit_my_subscribed_subredditSubreddits you are subscribed to.
reddit_popular_subredditPopular subreddits.
reddit_subreddit_bannedUsers banned from the subreddit.
reddit_subreddit_moderatorModerators of the subreddit.
reddit_subreddit_post_searchSearch posts in a subreddit.
reddit_subreddit_searchSearch subreddits.
reddit_userInformation about a user.
reddit_user_searchSearch Reddit users.

Next steps​