Search Reddit posts by keyword
scrapecreators.reddit.search.postsSearches across all of Reddit for posts matching a query.
- Price
- $0.00188/callプロバイダー原価
- Success rate
- 99.2%Last 30 days · 103,407 calls
- Latency p50
- 5.3 sp95 9.5 s
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/scrapecreators.reddit.search.posts?sort=relevance&query=aiPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
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.
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
sort | 文字列 | 任意 | 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 | 真偽値 | 任意 | Set to true for a trimmed down version of the response | false |
after | 文字列 | 任意 | Pagination token from the previous response (after) to get the next page | |
query | 文字列 | 必須 | Search query | ai |
filter | 文字列 | 任意 | Search posts or comments. Default posts. | posts |
timeframe | 文字列 | 任意 | Post search timeframe. One of: all | day | week | month | year. | all |
- クエリパラメータ
sort文字列任意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.
例:
relevancetrim真偽値任意Set to true for a trimmed down version of the response
例:
falseafter文字列任意Pagination token from the previous response (after) to get the next page
query文字列必須Search query
例:
aifilter文字列任意Search posts or comments. Default posts.
例:
poststimeframe文字列任意Post search timeframe. One of: all | day | week | month | year.
例:
all
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.00188/call です。サービス料を含みます。