uidstring必須
Weibo User ID (UID).
https://api.sandbase.ai/v1/api/weibo/followersGet a page of accounts followed by a Weibo user identified by UID. Use it to examine the account's outgoing follow network or continue through its following list.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns one page of the accounts that a Weibo user follows. It needs the user's numeric uid and takes an optional page number.
followers_count and description for each followed account to find large or relevant accounts.follow_me and bi_followers_count.curl -X POST "https://api.sandbase.ai/v1/api/weibo/followers" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "2803301701"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | Weibo User ID (UID). |
page | integer | No | Page number, starting with 1. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"fill_material": 0,
"has_filtered_attentions": false,
"has_filtered_fans": false,
"next_cursor": 20,
"ok": 1,
"previous_cursor": 0,
"screenName": "人民日报",
"show_related_topic": false,
"show_unread": false,
"sort_type": 0,
"total_number": 419,
"type": 0
}
| Field | Meaning |
|---|---|
screenName | Display name of the user whose following list you requested. |
total_number | Total number of accounts in the following list. The sample shows 419. |
next_cursor / previous_cursor | Position markers for the next and previous page. The sample shows 20 for next_cursor and 0 for previous_cursor. |
users[] | The followed accounts on this page. Each item is one account profile. |
users[].created_at | Date and time the followed account was created, as text such as Wed Jan 23 12:51:13 +0800 2013. |
users[].description | Bio text of the followed account. It can be an empty string. |
users[].followers_count / users[].followers_count_str | Number of followers of the followed account. The _str field is the shortened display text, for example 519万. |
users[].friends_count | Number of accounts the followed account itself follows. |
users[].bi_followers_count | Count of mutual follow relationships for the followed account. |
users[].domain / users[].gender | Custom URL domain name and gender code of the followed account. These fields are missing or empty on some accounts. |
users[].avatar_hd / users[].avatar_large / users[].cover_image | Image URLs for the avatar and the profile cover. The avatar URLs carry an Expires parameter. |
page starting at 1 to move through the list. Check next_cursor and total_number to see how much is left.gender and cover_image, are not present on every account. Handle missing keys.$0.014286 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/weibo/followers" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "2803301701",
"page": 1
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
uidstring必須Weibo User ID (UID).
pageintegerPage number, starting with 1.
デフォルト: 1
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Weibo User Followersこの API Weibo | $0.014286 / 回 | JSON |
Weibo | $0.001 / 回 | JSON |
Weibo | $0.001 / 回 | JSON |
Weibo | $0.001 / 回 | JSON |
Weibo | $0.001 / 回 | JSON |
Weibo | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/weibo/followers に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.014286、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: uid (string)。 任意: page (integer)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Weibo User Followers は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Weibo の API アクセスを別途申請する必要はありません。