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 бесплатных вызовов в деньПервые 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.
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

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.

Посмотреть больше

Связанные 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

Как использовать API Weibo User Timeline?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/weibo/app/user-timeline, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Weibo User Timeline?

$0.001 за вызов. Каждой организации предоставляется 100 бесплатных вызовов в сутки по UTC, общих для всех подходящих API SandBase, включая этот; после этого каждый вызов тарифицируется по этой цене и списывается с баланса SandBase. Подписка не требуется.

Какие параметры принимает API Weibo User Timeline?

Обязательные: uid (string). Необязательные: filter_type (string), month (any) и page (integer). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Weibo User Timeline?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Weibo или API key?

Нет. Weibo User Timeline работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Weibo.