Search Reddit
Reddit API
Search Reddit
Search every public subreddit — thorough, and the slowest call here.
GET
Search Reddit
Returns
posts plus an after token to page. Each post carries title, author, selftext, selftext_html, subreddit, score, ups, downs, upvote_ratio, num_comments, created_utc, created_at_iso, url, permalink, subreddit_subscribers, is_video, over_18 and spoiler.
sort accepts relevance, new, top and comment_count; timeframe narrows the window.
Measured at 8 to 16 seconds and 8 to 26 KB — the slowest endpoint here. To stay inside one community, get_reddit_subreddit_search is faster and pages with cursor rather than after. To read one post’s discussion, get_reddit_post_comments.
Example
Authorizations
AIsa API key. Get yours at https://aisa.one
Query Parameters
Search query
Sort by
Available options:
relevance, new, top, comment_count Timeframe
Available options:
all, day, week, month, year Used to paginate to next page
Set to true for a trimmed down version of the response