Search Reddit posts by keyword
scrapecreators.reddit.search.postsSearches across all of Reddit for posts matching a query.
- Price
- $0.00188/callPelo preço do provedor
- Success rate
- 99,2%Last 30 days · 103.407 calls
- Latency p50
- 5.3 sp95 9.5 s
- Last verified
- 28 de jul. de 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 | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
sort | string | 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 | string | Opcional | Pagination token from the previous response (after) to get the next page | |
query | string | Obrigatório | Search query | ai |
filter | string | Opcional | Search posts or comments. Default posts. | posts |
timeframe | string | Opcional | Post search timeframe. One of: all | day | week | month | year. | all |
- Parâmetros de consulta
sortstringOpcionalPrefer 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.
Exemplo:
relevancetrimbooleanoOpcionalSet to true for a trimmed down version of the response
Exemplo:
falseafterstringOpcionalPagination token from the previous response (after) to get the next page
querystringObrigatórioSearch query
Exemplo:
aifilterstringOpcionalSearch posts or comments. Default posts.
Exemplo:
poststimeframestringOpcionalPost search timeframe. One of: all | day | week | month | year.
Exemplo:
all
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.00188/call, incluindo a taxa de serviço.