Lemon8 Discover Page Content
https://api.sandbase.ai/v1/api/lemon8/app/discover-tabReturns the main content featured on the Lemon8 discover tab. Retrieve trending recommendations and highlighted posts directly from the app feed.
- 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": {
"data": [],
"has_more": false,
"impr_id": "0",
"session_impr_id": "0"
}
}
]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 Discover Page Content API
Returns the content featured on the Lemon8 discover tab as a list in data, plus paging flags and impression IDs. It needs no input parameters.
Use cases
- Pull the current discover feed to see which posts Lemon8 recommends.
- Check the discover tab on a schedule to track which featured content appears over time.
- Collect post entries from the feed, then look up each one with a post details call.
Request
curl -X POST "https://api.sandbase.ai/v1/api/lemon8/app/discover-tab" \
-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.
{
"data": [],
"has_more": false,
"impr_id": "0",
"session_impr_id": "0"
}
Response fields
| Field | Meaning |
|---|---|
data | List of featured discover tab items. The sample response returns an empty list, so check its length before reading items. |
has_more | Boolean flag that shows whether more items are available after this response. It is false in the sample response. |
impr_id | Impression ID string for this response. The sample value is "0". |
session_impr_id | Impression ID string for the session. The sample value is "0". |
Notes
- The request body is an empty object: send
{}. - The
datalist can come back empty, so handle that case in your code. - To get full details for a post found in the feed, call Lemon8 Post Details.
- For promotional banners on the same page, use Lemon8 Discover Page Banners.
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/discover-tab" \
-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": {
"data": [],
"has_more": false,
"impr_id": "0",
"session_impr_id": "0"
}
}
]Khám phá thêm
APIs liên quan
| API | Giá | Phản hồi |
|---|---|---|
Lemon8 Discover Page ContentAPI 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 Discover Page Content?
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/lemon8/app/discover-tab 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 Discover Page Content 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 Discover Page Content chấp nhận những tham số nào?
Lemon8 Discover Page Content không nhận tham số đầu vào; hãy gửi một phần thân JSON rỗng.
API Lemon8 Discover Page Content 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 Discover Page Content 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.
