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"
]
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน 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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform 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 key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ 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 App Trending SearchesAPI นี้ Reddit | $0.001 ต่อการเรียก | JSON |
Reddit | $0.001 ต่อการเรียก | JSON |
Reddit | $0.001 ต่อการเรียก | JSON |
Reddit | $0.001 ต่อการเรียก | JSON |
Reddit | $0.001 ต่อการเรียก | JSON |
Reddit | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/reddit/app/trending-searches โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: need_format (boolean). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Reddit App Trending Searches ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Reddit API แยกต่างหาก