API reference · Weibo
weibo/web-v2/search-user-posts
Integrate this model through SandBase's unified API, with production-ready schemas and examples.
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/runModel ID
weibo/web-v2/search-user-posts01
Input Schema
11 parameters · 1 required · 10 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
uid | string | Required | 用户ID/User ID |
q | string | Optional | 搜索关键词/Search keyword · Default: "" |
page | integer | Optional | 页数/Page number · Default: 1 |
hasori | integer | Optional | 是否包含原创微博,1=包含,0=不包含/Include original posts, 1=include, 0=exclude · Default: 1 |
haspic | integer | Optional | 是否包含图片微博,1=包含,0=不包含/Include image posts, 1=include, 0=exclude · Default: 1 |
hasret | integer | Optional | 是否包含转发微博,1=包含,0=不包含/Include retweets, 1=include, 0=exclude · Default: 1 |
endtime | union | Optional | 结束时间戳/End timestamp · Default: 1772294400 |
hastext | integer | Optional | 是否包含文字微博,1=包含,0=不包含/Include text posts, 1=include, 0=exclude · Default: 1 |
hasmusic | integer | Optional | 是否包含音乐微博,1=包含,0=不包含/Include music posts, 1=include, 0=exclude · Default: 1 |
hasvideo | integer | Optional | 是否包含视频微博,1=包含,0=不包含/Include video posts, 1=include, 0=exclude · Default: 1 |
starttime | union | Optional | 开始时间戳/Start timestamp · Default: 1772294400 |
02
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
03
Code Examples
Ready-to-run snippets
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "weibo/web-v2/search-user-posts",
"q": "",
"page": 1,
"hasori": 1,
"haspic": 1,
"hasret": 1,
"endtime": 1772294400,
"hastext": 1,
"hasmusic": 1,
"hasvideo": 1,
"starttime": 1772294400,
"prompt": "a beautiful sunset over mountains"
}'
