GET r/{subreddit}/search.json
Summary: Search within a subreddit
Operation ID: searchSubreddit
Auth: unknown
Operation ID: searchSubreddit
Auth: unknown
Description
Search for posts within a specific subreddit.
Parameters (6)
limit
(integer, query, optional, default: 25)
Maximum number of results to return
Constraints: {'minimum': 1, 'maximum': 100}
q
(string, query, required)
The search query
restrict_sr
(boolean, query, optional, default: True)
Restrict search to the specified subreddit
sort
(string, query, optional, default: relevance)
Sort method for results
Constraints: {'enum': ['relevance', 'hot', 'top', 'new', 'comments']}
subreddit
(string, path, required)
The name of the subreddit to search in
t
(string, query, optional, default: all)
Time period filter
Constraints: {'enum': ['hour', 'day', 'week', 'month', 'year', 'all']}
Examples (2)
| Title | Type | URL | Action |
|---|---|---|---|
| Search within subreddit | openapi-spec |
https://www.reddit.com/r/technology/search.json?q=python |
|
| Search within a subreddit | openapi-spec |
https://www.reddit.com/r/technology/search.json?q=machine learning |
Probe History
Status Codes
| Time | Status | Latency | Size |
|---|---|---|---|
| 2026-03-23 10:28:24.883537 | 200 | 711ms | |
| 2026-03-23 10:23:07.296275 | 200 | 797ms |
Response Changes
| When | Old | New |
|---|---|---|
| 2026-03-23 10:28:24.883537 | f62c8b6c543a |
8692fe51d467 |