Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Weibo User Timeline

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.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 3 件
毎日 100 回まで無料1日あたり最初の 100 回は無料です(組織内で共有)· 00:00 UTC にリセットされます。それ以降は従量課金です。

プレイグラウンド

入力
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) 最小: 1。
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

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.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Weibo$0.001 / 回JSON
Weibo$0.001 / 回JSON
Weibo$0.001 / 回JSON
Weibo$0.001 / 回JSON
Weibo$0.001 / 回JSON
Weibo$0.001 / 回JSON

ガイド:Best Weibo API in 2026: Pricing Compared

質問

FAQ

Weibo User Timeline API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/weibo/app/user-timeline に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Weibo User Timeline API の料金はいくらですか?

1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。

Weibo User Timeline API はどのパラメータを受け付けますか?

必須: uid (string)。 任意: filter_type (string), month (any) と page (integer)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Weibo User Timeline API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Weibo の開発者アカウントまたは API key は必要ですか?

いいえ。Weibo User Timeline は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Weibo の API アクセスを別途申請する必要はありません。