need_formatboolean
Whether to clean and format the data
デフォルト: false
https://api.sandbase.ai/v1/api/reddit/app/trending-searchesReturns currently trending search queries and topics from the Reddit mobile application, with an option to clean and format the output data.
[
{
"data": {
"trendingQueries": [
{
"displayQuery": "Fundrise Innovation Fund (VCX)",
"id": "Fundrise Innovation Fund (VCX)",
"rawQuery": "Fundrise Innovation Fund (VCX)"
},
{
"displayQuery": "Phia Cookie Stuffing Scandal",
"id": "Phia Cookie Stuffing Scandal",
"rawQuery": "Phia Cookie Stuffing Scandal"
},
{
"displayQuery": "Bebe Rexha and Jordan Clarkson Relationship",
"id": "Bebe Rexha and Jordan Clarkson Relationship",
"rawQuery": "Bebe Rexha and Jordan Clarkson Relationship"
},
"… 3 more items in the full response"
]
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Returns the list of search queries currently trending in the Reddit mobile app. The only input is the optional need_format flag, so you can call it with an empty body.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/trending-searches" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
need_format | boolean | No | Whether to clean and format the data |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"trendingQueries": [
{
"displayQuery": "Sephora Rouge Fall 2026 Savings Event Code",
"id": "Sephora Rouge Fall 2026 Savings Event Code",
"rawQuery": "Sephora Rouge Fall 2026 Savings Event Code",
"trendingIcon": ""
}
]
}
| Field | Meaning |
|---|---|
trendingQueries | List of the trending search queries. Each item is one query. |
trendingQueries[].displayQuery | The query text as shown to app users. Use this for display. |
trendingQueries[].rawQuery | The query text to use when you run a search for this topic. |
trendingQueries[].id | Identifier for the query. In this response it has the same value as the query text. |
trendingQueries[].trendingIcon | Icon value for the query. It is an empty string in this response. |
{} to get the default output, or set need_format to true to ask for cleaned and formatted data.rawQuery value to Reddit Keyword Search or Reddit Search to get the posts for a trending topic.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/trending-searches" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"need_format": true
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
need_formatbooleanWhether to clean and format the data
デフォルト: false
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"trendingQueries": [
{
"displayQuery": "Fundrise Innovation Fund (VCX)",
"id": "Fundrise Innovation Fund (VCX)",
"rawQuery": "Fundrise Innovation Fund (VCX)"
},
{
"displayQuery": "Phia Cookie Stuffing Scandal",
"id": "Phia Cookie Stuffing Scandal",
"rawQuery": "Phia Cookie Stuffing Scandal"
},
{
"displayQuery": "Bebe Rexha and Jordan Clarkson Relationship",
"id": "Bebe Rexha and Jordan Clarkson Relationship",
"rawQuery": "Bebe Rexha and Jordan Clarkson Relationship"
},
"… 3 more items in the full response"
]
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Reddit | $0.001 / 回 | JSON |
Reddit | $0.001 / 回 | JSON |
Reddit | $0.001 / 回 | JSON |
Reddit | $0.001 / 回 | JSON |
Reddit | $0.001 / 回 | JSON |
Reddit | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/reddit/app/trending-searches に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須パラメータはありません。 任意: need_format (boolean)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Reddit App Trending Searches は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Reddit の API アクセスを別途申請する必要はありません。