categorystring必須
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.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
categorystring必須Topic category ID, can be obtained from the interface `/lemon8/app/fetch_topic_info`
category_parameterstring必須Category parameter ID, can be obtained from the interface `/lemon8/app/fetch_topic_info`
hashtag_namestring必須Hashtag 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.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Lemon8 Topic Post Listこの API Lemon8 | $0.001 / 回 | JSON |
Lemon8 | $0.001 / 回 | JSON |
Lemon8 | $0.001 / 回 | JSON |
Lemon8 | $0.001 / 回 | JSON |
Lemon8 | $0.001 / 回 | JSON |
Lemon8 | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/lemon8/app/topic-post-list に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: category (string), category_parameter (string) と hashtag_name (string)。 任意: max_behot_time (string) と sort_type (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Lemon8 Topic Post List は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Lemon8 の API アクセスを別途申請する必要はありません。