reddit.com
Get subreddit threads
Input
subreddit requiredSubreddit name, with or without the r/ prefix. Case-insensitive: Reddit redirects to the canonical casing (r/python -> r/Python) and the script follows it.
sort optionalReddit's native subreddit sort. "new" is chronological (supports `since`); best/hot/top/rising are ranked (use `limit`). Default new.
Default: "new"time optionalTime window for sort:"top" only (default all). Rejected for other sorts.
limit optionalMax number of threads to return (newest first). Defaults to 25 when `since` is not given. With `since` and no `limit`, the time window is the only bound. A maximum, not a guarantee: fewer matching threads returns what exists.
Default: 25since optionalsort:"new" only - how far back to go: ISO date ("2026-06-01") or shorthand ("24h", "7d", "2w"). Combine with `limit` to cap a time window.
Output
count requiredthreads requiredsubreddit required