categorystringbắt buộc
Topic category ID, can be obtained from the interface `/lemon8/app/fetch_topic_info`
https://api.sandbase.ai/v1/api/lemon8/app/topic-post-listReturns posts under a specific topic or hashtag on Lemon8. Requires the topic category ID, category parameter, and hashtag name.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns a page of Lemon8 posts under one topic hashtag. Each post includes its author, engagement counts, link, and images. You need the topic category, category_parameter, and hashtag_name values.
lemon8christmas.digg_count and comment_count across posts to find the strongest content in a topic.author objects.curl -X POST "https://api.sandbase.ai/v1/api/lemon8/app/topic-post-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"category": "590", "category_parameter": "7174447913778593798", "hashtag_name": "lemon8christmas"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
category | string | Yes | Topic category ID, can be obtained from the interface /lemon8/app/fetch_topic_info |
category_parameter | string | Yes | Category parameter ID, can be obtained from the interface /lemon8/app/fetch_topic_info |
hashtag_name | string | Yes | Hashtag name, can be obtained from the interface /lemon8/app/fetch_topic_info |
max_behot_time | string | No | Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the max_behot_time returned by the last request is used for subsequent requests. |
sort_type | string | No | Sort type, 0 for default sort, currently only support default sort, please do not pass other values. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"duration": 2,
"has_more": true,
"items": [
{
"activity_forum_list": [],
"app_transcode_rule": {},
"article_class": "Gallery",
"article_selected": false,
"article_sub_class": "normal",
"article_tag_list": [],
"article_type": 0,
"article_url": "https://www.lemon8-app.com/@lemon8_us/7578989388068946487?user_id=72623449159366…",
"author": {
"author_id": 7233310269842719790,
"avatar": {
"height": 1,
"log_extra": "{\"channel_id\":590,\"image_index\":0,\"image_type\":\"avatar\",\"impression_index\":0,\"mi…",
"main_color": "",
"mimetype": "",
"origin_uri": "user-avatar-musically/af9910a9b88477e9a051741b7cc737f6",
"thumb_uri": "thumb/user-avatar-musically/af9910a9b88477e9a051741b7cc737f6",
"thumb_url_list": [],
"uri": "https://p16-lemon8-va-sign.tiktokcdn-us.com/user-avatar-musically/af9910a9b88477…"
},
"description": "Lemon8 official account🍋\nNew Feature Notes is LIVE 🔥🍋",
"link": "sslocal://user_profile?user_id=7233310269842719790",
"name": "Lemon8 US",
"rec_reason": "",
"relation": 0,
"user_auth_info": "{\"auth_type\":102,\"show_auth_symbol\":true}"
},
"avatar_clickable": false,
"ban_comment": 0,
"behot_time": 1793691394.999
}
],
"latency_info": {
"gostream": 953685,
"loader": 417090,
"planner": 23,
"provider": 525246,
"stream_api": 1229507
},
"login_status": 1,
"module_offset": 20,
"session_impr_id": 7703845882646497549,
"tip": "10 stories from TopBuzz",
"total_number": 10
},
"message": "success",
"server_time": "1793691395.48"
}
| Field | Meaning |
|---|---|
data.items[].item_id / data.items[].group_id | Numeric ID of the post. Both fields hold the same value in the sample. Pass it to other post APIs. |
data.items[].article_url | Public Lemon8 web link to the post. |
data.items[].article_class | Type of post. The sample value is Gallery, an image post. |
data.items[].author.author_id / data.items[].author.name | ID and display name of the creator who published the post. |
data.items[].author.description | The creator's profile bio text. |
data.items[].digg_count / comment_count / favorite_count | Counts of likes, comments, and saves for the post. Likes is the usual reading of digg_count, and saves of favorite_count. |
data.items[].abstract / article_description | Caption text of the post as HTML. Not every post includes these fields. |
data.items[].gallery[].image.thumb_url_list[].url | Thumbnail image URLs for each image in the post. |
data.items[].image_list[].image_multi_gears[].url_list[].url | Larger image URLs for each image, with the size named in gear (for example 1080P). |
data.items[].behot_time / display_time | Timestamps of the post as Unix seconds with decimals. |
data.has_more | Tells you whether more posts are available after this page. |
category, category_parameter, and hashtag_name from Lemon8 Topic Information.max_behot_time empty on the first call. For the next page, pass the max_behot_time value from the previous response, and stop when data.has_more is false.0 for sort_type or leave it out. Other values are not supported.item_id to get more on one post.$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/lemon8/app/topic-post-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"category": "590",
"hashtag_name": "lemon8christmas"
}'Đặ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.
categorystringbắt buộcTopic category ID, can be obtained from the interface `/lemon8/app/fetch_topic_info`
category_parameterstringbắt buộcCategory parameter ID, can be obtained from the interface `/lemon8/app/fetch_topic_info`
hashtag_namestringbắt buộcHashtag name, can be obtained from the interface `/lemon8/app/fetch_topic_info`
max_behot_timestringPagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the max_behot_time returned by the last request is used for subsequent requests.
sort_typestringSort type, 0 for default sort, currently only support default sort, please do not pass other values.
Đâ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.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Lemon8 Topic Post ListAPI 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
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/lemon8/app/topic-post-list 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. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.
Bắt buộc: category (string), category_parameter (string) và hashtag_name (string). Tùy chọn: max_behot_time (string) và sort_type (string). 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. Lemon8 Topic Post List 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.