need_formatboolean
Whether to clean and format the data
Default: 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"
]
}
}
]Pilih contoh untuk memuat input dan hasilnya ke playground.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
need_formatbooleanWhether to clean and format the data
Default: false
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"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"
]
}
}
]Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Reddit App Trending SearchesAPI ini Reddit | $0.001 per panggilan | JSON |
Reddit | $0.001 per panggilan | JSON |
Reddit | $0.001 per panggilan | JSON |
Reddit | $0.001 per panggilan | JSON |
Reddit | $0.001 per panggilan | JSON |
Reddit | $0.001 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/reddit/app/trending-searches dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Tidak ada parameter yang wajib. Opsional: need_format (boolean). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Reddit App Trending Searches berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Reddit secara terpisah.