Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Weibo User Posts

API 文档
https://api.sandbase.ai/v1/api/weibo/web-v2/user-posts

Get the posts published by a Weibo user: text, publish time, images, videos and repost, comment and like counts, with pagination.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 3 个可选
每天 100 次免费调用每天前 100 次调用免费(按组织共享)· UTC 00:00 重置。之后按次计费。

Playground

输入
User ID (required)
Data feature value (default 0)
Page number, starts from 1 (default 1)
Pagination identifier for next page
输出示例
响应outputs · 776 B · 27 行
[
  {
    "data": {
      "code": 200,
      "data": {
        "message": "Invalid uid. Pass the numeric Weibo user id, for example 7277477906.",
        "message_zh": "uid 非法。请传入纯数字的微博用户 ID,例如 7277477906。",
        "ok": 0,
        "param": "uid"
      },
      "docs": null,
      "message": "Invalid uid. Pass the numeric Weibo user id, for example 7277477906.",
      "message_zh": "uid 非法。请传入纯数字的微博用户 ID,例如 7277477906。",
      "params": {
        "feature": "0",
        "page": "1",
        "since_id": "",
        "uid": "example"
      },
      "request_id": "a558d6fd-9290-4cfb-ac9f-3dc0a119f0e7",
      "router": "/api/weibo/web_v2/fetch_user_posts",
      "time": "2026-08-20 17:39:29",
      "time_stamp": 1787218769,
      "time_zone": "Asia/Shanghai"
    }
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

Weibo User Posts API

Returns the posts published by a Weibo account, newest pinned post first, with text, publish time, images and engagement counts. It needs the numeric user ID in uid, and it pages through older posts.

Use cases

  • Track what an official account or media outlet posts and how people react to each post.
  • Compare like and comment counts across an account's posts to see which content performs best.
  • Download the image URLs of an account's posts to build a media archive.
  • Collect an account's post history page by page for offline analysis.

Request

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

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

Parameters

NameTypeRequiredDescription
uidstringYesUser ID (required)
featureintegerNoData feature value (default 0)
pageintegerNoPage number, starts from 1 (default 1)
since_idstringNoPagination identifier for next page

Example response

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

{
  "data": {
    "bottom_tips_text": "",
    "bottom_tips_visible": false,
    "list": [
      {
        "analysis_extra": "follow:0",
        "annotations": [
          {
            "photo_sub_type": "0,0,0,0,0,0,0,0,0"
          }
        ],
        "attitudes_count": 1103,
        "attitudes_status": 0,
        "can_edit": false,
        "cardid": "star_1624",
        "comment_manage_info": {
          "approval_comment_type": 0,
          "comment_anon_type": 0,
          "comment_permission_type": -1,
          "comment_sort_type": 0
        },
        "comments_count": 567,
        "content_auth": 3,
        "content_auth_list": [
          {
            "content_auth": 3,
            "rank": 90,
            "show_type": 0
          }
        ],
        "created_at": "Tue Nov 03 07:44:51 +0800 2026",
        "favorited": false
      }
    ],
    "since_id": "5360945434198751kp2",
    "status_visible": 0,
    "topicList": [],
    "total": 154903
  },
  "ok": 1
}

Response fields

FieldMeaning
data.list[]One post per item. Each item holds the post text, time, media and counts.
data.list[].id / idstr / midNumeric and string forms of the post ID. idstr and mid are the same value as a string.
data.list[].mblogidShort code for the post. Use it to identify the post in other calls.
data.list[].created_atPublish time as a text date with a +0800 offset, for example Tue Nov 03 07:44:51 +0800 2026.
data.list[].attitudes_count / comments_countNumber of likes and number of comments on the post.
data.list[].isTopShows 1 when the post is pinned to the top of the account's page.
data.list[].pic_ids[]IDs of the images attached to the post. Each ID is a key in pic_infos.
data.list[].pic_infos.<pic_id>.original.url / large.url / bmiddle.urlImage URLs at different sizes for one picture. Each size also gives width and height.
data.list[].isLongTextTells you whether the post is marked as long text.
data.list[].number_display_strategy.display_textShort display form of a large count, for example 100万+.

Notes

Pricing

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

Read the first page of a known account's posts

Send a real uid string for the selected account. A saved example may contain the literal example placeholder; the teaching API request replaces that placeholder with the current schema example, while the saved Playground example remains unchanged. Replace the illustrative account with the account you actually intend to inspect.

For this first request, set page to 1 and feature to 0, matching the current parameter descriptions, and omit since_id. This is User Posts, which may include reposts; it is not the separate original-only endpoint. Do not claim that the first page is a full account history or that its total field is the number of posts you downloaded.

The current reference payload has integer ok equal to 1 and a data.list array. Require both before using the posts. A saved failed example shows why an outer code 200 is insufficient: inspect the business ok value and reject a missing or malformed list instead of reporting zero posts. Keep absent engagement counts unknown and do not automatically select the highest-count post for another request.

The reference describes since_id for later pages, but this update does not test continuation. The separate User Original Posts reference has conflicting wording about the initial since_id; the tutorial retains its older experiment as historical evidence rather than guessing a new continuation sequence. Need the account record instead? Use User Profile independently.

Give your agent a known account and one task

Already have a SandBase key? Keep SANDBASE_API_KEY in your local environment and use the API tab for POST /v1/api/ with Bearer authentication. If the agent is already connected, give it the exact endpoint and account identifier. For a new project, share the setup Skill, Markdown quickstart and one question. Ask it to save one response and stop before post detail, comments, ranking or pagination.

Read outputs[0].data only after checking the SandBase completed status. Then validate this endpoint's business payload. A successful HTTP status or an outer code 200 alone does not establish a successful Weibo result. Do not use a top-level output fallback or replace missing objects and arrays with empty results.

Pricing checked on 2026-11-08: these two endpoints list $0.001 per call and eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility is not a remaining-quota reading. Inspect current pricing and allowance before running. No new business query or continuation was executed for this update. The Weibo Python first-request tutorial separates current code from the dated original-posts experiment.

探索更多

相关 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

问题

常见问题

如何使用 Weibo User Posts API?

向 https://api.sandbase.ai/v1/api/weibo/web-v2/user-posts 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Weibo User Posts API 的价格是多少?

每次调用 $0.001。每个组织在每个 UTC 日可获得 100 次免费调用,适用于包括此接口在内的所有符合条件的 SandBase APIs;超过后,每次调用将按此价格从您的 SandBase 余额中扣费。无需订阅。

Weibo User Posts API 接受哪些参数?

必填:uid (string)。 可选:feature (integer), page (integer) 和 since_id (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Weibo User Posts API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Weibo 开发者账户或 API key 吗?

不需要。Weibo User Posts 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Weibo API 访问权限。

第一次 User Posts 请求应包含什么?

请使用真实的 uid 字符串、明确的 page 1 和 feature 0,并在第一次请求中省略 since_id。已保存快照中的字面示例占位符不是可用的账号身份。请用你要查询的 UID 替换教学 schema 示例。

代码 200 是否表示返回的 Weibo 帖子成功了?

不能仅凭此判断。请检查 SandBase completed 状态和 outputs[0].data,然后要求提供方整数 ok 值为 1 且存在 data.list 数组。遇到提供方失败或缺少列表时请拒绝,不要把它们报告为空动态流。

User Posts 是一个完整的原创帖子导出吗?

不是。它只是动态流中的一页,可能包含转发。单独的仅原创端点有不同的分页表述。此指南不验证连续请求,不会下载整个账号历史,也不会把 total 字段等同于返回列表长度。