Search within a subreddit by keyword — posts, comments
scrapecreators.x.v1-reddit-subreddit-searchSearches within a specific subreddit for posts, comments, and media matching a query.
- Price
- $0.00188/callAt provider cost
- Success rate
- 100%Last 30 days · 18,298 calls
- Latency p50
- 1.1 sp95 2.5 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-reddit-subreddit-search?query=push+upsPreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
sort | string | Optional | Sort order. For posts/media: relevance, hot, top, new, comments. For comments: relevance, top, new | |
query | string | Optional | Search query to find matching content | push ups |
cursor | string | Optional | Cursor to get more results. Get 'cursor' from previous response. | eyJjYW5kaWRhdGVzX3JldHVybmVkIjoi... |
subreddit | string | Required | Subreddit name (e.g. 'Fitness', not 'r/Fitness' or a full URL) | |
timeframe | string | Optional | Timeframe to filter results | |
- Query parameters
sortstringOptionalSort order. For posts/media: relevance, hot, top, new, comments. For comments: relevance, top, new
querystringOptionalSearch query to find matching content
Example:
push upscursorstringOptionalCursor to get more results. Get 'cursor' from previous response.
Example:
eyJjYW5kaWRhdGVzX3JldHVybmVkIjoi...subredditstringRequiredSubreddit name (e.g. 'Fitness', not 'r/Fitness' or a full URL)
timeframestringOptionalTimeframe to filter results
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-reddit-subreddit-search?query=push+ups' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-reddit-subreddit-search?query=push+ups",
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.x.v1-reddit-subreddit-search?query=push+ups", {
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.