powered by
Search Pushshift.io for Reddit submissions
search_submissions( q = "", subreddit = NULL, size = 25, after = NULL, before = NULL, parse_date = TRUE, verbose = TRUE, ... )
tibble of submissions
character, Query term
Restrict results to subreddit (use "!" to negate, comma delimited for multiples)
integer, Number of results to return
integer, Restrict results to those made after this epoch time
integer, Restrict results to those made before this epoch time
logical, should epoch time be converted to date? defaults to TRUE
logical, Whether to display messages
Further arguments passed as query parameters. See [ps_params] for all possible parameters.
Use [to_epoch] to convert a date to epoch time
if (FALSE) { # get the last 100 submissions with the word 'dogs' in the subreddit 'r/animals' search_submissions(q = "dogs", subreddit = "animals", size = 100) }
Run the code above in your browser using DataLab