user_idstring必須
User ID, can be obtained from the interface `/lemon8/app/get_user_id`
https://api.sandbase.ai/v1/api/lemon8/app/user-following-listReturns the list of accounts followed by a specified Lemon8 user. Accepts a user identifier and supports cursor-based pagination for browsing results.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns the accounts that a Lemon8 user follows. Each entry has the account's name, handle, avatar, and profile link. The API needs the numeric user_id of the user whose following list you want.
curl -X POST "https://api.sandbase.ai/v1/api/lemon8/app/user-following-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "7428056850216862763"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | User ID, can be obtained from the interface /lemon8/app/get_user_id |
cursor | string | No | Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the cursor returned by the last request is used for subsequent requests. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"cursor": 30,
"data": [
{
"description": "",
"hide_follow_button": 0,
"icon_url": "https://p16-lemon8-cross-sign.tiktokcdn-us.com/tos-useast5-i-pyavlv3z7u-tx/deb33…",
"is_canceled": false,
"is_follow_apply": 0,
"is_followed": 0,
"is_following": 0,
"name": "Anna Kate",
"privacy_status": 1,
"share_url": "https://www.lemon8-app.com/@anna.kate832",
"user_auth_info": "{\"auth_type\":0,\"show_auth_symbol\":false}",
"user_id": 7415435863247127594
}
],
"has_more": true
},
"error_code": 0,
"error_message": "",
"message": "success",
"server_time": "1793691395.56"
}
| Field | Meaning |
|---|---|
data.data[].user_id | Numeric ID of the followed account. Use it in other Lemon8 calls that take a user_id. |
data.data[].name | Display name of the followed account. It can contain emoji and special characters. |
data.data[].user_unique_name | Unique handle of the account. It matches the part after @ in share_url. |
data.data[].share_url | Public Lemon8 profile link of the followed account. |
data.data[].icon_url | Avatar image URL, sized 150x150 in the sample. |
data.data[].description | Profile description text. It is an empty string for the sample accounts. |
data.data[].is_following / data.data[].is_followed | Follow-state flags for the account, returned as 0 or 1 numbers. Both are 0 in the sample. |
data.data[].user_auth_info | JSON string with verification details, such as auth_type and show_auth_symbol. |
data.cursor | Cursor value for the next page. The sample returns 30. |
data.has_more | true when more accounts remain after this page. |
user_id from Lemon8 User ID from Share Link if you only have a profile share link.cursor empty on the first call. For the next page, pass the value of data.cursor as cursor, and stop when data.has_more is false.user_id in each list item is a number, while the request parameter user_id is a string.$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/user-following-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "7428056850216862763"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
user_idstring必須User ID, can be obtained from the interface `/lemon8/app/get_user_id`
cursorstringPagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the cursor returned by the last request is used for subsequent requests.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| 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/user-following-list に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: user_id (string)。 任意: cursor (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Lemon8 User Following List は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Lemon8 の API アクセスを別途申請する必要はありません。