need_formatboolean
Whether to clean and format the data
Mặc định: 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"
]
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào 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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
need_formatbooleanWhether to clean and format the data
Mặc định: false
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"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"
]
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Reddit App Trending SearchesAPI này Reddit | $0.001 mỗi lần gọi | JSON |
Reddit | $0.001 mỗi lần gọi | JSON |
Reddit | $0.001 mỗi lần gọi | JSON |
Reddit | $0.001 mỗi lần gọi | JSON |
Reddit | $0.001 mỗi lần gọi | JSON |
Reddit | $0.001 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/reddit/app/trending-searches với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Không có tham số bắt buộc. Tùy chọn: need_format (boolean). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Reddit App Trending Searches chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Reddit.