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 Timeline

Tài liệu API
https://api.sandbase.ai/v1/api/weibo/app/user-timeline

Get the posts on a Weibo user's timeline: text, publish time, region, images and repost, comment and like counts, with page and month filters.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 3 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)
Filter type (default "all")
Time filter parameter, format YYYYMMDD (only used when filter_type=month)
Page number, starts from 1 (default 1) Tối thiểu: 1.
Đầ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 Timeline API

Returns a page of posts from a Weibo user's timeline. Each post carries its text, publish time, region, images and repost, comment and like counts. You pass the user ID as uid, and you can set page, filter_type and month to narrow the results.

Use cases

  • Track what a brand, media outlet or public figure posts on Weibo.
  • Compare like counts across an account's recent posts to see which ones drew the most reaction.
  • Collect the images and check-in places attached to a user's posts.
  • Pull a single month of an account's posts with filter_type set to month.

Request

curl -X POST "https://api.sandbase.ai/v1/api/weibo/app/user-timeline" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uid": "7648703289"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
uidstringYesUser ID (required)
filter_typestringNoFilter type (default "all")
monthstringNoTime filter parameter, format YYYYMMDD (only used when filter_type=month)
pageintegerNoPage number, starts from 1 (default 1)

Example response

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

{
  "config": "{}",
  "dsl": {
    "config": {
      "name": "dynamic",
      "version": "1643769",
      "xml": [
        {
          "bType": "profile",
          "cVersion": "13.3.4",
          "name": "profile_dyna_avatars.xml",
          "signature": "dec06681…"
        }
      ]
    },
    "version": "1643769",
    "xml": [
      {
        "layout": "%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E+%3CRootLayout+xmlns%3…",
        "name": "profile_dyna_avatars.xml"
      }
    ]
  },
  "items": [
    {
      "category": "card",
      "data": {
        "card_type": 216,
        "filter_scheme": "sinaweibo://wbaction_filterdialog?select_containerid=1076037648703289_-_WEIBO_SE…",
        "left_hint": [
          {
            "content": "全部微博(1136)",
            "style": {
              "textColor": "#ff828282",
              "textSize": 13
            },
            "type": "text"
          }
        ],
        "openurl": "",
        "right_filter": [
          {
            "iconUrl": "https://d.sinaimg.cn/prd/1059/799/2025/06/20/shaixuan.png",
            "style": {
              "darkMode": "urlAppend",
              "height": 15,
              "width": 15
            },
            "type": "icon"
          }
        ]
      },
      "itemExt": {
        "anchorId": "2161793691976"
      },
      "style": {
        "margin": [
          0.0
        ],
        "padding": [
          0.0
        ]
      }
    }
  ],
  "loadedInfo": "{}",
  "moreInfo": {
    "autoLoadMoreIndex": 10,
    "error": "网络加载失败,请稍后尝试",
    "loading": "正在加载更多",
    "moreType": "default",
    "pagingType": "cursor",
    "params": {
      "count": 20,
      "max_id": 0,
      "page": 2
    }
  },
  "navInfo": "{}",
  "pageData": "{}",
  "refreshInfo": "{}"
}

Response fields

FieldMeaning
items[].categoryType of each entry. card is a header block with the filter and post count, and feed is an actual post.
items[].data.left_hint[].contentLabel on the header card that shows the total post count for the account, for example 全部微博(1136).
items[].data.attitudes_countLike count of the post.
items[].data.bmiddle_picURL of the medium-size image attached to the post, when it has one.
items[].data.annotations[].place.title / items[].data.annotations[].place.poiidName and ID of the place tagged on the post. The type next to them is checkin in the sample.
items[].data.analysis_extraPipe-separated string of key:value pairs. It includes ouid, the user ID of the account that owns the timeline.
items[].itemExt.anchorId / items[].itemExt.extraItemIdID of the feed entry. It joins the timeline container ID and the post ID with _-_.
moreInfo.params.page / moreInfo.params.count / moreInfo.params.max_idPaging values for the next request. In the sample, page is 2 and count is 20.
moreInfo.pagingTypePaging style the response reports. The sample returns cursor.

Notes

  • The first item in items is a card with the filter and total post count. Posts are the items where category is feed.
  • Set page to get later pages. It starts at 1. moreInfo.params.page shows the next page number.
  • To filter by month, set filter_type to month and pass month as YYYYMMDD. month is ignored for other filter types.
  • Use Weibo User Profile Information for the account's profile, and Weibo Post Comments (App) for comments on a post.

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 Timeline?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/weibo/app/user-timeline 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 Timeline 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 Timeline chấp nhận những tham số nào?

Bắt buộc: uid (string). Tùy chọn: filter_type (string), month (any) và page (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Weibo User Timeline 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 Timeline 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.