Search Reddit posts, communities, comments by keyword
tikhub.x.reddit-app-fetch-dynamic-searchReddit: fetch dynamic search (app)
- Price
- $0.001/successプロバイダー原価
- Success rate
- 100%Last 30 days · 19,931 calls
- Latency p50
- 2 sp95 4.5 s
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.x.reddit-app-fetch-dynamic-search?sort=RELEVANCE&query=python+programming&allow_nsfw=0&time_range=all&need_format=false&safe_search=unset&search_type=postPreview- 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 | 文字列 | 任意 | 排序方式(仅适用于post/comment/media)/Sort method (only for post/comment/media): RELEVANCE(相关性), HOT(热门), TOP(最受欢迎), NEW(最新), COMMENTS(评论数,仅post). Prefer RELEVANCE when you want 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. | RELEVANCE |
after | 文字列 | 任意 | Pagination parameter | |
query | 文字列 | 必須 | Search query | python programming |
allow_nsfw | 文字列 | 任意 | Allow NSFW content: 0, 1 | 0 |
time_range | 文字列 | 任意 | 时间范围(仅适用于post/media)/Time range (only for post/media): all(所有时间), year(去年), month(上月), week(上周), day(今天), hour(过去1小时) | all |
need_format | 真偽値 | 任意 | Whether to clean and format the data | false |
safe_search | 文字列 | 任意 | Safe search setting: unset, strict | unset |
search_type | 文字列 | 任意 | 搜索类型/Search type: post(帖子), community(社区), comment(评论), media(媒体), people(用户) | post |
- クエリパラメータ
sort文字列任意排序方式(仅适用于post/comment/media)/Sort method (only for post/comment/media): RELEVANCE(相关性), HOT(热门), TOP(最受欢迎), NEW(最新), COMMENTS(评论数,仅post). Prefer RELEVANCE when you want 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.
例:
RELEVANCEafter文字列任意Pagination parameter
query文字列必須Search query
例:
python programmingallow_nsfw文字列任意Allow NSFW content: 0, 1
例:
0time_range文字列任意时间范围(仅适用于post/media)/Time range (only for post/media): all(所有时间), year(去年), month(上月), week(上周), day(今天), hour(过去1小时)
例:
allneed_format真偽値任意Whether to clean and format the data
例:
falsesafe_search文字列任意Safe search setting: unset, strict
例:
unsetsearch_type文字列任意搜索类型/Search type: post(帖子), community(社区), comment(评论), media(媒体), people(用户)
例:
post
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.reddit-app-fetch-dynamic-search?sort=RELEVANCE&query=python+programming&allow_nsfw=0&time_range=all&need_format=false&safe_search=unset&search_type=post' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.x.reddit-app-fetch-dynamic-search?sort=RELEVANCE&query=python+programming&allow_nsfw=0&time_range=all&need_format=false&safe_search=unset&search_type=post",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.reddit-app-fetch-dynamic-search?sort=RELEVANCE&query=python+programming&allow_nsfw=0&time_range=all&need_format=false&safe_search=unset&search_type=post", {
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.001/success です。サービス料を含みます。