uidstringwajib
Weibo User ID (UID).
https://api.sandbase.ai/v1/api/weibo/fansGet a page of fan accounts that follow a Weibo user identified by UID. Use it to browse the account's follower audience or continue through its fan list.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Returns one page of fan accounts that follow a Weibo user. It needs the user's uid, and an optional page number. Each page lists fan profiles along with the target account's total fan count.
total_number.curl -X POST "https://api.sandbase.ai/v1/api/weibo/fans" \
-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.
{
"display_total_number": 158132191,
"display_total_number_str": "1.58亿",
"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
}
| Field | Meaning |
|---|---|
screenName | Display name of the account whose fans are listed. In the example it is 人民日报. |
total_number / display_total_number | Total fan count for the account as a number. display_total_number is a second count, and the example values differ. |
display_total_number_str | Fan count as a short display string, for example 1.58亿. |
next_cursor / previous_cursor | Cursor values for moving between pages. The example returns 20 for next_cursor and 0 for previous_cursor. |
users[].id | Not shown in the trimmed sample; use users[].fansIcon.uid for the numeric ID of each fan. |
users[].fansIcon.uid | Numeric ID of the fan account. It matches fansIcon.fans_uid. |
users[].description | Bio text of the fan account. It can be an empty string. |
users[].created_at | Date and time the fan account was created, for example Fri Nov 07 14:54:19 +0800 2014. |
users[].followers_count / users[].friends_count / users[].favourites_count | Number of followers, number of accounts followed, and number of favourites for the fan account. |
users[].gender | Gender code of the fan account. The example shows f. |
users[].avatar_hd / users[].avatar_large | Image URLs for the fan's avatar, in high and large sizes. The URLs contain Expires and ssig query values. |
uid for an account with Weibo User Profile or Weibo User Profile Information.page starting at 1. The sample response also returns next_cursor for the next position.created_at uses the format Fri Nov 07 14:54:19 +0800 2014.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/weibo/fans" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "2803301701",
"page": 1
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
uidstringwajibWeibo User ID (UID).
pageintegerPage number, starting with 1.
Default: 1
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Weibo User FansAPI ini Weibo | $0.014286 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/weibo/fans dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.014286 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: uid (string). Opsional: page (integer). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Weibo User Fans berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Weibo secara terpisah.