uidstringbắt buộc
User ID (required)
https://api.sandbase.ai/v1/api/weibo/app/user-profile-feedRetrieves the profile feed cards for a specified user on Weibo. Query by target user identifier with support for cursor-based pagination.
[
{
"data": {
"__profile_card_server__": {
"from": "SHANHAI-SERVER"
},
"config": "{}",
"items": [
{
"category": "card",
"data": {
"button_background_color": "#FFFFFF",
"button_dark_background_color": "#242424",
"button_scheme": "",
"button_selected_background_color": "#F7F7F7",
"button_selected_dark_background_color": "#1E1E1E",
"button_selected_dark_text_color": "#EA8011",
"button_selected_text_color": "#FF8200",
"card_type": 58,
"dotted_line": true,
"height": 60,
"itemid": "ihlkhl-9797",
"name": "没有更多动态,去看看她的微博内容吧",
"name_bold": false,
"name_color": "#939393",
"name_color_dark": "#888888",
"name_size": 12,
"openurl": "",
"rich_arrow": true,
"rich_arrow_dark_image": "",
"rich_arrow_image": "",
"rich_text": "",
"rich_text_color": "#507DAF",
"rich_text_dark_color": "#7691B9",
"rich_text_scheme": "",
"scheme": "",
"user_icon_image": "https://h5.sinaimg.cn/upload/100/1473/2020/12/16/normalarrow.png",
"user_icon_image_dark": "https://h5.sinaimg.cn/upload/100/1473/2020/12/16/normalarrow.png"
},
"itemExt": null,
"style": {
"margin": [
0,
10,
0,
"… 1 more items in the full response"
],
"padding": [
0,
0,
0,
"… 1 more items in the full response"
]
}
}
],
"loadedInfo": "{}",
"navInfo": "{}",
"pageData": "{}",
"refreshInfo": "{}"
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns the profile feed cards for a Weibo user as a list of card objects. It needs the target user ID in uid and accepts an optional since_id cursor for the next page.
since_id back in the next request.curl -X POST "https://api.sandbase.ai/v1/api/weibo/app/user-profile-feed" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "8431518763"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User ID (required) |
since_id | string | No | Pagination cursor, don't pass for first request, use returned since_id for subsequent requests |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"__profile_card_server__": {
"from": "SHANHAI-SERVER"
},
"config": "{}",
"items": [
{
"category": "card",
"data": {
"button_background_color": "#FFFFFF",
"button_dark_background_color": "#242424",
"button_scheme": "",
"button_selected_background_color": "#F7F7F7",
"button_selected_dark_background_color": "#1E1E1E",
"button_selected_dark_text_color": "#EA8011",
"button_selected_text_color": "#FF8200",
"card_type": 58
},
"itemExt": null,
"style": {
"margin": [
0
],
"padding": [
0
]
}
}
],
"loadedInfo": "{}",
"navInfo": "{}",
"pageData": "{}",
"refreshInfo": "{}"
}
| Field | Meaning |
|---|---|
items[] | List of feed cards for the profile. Each entry holds one card. |
items[].category | Type of the entry. The sample value is card. |
items[].data.card_type | Numeric card type. The sample value is 58. |
items[].data.button_background_color / items[].data.button_selected_background_color | Hex background colors for a button in the card, in its normal and selected states. |
items[].data.button_selected_text_color | Hex text color for the selected button state. |
items[].data.button_dark_background_color / items[].data.button_selected_dark_background_color | Hex background colors for the same button in dark mode. |
items[].style.margin / items[].style.padding | Lists of spacing numbers the app uses to lay out the card. |
items[].itemExt | Extra item data. It is null in the sample response. |
config / loadedInfo / navInfo / pageData / refreshInfo | Strings that hold JSON. All of them are "{}" in the sample response. |
uid from a user lookup, for example Weibo User Profile Information.since_id out on the first request. For later pages, pass the since_id value that the previous response returned.items[].data for the card contents.$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/weibo/app/user-profile-feed" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "8431518763"
}'Đặ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.
uidstringbắt buộcUser ID (required)
since_idanyPagination cursor, don't pass for first request, use returned since_id for subsequent requests
Đâ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.
[
{
"data": {
"__profile_card_server__": {
"from": "SHANHAI-SERVER"
},
"config": "{}",
"items": [
{
"category": "card",
"data": {
"button_background_color": "#FFFFFF",
"button_dark_background_color": "#242424",
"button_scheme": "",
"button_selected_background_color": "#F7F7F7",
"button_selected_dark_background_color": "#1E1E1E",
"button_selected_dark_text_color": "#EA8011",
"button_selected_text_color": "#FF8200",
"card_type": 58,
"dotted_line": true,
"height": 60,
"itemid": "ihlkhl-9797",
"name": "没有更多动态,去看看她的微博内容吧",
"name_bold": false,
"name_color": "#939393",
"name_color_dark": "#888888",
"name_size": 12,
"openurl": "",
"rich_arrow": true,
"rich_arrow_dark_image": "",
"rich_arrow_image": "",
"rich_text": "",
"rich_text_color": "#507DAF",
"rich_text_dark_color": "#7691B9",
"rich_text_scheme": "",
"scheme": "",
"user_icon_image": "https://h5.sinaimg.cn/upload/100/1473/2020/12/16/normalarrow.png",
"user_icon_image_dark": "https://h5.sinaimg.cn/upload/100/1473/2020/12/16/normalarrow.png"
},
"itemExt": null,
"style": {
"margin": [
0,
10,
0,
"… 1 more items in the full response"
],
"padding": [
0,
0,
0,
"… 1 more items in the full response"
]
}
}
],
"loadedInfo": "{}",
"navInfo": "{}",
"pageData": "{}",
"refreshInfo": "{}"
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Weibo App User Profile FeedAPI này Weibo | $0.001 mỗi lần gọi | JSON |
Weibo | $0.001 mỗi lần gọi | JSON |
Weibo | $0.001 mỗi lần gọi | JSON |
Weibo | $0.001 mỗi lần gọi | JSON |
Weibo | $0.001 mỗi lần gọi | JSON |
Weibo | $0.001 mỗi lần gọi | JSON |
Hướng dẫn:Best Weibo API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/weibo/app/user-profile-feed 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, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: uid (string). Tùy chọn: since_id (any). 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. Weibo App User Profile Feed 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 Weibo.