Reddit home feed
tikhub.x.reddit-app-fetch-home-feedReddit: fetch home feed (app)
- Price
- $0.001/successプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/tikhub.x.reddit-app-fetch-home-feed?sort=BEST&after=dDNfMW9qNXgyYg%3D%3D&need_format=falsePreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
sort | 文字列 | 任意 | Sort method: HOT, NEW, TOP, BEST, CONTROVERSIAL | BEST |
after | 文字列 | 任意 | Pagination parameter for fetching next page | dDNfMW9qNXgyYg== |
need_format | 真偽値 | 任意 | Whether to clean and format the data | false |
filter_posts | 配列 | 任意 | Filter out specified posts, by fullname (t3_ prefix) | ["t3_1ojjquz","t3_1ohepm2","t3_1ojxzzz","t3_1ojnvca","t3_1oj9dcb","t3_1ojxubp","t3_1oj5x2b"] |
- クエリパラメータ
sort文字列任意Sort method: HOT, NEW, TOP, BEST, CONTROVERSIAL
例:
BESTafter文字列任意Pagination parameter for fetching next page
例:
dDNfMW9qNXgyYg==need_format真偽値任意Whether to clean and format the data
例:
falsefilter_posts配列任意Filter out specified posts, by fullname (t3_ prefix)
例:
["t3_1ojjquz","t3_1ohepm2","t3_1ojxzzz","t3_1ojnvca","t3_1oj9dcb","t3_1ojxubp","t3_1oj5x2b"]
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.reddit-app-fetch-home-feed?sort=BEST&after=dDNfMW9qNXgyYg%3D%3D&need_format=false' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.x.reddit-app-fetch-home-feed?sort=BEST&after=dDNfMW9qNXgyYg%3D%3D&need_format=false",
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-home-feed?sort=BEST&after=dDNfMW9qNXgyYg%3D%3D&need_format=false", {
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 です。サービス料を含みます。