Search Reddit posts by keyword
scrapecreators.reddit.search.postsSearches across all of Reddit for posts matching a query.
- Price
- $0.00188/callAl precio del proveedor
- Success rate
- 99,2 %Last 30 days · 103.407 calls
- Latency p50
- 5.3 sp95 9.5 s
- Last verified
- 28 jul 2026Verified working
GEThttps://toolswitch.dev/v1/tools/scrapecreators.reddit.search.posts?sort=relevance&query=aiPreview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
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.
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
sort | cadena | Opcional | 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 | booleano | Opcional | Set to true for a trimmed down version of the response | false |
after | cadena | Opcional | Pagination token from the previous response (after) to get the next page | |
query | cadena | Obligatorio | Search query | ai |
filter | cadena | Opcional | Search posts or comments. Default posts. | posts |
timeframe | cadena | Opcional | Post search timeframe. One of: all | day | week | month | year. | all |
- Parámetros de consulta
sortcadenaOpcionalPrefer 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.
Ejemplo:
relevancetrimbooleanoOpcionalSet to true for a trimmed down version of the response
Ejemplo:
falseaftercadenaOpcionalPagination token from the previous response (after) to get the next page
querycadenaObligatorioSearch query
Ejemplo:
aifiltercadenaOpcionalSearch posts or comments. Default posts.
Ejemplo:
poststimeframecadenaOpcionalPost search timeframe. One of: all | day | week | month | year.
Ejemplo:
all
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.00188/call, incluida la tarifa de servicio.