Lemon8 Hot Search Keywords
https://api.sandbase.ai/v1/api/lemon8/app/hot-search-keywordsReturns trending search keywords and topics currently popular on Lemon8. Call this endpoint to track real-time user discovery trends across the app.
- Giá
- $0.001USD / lượt gọi
- Phương thức
- POST
- Phản hồi
- JSON
- Tham số
- 0 bắt buộc · 0 tùy chọn
Phòng thử nghiệm
[
{
"data": {
"code": 0,
"data": {
"guess_hit_id": "",
"hot_random_words": null,
"hot_word_search_type": 2,
"hot_words": [
{
"extra": "{\"recall_score\":{\"personalized_viking_recall\":\"-4.388337\"},\"recall_position\":{\"personalized_viking_recall\":1573},\"roughsort_score\":0.03871828317642212,\"predict_ctr_score\":0.00045123687596060336,\"model_pred:_CTR\":-7.703066825866699,\"model_pred:_CTR:pred_recommend_ctr\":-7.030240535736084,\"model_pred:_CTR:pred_rs_ctr\":-4.774655342102051,\"model_pred:_CTR:pred_sar_ctr\":-5.579335689544678,\"model_pred:_CTR:pred_sug_ctr\":-7.703066825866699,\"model_pred:roughsort_score\":0.03871828317642212,\"model_pred:utility\":0.00045123687596060336,\"slot_utility_scores\":[],\"predict_utility_score\":0.0008839369402267039,…",
"group_id": "1500007779437957668",
"query": "New KATSEYE single",
"recall_source": "personalized_viking_recall",
"source": "preset_words_organic",
"type": "plain"
},
{
"extra": "{\"recall_score\":{\"bert_viking_two_hop_recall\":\"0.000000\"},\"recall_position\":{\"bert_viking_two_hop_recall\":9},\"roughsort_score\":0.03871828317642212,\"predict_ctr_score\":0.018098412081599236,\"model_pred:_CTR\":-3.993666887283325,\"model_pred:_CTR:pred_recommend_ctr\":-6.1192803382873535,\"model_pred:_CTR:pred_rs_ctr\":-4.794894218444824,\"model_pred:_CTR:pred_sar_ctr\":-3.9972198009490967,\"model_pred:_CTR:pred_sug_ctr\":-3.993666887283325,\"model_pred:roughsort_score\":0.03871828317642212,\"model_pred:utility\":0.018098412081599236,\"slot_utility_scores\":[],\"predict_utility_score\":0.0021952090319246054,\"ranki…",
"group_id": "1977623035274293832",
"query": "adidas spezial originals",
"query_labels": [
{
"label_priority": 3,
"label_type": "hot",
"query_type": "hot"
}
],
"recall_source": "bert_viking_two_hop_recall",
"source": "hot_recom",
"type": "plain"
},
{
"extra": "{\"recall_score\":{\"bg_search_history_recall\":\"85.000000\"},\"recall_position\":{\"bg_search_history_recall\":122},\"roughsort_score\":0.03871828317642212,\"predict_ctr_score\":0.05719682574272156,\"model_pred:_CTR\":-2.802359104156494,\"model_pred:_CTR:pred_recommend_ctr\":-6.042870998382568,\"model_pred:_CTR:pred_rs_ctr\":-4.024166584014893,\"model_pred:_CTR:pred_sar_ctr\":-4.332452774047852,\"model_pred:_CTR:pred_sug_ctr\":-2.802359104156494,\"model_pred:roughsort_score\":0.03871828317642212,\"model_pred:utility\":0.05719682574272156,\"slot_utility_scores\":[],\"predict_utility_score\":0.002369105350226164,\"ranking_rul…",
"group_id": "3343723411880254870",
"query": "camping",
"query_labels": [
{
"label_priority": 2,
"label_type": "searched",
"query_type": "searched"
}
],
"recall_source": "bg_search_history_recall",
"source": "recom_search",
"type": "plain"
},
"… 7 more items in the full response"
],
"impr_id": "20260929140925E911321309BEA91F1A0F"
},
"message": "success",
"result_status": 0,
"server_time": "1790690966.19"
}
}
]Ví dụ
Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
README API
Lemon8 Hot Search Keywords API
Returns the list of trending search keywords currently shown in Lemon8 search. It needs no input: send an empty JSON object {}.
Use cases
- Collect the current hot search queries on Lemon8 to see which topics users look for.
- Pick keywords for Lemon8 post titles and tags from the terms in
data.hot_words[].query. - Store the list on a schedule to compare which queries appear or drop out over time.
- Feed a returned
queryinto Lemon8 search to see the posts that match a trending term.
Request
curl -X POST "https://api.sandbase.ai/v1/api/lemon8/app/hot-search-keywords" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"guess_hit_id": "",
"hot_random_words": null,
"hot_word_search_type": 2,
"hot_words": [
{
"extra": "{\"recall_score\":{\"bert_viking_two_hop_recall\":\"0.000000\"},\"recall_position\":{\"be…",
"group_id": "7590746814001978624",
"query": "football catching tips",
"recall_source": "bert_viking_two_hop_recall",
"source": "recom_search",
"type": "plain"
}
],
"impr_id": "202611030736318E8A0C01D997AA17A64C"
},
"message": "success",
"result_status": 0,
"server_time": "1793691391.95"
}
Response fields
| Field | Meaning |
|---|---|
data.hot_words[].query | The trending search keyword text, for example christmas. |
data.hot_words[].group_id | ID string attached to the keyword entry. |
data.hot_words[].type | Kind of keyword entry. The sample shows plain. |
data.hot_words[].source | Where the keyword comes from. The sample shows recom_search. |
data.hot_words[].recall_source | Name of the recall method that selected this keyword, for example bert_viking_two_hop_recall. |
data.hot_words[].extra | A JSON string with ranking details such as recall_score, recall_position and roughsort_score. Parse it as JSON before use. |
data.hot_random_words | Extra random keywords. It is null in the sample response. |
data.hot_word_search_type | Numeric search type code for the list. The sample shows 2. |
data.impr_id | ID string for this response. |
code / message / result_status | Call status. code 0 and message success mean the call worked. |
Notes
- The endpoint takes no parameters and returns the keyword list in a single response, with no pagination.
server_timeis a Unix timestamp in seconds, returned as a string with decimals.- To see posts for a keyword, pass its
queryto Lemon8 Search. - To browse more of the app's discovery content, call Lemon8 Discover Page Content.
Pricing
$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
Gửi request đầu tiên của bạn
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/lemon8/app/hot-search-keywords" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Xác thực
Đặ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.
3. Tham số
Chưa có schema tham số nào được công bố cho API này.
4. Phản hồi
Đâ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": {
"code": 0,
"data": {
"guess_hit_id": "",
"hot_random_words": null,
"hot_word_search_type": 2,
"hot_words": [
{
"extra": "{\"recall_score\":{\"personalized_viking_recall\":\"-4.388337\"},\"recall_position\":{\"personalized_viking_recall\":1573},\"roughsort_score\":0.03871828317642212,\"predict_ctr_score\":0.00045123687596060336,\"model_pred:_CTR\":-7.703066825866699,\"model_pred:_CTR:pred_recommend_ctr\":-7.030240535736084,\"model_pred:_CTR:pred_rs_ctr\":-4.774655342102051,\"model_pred:_CTR:pred_sar_ctr\":-5.579335689544678,\"model_pred:_CTR:pred_sug_ctr\":-7.703066825866699,\"model_pred:roughsort_score\":0.03871828317642212,\"model_pred:utility\":0.00045123687596060336,\"slot_utility_scores\":[],\"predict_utility_score\":0.0008839369402267039,…",
"group_id": "1500007779437957668",
"query": "New KATSEYE single",
"recall_source": "personalized_viking_recall",
"source": "preset_words_organic",
"type": "plain"
},
{
"extra": "{\"recall_score\":{\"bert_viking_two_hop_recall\":\"0.000000\"},\"recall_position\":{\"bert_viking_two_hop_recall\":9},\"roughsort_score\":0.03871828317642212,\"predict_ctr_score\":0.018098412081599236,\"model_pred:_CTR\":-3.993666887283325,\"model_pred:_CTR:pred_recommend_ctr\":-6.1192803382873535,\"model_pred:_CTR:pred_rs_ctr\":-4.794894218444824,\"model_pred:_CTR:pred_sar_ctr\":-3.9972198009490967,\"model_pred:_CTR:pred_sug_ctr\":-3.993666887283325,\"model_pred:roughsort_score\":0.03871828317642212,\"model_pred:utility\":0.018098412081599236,\"slot_utility_scores\":[],\"predict_utility_score\":0.0021952090319246054,\"ranki…",
"group_id": "1977623035274293832",
"query": "adidas spezial originals",
"query_labels": [
{
"label_priority": 3,
"label_type": "hot",
"query_type": "hot"
}
],
"recall_source": "bert_viking_two_hop_recall",
"source": "hot_recom",
"type": "plain"
},
{
"extra": "{\"recall_score\":{\"bg_search_history_recall\":\"85.000000\"},\"recall_position\":{\"bg_search_history_recall\":122},\"roughsort_score\":0.03871828317642212,\"predict_ctr_score\":0.05719682574272156,\"model_pred:_CTR\":-2.802359104156494,\"model_pred:_CTR:pred_recommend_ctr\":-6.042870998382568,\"model_pred:_CTR:pred_rs_ctr\":-4.024166584014893,\"model_pred:_CTR:pred_sar_ctr\":-4.332452774047852,\"model_pred:_CTR:pred_sug_ctr\":-2.802359104156494,\"model_pred:roughsort_score\":0.03871828317642212,\"model_pred:utility\":0.05719682574272156,\"slot_utility_scores\":[],\"predict_utility_score\":0.002369105350226164,\"ranking_rul…",
"group_id": "3343723411880254870",
"query": "camping",
"query_labels": [
{
"label_priority": 2,
"label_type": "searched",
"query_type": "searched"
}
],
"recall_source": "bg_search_history_recall",
"source": "recom_search",
"type": "plain"
},
"… 7 more items in the full response"
],
"impr_id": "20260929140925E911321309BEA91F1A0F"
},
"message": "success",
"result_status": 0,
"server_time": "1790690966.19"
}
}
]Khám phá thêm
APIs liên quan
| API | Giá | Phản hồi |
|---|---|---|
Lemon8 Hot Search KeywordsAPI này Lemon8 | $0.001 mỗi lần gọi | JSON |
Lemon8 | $0.001 mỗi lần gọi | JSON |
Lemon8 | $0.001 mỗi lần gọi | JSON |
Lemon8 | $0.001 mỗi lần gọi | JSON |
Lemon8 | $0.001 mỗi lần gọi | JSON |
Lemon8 | $0.001 mỗi lần gọi | JSON |
Câu hỏi
FAQ
Làm thế nào để dùng API Lemon8 Hot Search Keywords?
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/lemon8/app/hot-search-keywords 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.
API Lemon8 Hot Search Keywords có giá bao nhiêu?
$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ý.
API Lemon8 Hot Search Keywords chấp nhận những tham số nào?
Lemon8 Hot Search Keywords không nhận tham số đầu vào; hãy gửi một phần thân JSON rỗng.
API Lemon8 Hot Search Keywords trả về gì?
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.
Tôi có cần tài khoản nhà phát triển hoặc API key của Lemon8 không?
Không. Lemon8 Hot Search Keywords 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 Lemon8.
