steampipe plugin install reddit

Table: reddit_subreddit_search - Query Reddit Subreddit Search using SQL

Reddit Subreddit Search is a feature within Reddit that allows you to search for subreddits based on a specified query. It provides a way to discover new communities and topics within the Reddit platform. Subreddit Search helps you stay informed about the trending topics and discussions in your areas of interest.

Table Usage Guide

The reddit_subreddit_search table provides insights into Subreddit Search within Reddit. As a data analyst, explore subreddit-specific details through this table, including subreddit names, descriptions, and associated metadata. Utilize it to uncover information about subreddits, such as those with a high number of subscribers, the most discussed topics, and the overall popularity of a subreddit.

Important Notes

  • You must specify the query in the where clause to query this table.

Examples

Search subreddits with query "aws"

Explore various subreddits related to 'aws' to understand their popularity based on subscriber count, allowing you to identify the most engaged communities for specific topics.

select
rank,
display_name_prefixed,
title,
subscribers
from
reddit_subreddit_search
where
query = 'aws'
order by
rank;
select
rank,
display_name_prefixed,
title,
subscribers
from
reddit_subreddit_search
where
query = 'aws'
order by
rank;

Schema for reddit_subreddit_search

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
active_user_countbigintActive user count for the subreddit.
created_utctimestamp with time zoneTime when the subreddit was created.
display_nametextName of the subreddit, e.g. aws.
display_name_prefixedtextPrefixed name of the subreddit, e.g. /r/aws.
idtextID of the subreddit.
nametextName (full ID) of the subreddit.
over18booleanTrue if the post is not safe for work (over 18).
public_descriptiontextPublic description of the subreddit.
querytext=Search query string.
rankbigintRank of the subreddit among the result rows, use for sorting.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
subreddit_typetextType of subreddit.
subscribersbigintNumber of subscribers to the subreddit.
suggested_comment_sorttextSuggested sort order for comments.
titletextTitle of the subreddit.
urltextURL of the subreddit.
user_has_favoritedbooleanTrue if the caller has favorited the subreddit.
user_is_moderatorbooleanTrue if the caller is a moderator of the subreddit.
user_is_subscriberbooleanTrue if the caller is a subscriber of the subreddit.
usernametext=, !=, ~~, ~~*, !~~, !~~*The authorized username.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- reddit

You can pass the configuration to the command with the --config argument:

steampipe_export_reddit --config '<your_config>' reddit_subreddit_search