Weibo User Timeline

API docs
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.

Price
$0.001USD / call
Method
POST
Response
JSON
Parameters
1 required · 3 optional
100 free calls / dayFirst 100 calls per day free (shared per organization) · Resets at 00:00 UTC. Pay per call after that.

Playground

Input
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) Minimum: 1.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

API README

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.

Explore more

Related APIs

All APIs
APIPriceResponse
Weibo$0.001 per callJSON
Weibo$0.001 per callJSON
Weibo$0.001 per callJSON
Weibo$0.001 per callJSON
Weibo$0.001 per callJSON
Weibo$0.001 per callJSON

Questions

FAQ

How do I use the Weibo User Timeline API?

Send a POST request to https://api.sandbase.ai/v1/api/weibo/app/user-timeline with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Weibo User Timeline API cost?

$0.001 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Weibo User Timeline API accept?

Required: uid (string). Optional: filter_type (string), month (any) and page (integer). The Parameters table and the Playground on this page list every field.

What does the Weibo User Timeline API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a Weibo developer account or API key?

No. Weibo User Timeline runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Weibo API access separately.