Search Reddit posts by keyword
scrapecreators.reddit.search.postsSearches across all of Reddit for posts matching a query.
- Price
- $0.00188/callAt provider cost
- Success rate
- 99.2%Last 30 days · 103,407 calls
- Latency p50
- 5.3 sp95 9.5 s
- Last verified
- Jul 28, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/scrapecreators.reddit.search.posts?sort=relevance&query=aiPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
Prefer sort=relevance for posts matching the query. sort=new is chronological newest-first and often returns weakly related or unrelated sitewide posts — not "recent posts about X". Brand/token queries may also match colloquial substrings under new.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
sort | string | Optional | Prefer relevance when you want posts matching the query. One of: relevance | new | top | comment_count. sort=new is chronological newest-first and often returns weakly related or unrelated sitewide posts (not "recent posts about X"). Brand/token queries may also match colloquial substrings under new. Comment search supports relevance, new, and top; comment_count is for post search only. | relevance |
trim | boolean | Optional | Set to true for a trimmed down version of the response | false |
after | string | Optional | Pagination token from the previous response (after) to get the next page | |
query | string | Required | Search query | ai |
filter | string | Optional | Search posts or comments. Default posts. | posts |
timeframe | string | Optional | Post search timeframe. One of: all | day | week | month | year. | all |
- Query parameters
sortstringOptionalPrefer relevance when you want posts matching the query. One of: relevance | new | top | comment_count. sort=new is chronological newest-first and often returns weakly related or unrelated sitewide posts (not "recent posts about X"). Brand/token queries may also match colloquial substrings under new. Comment search supports relevance, new, and top; comment_count is for post search only.
Example:
relevancetrimbooleanOptionalSet to true for a trimmed down version of the response
Example:
falseafterstringOptionalPagination token from the previous response (after) to get the next page
querystringRequiredSearch query
Example:
aifilterstringOptionalSearch posts or comments. Default posts.
Example:
poststimeframestringOptionalPost search timeframe. One of: all | day | week | month | year.
Example:
all
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.reddit.search.posts?sort=relevance&query=ai' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.reddit.search.posts?sort=relevance&query=ai",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.reddit.search.posts?sort=relevance&query=ai", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.00188/call, including the service fee.