API reference · Weibo

weibo/web-v2/search-user-posts

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

APISynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/run
Model IDweibo/web-v2/search-user-posts
01

Input Schema

11 parameters · 1 required · 10 optional

ParameterTypeRequiredDescription
uidstringRequired用户ID/User ID
qstringOptional搜索关键词/Search keyword · Default: ""
pageintegerOptional页数/Page number · Default: 1
hasoriintegerOptional是否包含原创微博,1=包含,0=不包含/Include original posts, 1=include, 0=exclude · Default: 1
haspicintegerOptional是否包含图片微博,1=包含,0=不包含/Include image posts, 1=include, 0=exclude · Default: 1
hasretintegerOptional是否包含转发微博,1=包含,0=不包含/Include retweets, 1=include, 0=exclude · Default: 1
endtimeunionOptional结束时间戳/End timestamp · Default: 1772294400
hastextintegerOptional是否包含文字微博,1=包含,0=不包含/Include text posts, 1=include, 0=exclude · Default: 1
hasmusicintegerOptional是否包含音乐微博,1=包含,0=不包含/Include music posts, 1=include, 0=exclude · Default: 1
hasvideointegerOptional是否包含视频微博,1=包含,0=不包含/Include video posts, 1=include, 0=exclude · Default: 1
starttimeunionOptional开始时间戳/Start timestamp · Default: 1772294400
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-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"
}'