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

Weibo User Post Search

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

Returns posts from a specified Weibo user matching optional search keywords. Supports filtering by post types such as images, videos, and retweets, as well as date ranges.

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

Playground

输入
User ID (required)
End timestamp (optional, Unix timestamp format)
Include music posts (default 1 include)
Include original posts (default 1 include)
Include image posts (default 1 include)
Include retweets (default 1 include)
Include text posts (default 1 include)
Include video posts (default 1 include)
Page number, starts from 1 (default 1)
Search keyword (optional, empty string means search all content)
Start timestamp (optional, Unix timestamp format)
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Weibo User Post Search API

Returns posts from one Weibo user's timeline that match optional keywords. It needs the user's uid and accepts filters for post type and a Unix timestamp date range.

Use cases

  • Find every post where a Weibo creator mentions a brand or product name.
  • Pull only the video or image posts from one account for content review.
  • Collect an account's posts for a set time window by passing starttime and endtime.
  • Check whether a user has posted about a topic by testing if data.total is above zero.

Request

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

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

Parameters

NameTypeRequiredDescription
uidstringYesUser ID (required)
endtimestringNoEnd timestamp (optional, Unix timestamp format)
hasmusicintegerNoInclude music posts (default 1 include)
hasoriintegerNoInclude original posts (default 1 include)
haspicintegerNoInclude image posts (default 1 include)
hasretintegerNoInclude retweets (default 1 include)
hastextintegerNoInclude text posts (default 1 include)
hasvideointegerNoInclude video posts (default 1 include)
pageintegerNoPage number, starts from 1 (default 1)
qstringNoSearch keyword (optional, empty string means search all content)
starttimestringNoStart timestamp (optional, Unix timestamp format)

Example response

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

{
  "data": {
    "list": [],
    "total": 0
  },
  "ok": 1
}

Response fields

FieldMeaning
okStatus flag for the call. A value of 1 means the request went through.
data.listList of matching posts for the requested page. It is an empty list when nothing matches, as in the sample call.
data.totalCount of posts that match the query and filters. It is 0 in the sample response, which has no matches.

Notes

  • Get the uid from a user lookup such as Weibo User Search or Weibo User Basic Information.
  • Use page to move through results. It starts at 1.
  • An empty data.list with data.total of 0 means no posts matched the current q, type flags and time range.
  • To list an account's posts without a keyword search, use Weibo User Posts.

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

问题

常见问题

如何使用 Weibo User Post Search API?

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

Weibo User Post Search API 的价格是多少?

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

Weibo User Post Search API 接受哪些参数?

必填:uid (string)。 可选:endtime (any), hasmusic (integer), hasori (integer), haspic (integer), hasret (integer) 和 hastext (integer) 以及另外 4 项。 Parameters 表和本页的 Playground 列出了每个字段。

Weibo User Post Search API 返回什么?

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

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

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