Reddit Subreddit Search API
To get search results inside a subreddit, call GET /v1/reddit/subreddit/search?subreddit=… with your API key. You get clean JSON back.
/v1/reddit/subreddit/searchcurl "https://api.scraperize.com/v1/reddit/subreddit/search?subreddit=programming&query=rust" \ -H "x-api-key: YOUR_API_KEY"
cursor to get the next page.cache_max_age to reuse a recent result for free.429 with a Retry-After header.Parameters
subredditRequiredr/.queryOptionaltypeOptionalposts (default), comments or media (image and video posts).One of 3 values.sortOptionalrelevance (default), hot, top, new or comments (most commented). For type=comments only relevance, top or new.One of 5 values.timeframeOptionalall (default), day, week, month or year.One of 5 values.cursorOptionalcursor from the previous page (it keeps the type, sort and time range). Omit for the first page.cache_max_ageOptionalmeta.cached=true and meta.cachedAt. Otherwise a fresh scrape runs (1 credit) and refreshes the cache. Omit to always scrape fresh.One of 5 values.Send your key in the x-api-key header. Full API reference
Example response
{
"data": {
"subreddit": "programming",
"query": "rust",
"type": "posts",
"sort": "relevance",
"timeframe": null,
"results": [
{
"position": 1,
"id": "1vwyjg2",
"url": "https://www.reddit.com/r/programming/comments/1vwyjg2/what_zig_felt_like_coming_from_rust/",
"title": "What Zig felt like, coming from Rust",
"subreddit": "programming",
"subredditId": "t5_2fwo",
"subredditIconUrl": "https://styles.redditmedia.com/t5_2fwo/styles/communityIcon_1bqa1ibfp8q11.png?width=64&frame=1&auto=webp&s=2545f3c0332e4…",
"author": "BrewedDoritos",
"authorId": "t2_vu94uqi5",
"createdAt": "2026-08-24T10:06:30.683Z",
"score": 269,
"commentCount": 173,
"snippet": null,
"thumbnailUrl": null,
"thumbnailWidth": null,
"thumbnailHeight": null,
"isNsfw": false,
"isSpoiler": false
}
],
"count": 7,
"cursor": "eyJrIjoici9wcm9ncmFtbWluZyIsInEiOiJydXN0IiwieSI6InBvc3RzIiwibyI6bnVsbCwidCI6bnVsbCwiYyI6ImV5SmpZVzVrYVdSaGRHVnpYM0psZEhW…",
"hasMore": true,
"fetchedAt": "2026-11-06T12:49:06.296Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}A real response, shortened to one item per list.
More Reddit endpoints
Reddit Subreddit Search API questions
How much does the Reddit Subreddit Search API cost?
1 credit per successful call. Errors and cached results are free, and new accounts start with 100 free credits, no card required. See pricing.
Do I need a Reddit account or API key?
No. You only need a Scraperize API key, sent in the x-api-key header. Scraperize returns publicly available data. No Reddit login or developer app is needed.
How fresh is the data?
Each call fetches the data live. To trade freshness for cost, pass cache_max_age (e.g. 1h, 1d) to get a recent cached result instantly for 0 credits.
How do I get more results?
Each response includes a cursor. Send it back as the cursor parameter with the same other parameters to get the next page. It is null on the last page.
Where are the full parameters and response fields?
In the API reference, with every parameter, field and error.