Reddit search results
crawl4ai.reddit.search.postsReddit's search results as posts: title, the post's page, what it links to, score, comment count, author, time, flair and the first 300 characters of the text. Site-wide, or inside one `subreddit`. `sort` relevance, hot, top, new or comments; `t` the window for top; `limit` up to 250. `session` (your `reddit_session` cookie, used for this run only, never stored) is optional. Without `session` it reads Reddit's public JSON as a visitor (a few seconds; Reddit refuses some of our addresses); when Reddit refuses a site-wide search, a slower second source answers (about 2 min, all time). Columns: title, url, link, score, comments, author, created, flair, subreddit, id, text.
- Price
- $0.0009/successプロバイダー原価
- Success rate
- 64.5%Last 30 days · 4,189 calls
- Latency p50
- 11 sp95 148 s
- Last verified
- 2026/10/11Verified working
POSThttps://toolswitch.dev/v1/tools/crawl4ai.reddit.search.postsPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
このツールにパラメータはありません。プロバイダのドキュメント ↗ を参照してください Provider docs
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X POST 'https://toolswitch.dev/v1/tools/crawl4ai.reddit.search.posts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"query":"async runtime"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/crawl4ai.reddit.search.posts",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"query\":\"async runtime\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/crawl4ai.reddit.search.posts", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"query\":\"async runtime\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.0009/success です。サービス料を含みます。