Search Reddit posts by keyword
scrapecreators.reddit.search.postsSearches across all of Reddit for posts matching a query.
- Price
- $0.00188/callAu prix du fournisseur
- Success rate
- 99,2 %Last 30 days · 103 407 calls
- Latency p50
- 5.3 sp95 9.5 s
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/scrapecreators.reddit.search.posts?sort=relevance&query=aiPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
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.
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
sort | chaîne | Facultatif | 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 | booléen | Facultatif | Set to true for a trimmed down version of the response | false |
after | chaîne | Facultatif | Pagination token from the previous response (after) to get the next page | |
query | chaîne | Obligatoire | Search query | ai |
filter | chaîne | Facultatif | Search posts or comments. Default posts. | posts |
timeframe | chaîne | Facultatif | Post search timeframe. One of: all | day | week | month | year. | all |
- Paramètres de requête
sortchaîneFacultatifPrefer 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.
Exemple :
relevancetrimbooléenFacultatifSet to true for a trimmed down version of the response
Exemple :
falseafterchaîneFacultatifPagination token from the previous response (after) to get the next page
querychaîneObligatoireSearch query
Exemple :
aifilterchaîneFacultatifSearch posts or comments. Default posts.
Exemple :
poststimeframechaîneFacultatifPost search timeframe. One of: all | day | week | month | year.
Exemple :
all
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.00188/call, frais de service inclus.