Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Weibo User Post Search

Tài liệu API
https://api.sandbase.ai/v1/api/weibo/web-v2/search-user-posts

Returns 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.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 10 tùy chọn
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
User ID (required)
End timestamp (optional, Unix timestamp format)
Include music posts (default 1 include)
Include original posts (default 1 include)
Include image posts (default 1 include)
Include retweets (default 1 include)
Include text posts (default 1 include)
Include video posts (default 1 include)
Page number, starts from 1 (default 1)
Search keyword (optional, empty string means search all content)
Start timestamp (optional, Unix timestamp format)
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Weibo User Post Search API

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.

Use cases

  • Find every post where a Weibo creator mentions a brand or product name.
  • Pull only the video or image posts from one account for content review.
  • Collect an account's posts for a set time window by passing starttime and endtime.
  • Check whether a user has posted about a topic by testing if data.total is above zero.

Request

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.

Parameters

NameTypeRequiredDescription
uidstringYesUser ID (required)
endtimestringNoEnd timestamp (optional, Unix timestamp format)
hasmusicintegerNoInclude music posts (default 1 include)
hasoriintegerNoInclude original posts (default 1 include)
haspicintegerNoInclude image posts (default 1 include)
hasretintegerNoInclude retweets (default 1 include)
hastextintegerNoInclude text posts (default 1 include)
hasvideointegerNoInclude video posts (default 1 include)
pageintegerNoPage number, starts from 1 (default 1)
qstringNoSearch keyword (optional, empty string means search all content)
starttimestringNoStart timestamp (optional, Unix timestamp format)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "list": [],
    "total": 0
  },
  "ok": 1
}

Response fields

FieldMeaning
okStatus flag for the call. A value of 1 means the request went through.
data.listList of matching posts for the requested page. It is an empty list when nothing matches, as in the sample call.
data.totalCount of posts that match the query and filters. It is 0 in the sample response, which has no matches.

Notes

  • Get the uid from a user lookup such as Weibo User Search or Weibo User Basic Information.
  • Use page to move through results. It starts at 1.
  • An empty data.list with data.total of 0 means no posts matched the current q, type flags and time range.
  • To list an account's posts without a keyword search, use Weibo User Posts.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Weibo API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Weibo User Post Search?

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.

API Weibo User Post Search có giá bao nhiêu?

$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ý.

API Weibo User Post Search chấp nhận những tham số nào?

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.

API Weibo User Post Search trả về gì?

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.

Tôi có cần tài khoản nhà phát triển hoặc API key của Weibo không?

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.