uidstringbắt buộc
User ID (required)
https://api.sandbase.ai/v1/api/weibo/web-v2/search-user-postsReturns posts from a specified Weibo user matching optional search keywords. Supports filtering by post types such as images, videos, and retweets, as well as date ranges.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns posts from one Weibo user's timeline that match optional keywords. It needs the user's uid and accepts filters for post type and a Unix timestamp date range.
starttime and endtime.data.total is above zero.curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/search-user-posts" \
-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) |
endtime | string | No | End timestamp (optional, Unix timestamp format) |
hasmusic | integer | No | Include music posts (default 1 include) |
hasori | integer | No | Include original posts (default 1 include) |
haspic | integer | No | Include image posts (default 1 include) |
hasret | integer | No | Include retweets (default 1 include) |
hastext | integer | No | Include text posts (default 1 include) |
hasvideo | integer | No | Include video posts (default 1 include) |
page | integer | No | Page number, starts from 1 (default 1) |
q | string | No | Search keyword (optional, empty string means search all content) |
starttime | string | No | Start timestamp (optional, Unix timestamp format) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"list": [],
"total": 0
},
"ok": 1
}
| Field | Meaning |
|---|---|
ok | Status flag for the call. A value of 1 means the request went through. |
data.list | List of matching posts for the requested page. It is an empty list when nothing matches, as in the sample call. |
data.total | Count of posts that match the query and filters. It is 0 in the sample response, which has no matches. |
uid from a user lookup such as Weibo User Search or Weibo User Basic Information.page to move through results. It starts at 1.data.list with data.total of 0 means no posts matched the current q, type flags and time range.$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/web-v2/search-user-posts" \
-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)
endtimeanyEnd timestamp (optional, Unix timestamp format)
hasmusicintegerInclude music posts (default 1 include)
hasoriintegerInclude original posts (default 1 include)
haspicintegerInclude image posts (default 1 include)
hasretintegerInclude retweets (default 1 include)
hastextintegerInclude text posts (default 1 include)
hasvideointegerInclude video posts (default 1 include)
pageintegerPage number, starts from 1 (default 1)
qstringSearch keyword (optional, empty string means search all content)
starttimeanyStart timestamp (optional, Unix timestamp format)
Đâ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.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Weibo User Post SearchAPI 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/web-v2/search-user-posts 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. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.
Bắt buộc: uid (string). Tùy chọn: endtime (any), hasmusic (integer), hasori (integer), haspic (integer), hasret (integer) và hastext (integer) và 4 mục khác. 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 User Post Search 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.